1503: 蓝桥杯算法提高VIP-前10名(简洁代码) 摘要:解题思路:用头文件algorithm中的sort函数注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int mai…… 题解列表 2023年01月21日 0 点赞 0 评论 421 浏览 评分:0.0
编写题解 2833: 金币 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include<math.h> int main() { int a,sum = 0,m = 1; int …… 题解列表 2023年01月21日 0 点赞 0 评论 370 浏览 评分:0.0
编写题解 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int func(int *a,int n); int main() { int arr[1000],n,i,sum,…… 题解列表 2023年01月21日 0 点赞 0 评论 438 浏览 评分:0.0
详解,注释多,易理解 要注意转换的顺序,比如数据10234567819,如果直接找到最大值最小值所在位置的下标,再互换会出错,所以我选择分先后转换,先转换最小值和第一个数字,再转换最大值和最后一个数字```cpp#includeusingnamespacestd;inta[10];voidshuru(inta[10]){f 题解列表 2023年01月21日 0 点赞 0 评论 471 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 解题思路:注意事项:参考代码:a,b=map(int,input().split())if(a==0andb==2)or(a==1andb==0)or(a==2andb==1):print('1')elif(a==0andb==1)or(a==1andb==2)or(a==2andb= 题解列表 2023年01月21日 0 点赞 1 评论 591 浏览 评分:0.0
字符串去掉空格 摘要:解题思路:注意事项:参考代码:#include<string.h>去掉空格int main(){ int i; int j = 4; int n; char arr[1000]; while (j) …… 题解列表 2023年01月22日 0 点赞 0 评论 466 浏览 评分:0.0
进制转换——除基取余(C) 摘要:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); int ans[31],num=0;//ans存放8进制的每一位 …… 题解列表 2023年01月22日 0 点赞 0 评论 626 浏览 评分:0.0
1480: 模拟计算器 摘要:解题思路:注意事项:参考代码:while True: try: a, b, c = map(str, input().split()) if (c == '+…… 题解列表 2023年01月22日 0 点赞 0 评论 438 浏览 评分:0.0
C语言训练-尼科彻斯定理(水题) 摘要:```c #include int main(){ int n,i,m; scanf("%d",&n); printf("%d*%d*%d=%d=",n,n,n,n*n*n); …… 题解列表 2023年01月23日 0 点赞 0 评论 479 浏览 评分:0.0
C语言训练-斐波纳契数列(水题) 摘要:```c #include int main(){ int n,i,a[100]; scanf("%d",&n); a[0]=1;a[1]=1; for(i=0;i…… 题解列表 2023年01月23日 0 点赞 0 评论 487 浏览 评分:0.0