bfs单点多次扩散问题(简称hp问题) 摘要:解题思路:注意事项:参考代码:# Python代码我还是补充一下八 def bfs(queue,step): for i in queue: x,y=i for j …… 题解列表 2023年03月06日 0 点赞 0 评论 399 浏览 评分:0.0
注意:两次相加 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int sn=0,a=2,aa=0; fo…… 题解列表 2023年03月06日 0 点赞 0 评论 443 浏览 评分:0.0
不要想太多,这样简单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ int s; s=a%b; while(s!=0) { …… 题解列表 2023年03月06日 0 点赞 6 评论 306 浏览 评分:0.0
2701————蓝桥杯2022年第十三届决赛真题-取模(C/C++/Java组) 摘要: import java.util.Scanner; public class Main { public static void main(String[] …… 题解列表 2023年03月06日 0 点赞 0 评论 597 浏览 评分:0.0
c语言题解c语言题解c语言题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<string.h>int main(){ long long i,j,n,p=0…… 题解列表 2023年03月06日 0 点赞 0 评论 546 浏览 评分:0.0
1229基础解法(Python) 摘要:解题思路:直接调用Python的math库函数即可注意事项:Python 3.9 以上版本可以直接调用math.lcm()函数,其他版本只有math.gcd()函数参考代码:from math imp…… 题解列表 2023年03月06日 0 点赞 0 评论 431 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n = int(input()) a, b = 1, 0 for i in range(1,n+1): a *= i; b += a print(b)…… 题解列表 2023年03月07日 0 点赞 0 评论 429 浏览 评分:0.0
1056: 二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double n,f; scanf("%lf",&n); f=(n-32)*5/9; printf("%.2lf…… 题解列表 2023年03月07日 0 点赞 0 评论 554 浏览 评分:0.0
整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); if(a>b) printf(">"); else …… 题解列表 2023年03月07日 0 点赞 0 评论 388 浏览 评分:0.0
二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:C#include<stdio.h>int main(){ double x; scanf("%lf",&x); if(x<1) printf("%.2lf",x); e…… 题解列表 2023年03月07日 0 点赞 0 评论 387 浏览 评分:0.0