解法有很多,多思考进步才会大(简单解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,sum=0; scanf("%d",&a); //比如有4个小朋友分苹果,最小的…… 题解列表 2023年03月06日 0 点赞 0 评论 493 浏览 评分:0.0
bfs单点多次扩散问题(简称hp问题) 摘要:解题思路:注意事项:参考代码:# Python代码我还是补充一下八 def bfs(queue,step): for i in queue: x,y=i for j …… 题解列表 2023年03月06日 0 点赞 0 评论 506 浏览 评分: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 评论 553 浏览 评分:0.0
不要想太多,这样简单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ int s; s=a%b; while(s!=0) { …… 题解列表 2023年03月06日 0 点赞 6 评论 387 浏览 评分:0.0
2701————蓝桥杯2022年第十三届决赛真题-取模(C/C++/Java组) importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);intt=scanner.nextInt();//for(inti=0;i 题解列表 2023年03月06日 0 点赞 0 评论 686 浏览 评分: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 评论 651 浏览 评分:0.0
1229基础解法(Python) 解题思路:直接调用Python的math库函数即可注意事项:Python3.9以上版本可以直接调用math.lcm()函数,其他版本只有math.gcd()函数参考代码:frommathimport*n,m=map(int,input().split())print(int(n*m/gcd(n, 题解列表 2023年03月06日 0 点赞 0 评论 536 浏览 评分: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 评论 525 浏览 评分: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 评论 638 浏览 评分: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 评论 460 浏览 评分:0.0