[编程入门]Sn的公式求和 (C++代码) 摘要:解题思路:由题目的式子可以知道,我们可以把和看作是每一次每位数之和,例如第一次是n*2,第二次加上(n-1)*(2*10)......所以我们可以设置一个变量a=2,令其每次自乘10即可。注意事项:w…… 题解列表 2019年04月21日 0 点赞 0 评论 1486 浏览 评分:5.2
[编程入门]三个字符串的排序 (C语言代码) 摘要:解题思路:逐个输入,比较,输出 超简单注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100],b[100],c[1…… 题解列表 2019年04月21日 0 点赞 0 评论 989 浏览 评分:0.0
P1000 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; scanf("%d %d",&i,&j); printf("%d\n",i+j); retur…… 题解列表 2019年04月21日 0 点赞 0 评论 953 浏览 评分:0.0
【计算球体积】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double r,v,n,pi=3.1415926; while(scanf("…… 题解列表 2019年04月21日 0 点赞 0 评论 1734 浏览 评分:2.0
蓝桥杯历届试题-国王的烦恼 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>typedef struct node{ int x,y,z;} L;L a[10050];void…… 题解列表 2019年04月21日 0 点赞 0 评论 1383 浏览 评分:9.9
C语言训练-"水仙花数"问题1 (C语言代码) 摘要:解题思路:注意括号 可以简写注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) …… 题解列表 2019年04月21日 0 点赞 0 评论 1139 浏览 评分:0.0
蓝桥杯算法提高VIP-字符串比较 (C语言代码)C语言版本的水文(o゚v゚)ノ 摘要:参考代码:#include<stdio.h> #include<string.h> #define maxn 10005 int main(){ char a[maxn],b[maxn]; …… 题解列表 2019年04月20日 1 点赞 2 评论 1595 浏览 评分:9.4
[编程入门]猴子吃桃的问题 (C语言代码) 摘要:解题思路:反推求解 注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5];int print[4];vo…… 题解列表 2019年04月20日 0 点赞 0 评论 1417 浏览 评分:0.0
[编程入门]水仙花数判断 (C语言代码) 摘要:解题思路:三个变量 判断一下 yes就输出注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5];int …… 题解列表 2019年04月20日 0 点赞 0 评论 1483 浏览 评分:6.0
[编程入门]阶乘求和 (C语言代码) 摘要:求和注意方法 可以更高效率注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5];int print[4]…… 题解列表 2019年04月20日 0 点赞 0 评论 1317 浏览 评分:0.0