深搜dfs,python不容易过 摘要:d=[(-1,-2),(1,-2),(-2,-1),(2,-1),(-2,1),(2,1),(-1,2),(1,2)] def dfs(x,y,s): global res if…… 题解列表 2023年11月13日 0 点赞 0 评论 326 浏览 评分:0.0
[编程入门]迭代法求平方根 (C语言) 摘要:解题思路:这个比较思路比较浅显,就是让该公式进行多次的计算,然后不断逼近结果。注意事项:最后记得绝对值输出参考代码:#include<stdio.h>#include<math.h>int main(…… 题解列表 2023年11月13日 0 点赞 0 评论 469 浏览 评分:9.9
[编程入门]宏定义之找最大数(数组方法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Max(a,b,c) ((a>b?a:b))>c?(a>b?a:b):cdouble max(double arr[])…… 题解列表 2023年11月13日 0 点赞 0 评论 317 浏览 评分:0.0
[编程入门]猴子吃桃的问题 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,w,a,i; a=1; w=1; i=1; scanf("%d",&N…… 题解列表 2023年11月13日 0 点赞 0 评论 388 浏览 评分:0.0
3012: 分苹果 摘要:``` #include using namespace std; int main(){ int apple=0,x,sum=0; cin>>x; for( int i=1;i…… 题解列表 2023年11月13日 0 点赞 0 评论 325 浏览 评分:9.9
3011: 余数相同问题 摘要:``` #include using namespace std; int main(){ int a,b,c,x=2; cin>>a>>b>>c; for( int i=1; ;i…… 题解列表 2023年11月13日 0 点赞 0 评论 328 浏览 评分:6.0
2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if (1==a || 3==a || 5==…… 题解列表 2023年11月13日 0 点赞 0 评论 277 浏览 评分:0.0
2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d", &a, &b); if (a<60 && b>…… 题解列表 2023年11月13日 0 点赞 0 评论 363 浏览 评分:0.0
2823: 计算分数加减表达式的值 摘要:``` #include using namespace std; int main(){ int n; double sum=0; cin>>n; for( int i=1; …… 题解列表 2023年11月13日 0 点赞 0 评论 329 浏览 评分:9.9
链表报数问题(Python) 摘要:解题思路:注意事项:参考代码:def find_last_person(n): people = list(range(1, n + 1)) current = 0 # 当前报数人的…… 题解列表 2023年11月13日 0 点赞 0 评论 429 浏览 评分:0.0