编写题解 2002: 计算数字个数 摘要:解题思路:注意事项:参考代码:x = input() count=0 for i in x: if i>='0': if i<='9':…… 题解列表 2021年04月04日 0 点赞 0 评论 1021 浏览 评分:0.0
编写题解 1002: [编程入门]三个数最大值 解题思路:注意事项:参考代码:lst=list(map(int,input().split()))print(max(lst)) 题解列表 2021年04月04日 0 点赞 0 评论 921 浏览 评分:8.0
数的划分(盒子放球) ```cpp类似于盒子里面放球定义f[i][j]表示i个球j个盒子划分方式为每个盒子至少两个球和至少有一个盒子是一个球所以状态方程为f[i][j]=f[i-j][j]+f[i-1][j-1]最后一层的数字相加就是结果#includeusingnamespacestd;#defineN110intf[N 题解列表 2021年04月04日 0 点赞 0 评论 1004 浏览 评分:0.0
夺宝奇兵易懂算法 ```cpp因为每个数字他只可能从下面或者右下角走上来所以我们只需要从这两个位置判断哪个比较大就好了因此状态方程为f[i][j]=max(f[i+1][j]+f[i][j],f[i+1][j+1]+f[i][j])带入即可#includeusingnamespacestd;#defineN110int 题解列表 2021年04月04日 0 点赞 0 评论 745 浏览 评分:9.9
容易理解的C语言代码 摘要:解题思路:直接复制过去就可以了注意事项:参考代码:#include <stdio.h> int main() { printf(" X | X | X\n"); printf(…… 题解列表 2021年04月04日 0 点赞 0 评论 425 浏览 评分:0.0
容易理解的C语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[81]; int coun…… 题解列表 2021年04月04日 0 点赞 0 评论 448 浏览 评分:0.0
纯粹的暴力求解 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int fun(int i) { int n1, n2, n3, n4, n5, n6; if (i / 1…… 题解列表 2021年04月04日 0 点赞 0 评论 609 浏览 评分:0.0
1055: 二级C语言-进制转换-python 摘要:解题思路:略注意事项:不用输出前缀参考代码:# -*- coding: utf-8 -*- """ python test 在交互模式下,使用:exit() 退出 """ x = input…… 题解列表 2021年04月04日 0 点赞 0 评论 1011 浏览 评分:8.7
蓝桥杯算法提高VIP-班级排名-题解(Python代码) 这题只要注意是一次考试过后前面所有考试的分数加起来的排名,而不是每一次考试的排名!!然后用字典将名字和分数存储起来,一一对应,然后比分数大小即可。```pythonn=int(input())a={}#建立一个字典存储名字和分数foriinrange(n):a[input()]=0#还没考试, 题解列表 2021年04月04日 0 点赞 0 评论 784 浏览 评分:9.9
容易理解的C语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n, t, count = 0; int a[100]; int…… 题解列表 2021年04月04日 0 点赞 0 评论 552 浏览 评分:0.0