DFS(),内存超限 摘要:解题思路: DFS() 总数=能到达顶部的路径数*pow(4,n) (路径数不考虑四侧的情况, 故需要乘以pow(4,n) )注意事项: 说明啊!!!!程序没通…… 题解列表 2021年04月04日 0 点赞 0 评论 570 浏览 评分:9.9
编写题解 2002: 计算数字个数 摘要:解题思路:注意事项:参考代码:x = input() count=0 for i in x: if i>='0': if i<='9':…… 题解列表 2021年04月04日 0 点赞 0 评论 443 浏览 评分:0.0
编写题解 1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:lst = list(map(int,input().split())) print(max(lst))…… 题解列表 2021年04月04日 0 点赞 0 评论 536 浏览 评分:8.0
数的划分(盒子放球) 摘要:```cpp 类似于盒子里面放球 定义f[i][j]表示i个球j个盒子 划分方式为每个盒子至少两个球和至少有一个盒子是一个球 所以状态方程为f[i][j]=f[i-j][j]+f[i-1][j…… 题解列表 2021年04月04日 0 点赞 0 评论 449 浏览 评分:0.0
夺宝奇兵易懂算法 摘要:```cpp 因为每个数字他只可能从下面或者右下角走上来 所以我们只需要从这两个位置判断哪个比较大就好了 因此状态方程为f[i][j]=max(f[i+1][j]+f[i][j],f[i+1][…… 题解列表 2021年04月04日 0 点赞 0 评论 410 浏览 评分:9.9
容易理解的C语言代码 摘要:解题思路:直接复制过去就可以了注意事项:参考代码:#include <stdio.h> int main() { printf(" X | X | X\n"); printf(…… 题解列表 2021年04月04日 0 点赞 0 评论 166 浏览 评分:0.0
容易理解的C语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[81]; int coun…… 题解列表 2021年04月04日 0 点赞 0 评论 158 浏览 评分:0.0
纯粹的暴力求解 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int fun(int i) { int n1, n2, n3, n4, n5, n6; if (i / 1…… 题解列表 2021年04月04日 0 点赞 0 评论 170 浏览 评分:0.0
1055: 二级C语言-进制转换-python 摘要:解题思路:略注意事项:不用输出前缀参考代码:# -*- coding: utf-8 -*- """ python test 在交互模式下,使用:exit() 退出 """ x = input…… 题解列表 2021年04月04日 0 点赞 0 评论 587 浏览 评分:8.7
蓝桥杯算法提高VIP-班级排名-题解(Python代码) 摘要:这题只要注意是一次考试过后前面所有考试的分数加起来的排名,而不是每一次考试的排名!!然后用字典将名字和分数存储起来,一一对应,然后比分数大小即可。 ```python n = int(inpu…… 题解列表 2021年04月04日 0 点赞 0 评论 398 浏览 评分:9.9