2211: 蓝桥杯算法训练-数据交换 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void swap(int*x,int*y); int main() { int a,b; scanf("%d%…… 题解列表 2022年12月25日 0 点赞 0 评论 271 浏览 评分:0.0
N以内累加求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,s=0; scanf("%d",&n); for(i=0;i<=n;i++) …… 题解列表 2022年12月25日 0 点赞 0 评论 283 浏览 评分:0.0
五次方数(python) 摘要:# 0,1 非题目所需的答案for i in range(2,300000): sum = 0 sign = i while i: sum += (i%10)**5 …… 题解列表 2022年12月25日 0 点赞 0 评论 233 浏览 评分:0.0
蓝桥杯算法提高-输出三个整数的最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c); if(a>b…… 题解列表 2022年12月25日 0 点赞 0 评论 409 浏览 评分:0.0
字符串反转简单代码 摘要:解题思路:注意事项:特别注意:在for循环中,i的初始值应为len-1否则不会出来运行结果。参考代码:#include<stdio.h>#include<string.h>int main(){ …… 题解列表 2022年12月26日 0 点赞 0 评论 289 浏览 评分:0.0
max解决三个数最大值 摘要:解题思路:看到比大小,就能想到max函数,两行解决。注意事项:参考代码:a,b,c=map(int,input().split())print(max(a,b,c))…… 题解列表 2022年12月26日 0 点赞 0 评论 504 浏览 评分:0.0
函数字符提取简单代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int len,i; gets(…… 题解列表 2022年12月26日 0 点赞 0 评论 330 浏览 评分:0.0
max解决三个数找最大值 摘要:解题思路:先用map单行输入,再用max比大小。注意事项:参考代码:a,b,c=map(int,input().split())print(max(a,b,c))…… 题解列表 2022年12月26日 0 点赞 0 评论 387 浏览 评分:0.0
数字分离简单函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a;int b,c,d,e;scanf("%d",&a);b=a/1000;e=a%10;d=a/10%1…… 题解列表 2022年12月26日 0 点赞 0 评论 262 浏览 评分:0.0
解决第一个HelloWorld程序 摘要:解题思路:极其简单,直接输出"Hello World!"和“*”注意事项:大小写参考代码:print("**************************")print("Hello World!"…… 题解列表 2022年12月26日 0 点赞 0 评论 284 浏览 评分:0.0