蓝桥杯历届试题-国王的烦恼 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>typedef struct node{ int x,y,z;} L;L a[10050];void…… 题解列表 2019年04月21日 0 点赞 0 评论 1303 浏览 评分:9.9
【计算球体积】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double r,v,n,pi=3.1415926; while(scanf("…… 题解列表 2019年04月21日 0 点赞 0 评论 1655 浏览 评分:2.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 评论 880 浏览 评分:0.0
[编程入门]三个字符串的排序 (C语言代码) 摘要:解题思路:逐个输入,比较,输出 超简单注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100],b[100],c[1…… 题解列表 2019年04月21日 0 点赞 0 评论 922 浏览 评分:0.0
[编程入门]Sn的公式求和 (C++代码) 摘要:解题思路:由题目的式子可以知道,我们可以把和看作是每一次每位数之和,例如第一次是n*2,第二次加上(n-1)*(2*10)......所以我们可以设置一个变量a=2,令其每次自乘10即可。注意事项:w…… 题解列表 2019年04月21日 0 点赞 0 评论 1263 浏览 评分:5.2
Minesweeper (C语言代码) 摘要:解题思路:注意两组输出之间的空行囧 。。。。。。注意事项:参考代码:#include<stdio.h>#include<string.h>char a[103][103];int n,m;void s…… 题解列表 2019年04月21日 0 点赞 0 评论 967 浏览 评分:0.0
【计算球体积】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.1415926int main(){ double x,m,sum; while(scanf("%lf",&x…… 题解列表 2019年04月21日 0 点赞 0 评论 636 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define zz(a,b,c) S=(a+b+c)/2#define hh(a,b,c,S) ar…… 题解列表 2019年04月21日 1 点赞 0 评论 1294 浏览 评分:0.0
三位数分解 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,g,s,b; scanf("%d",&x); b=x/100; s=x/10%10; g=x%10;…… 题解列表 2019年04月21日 0 点赞 0 评论 992 浏览 评分:0.0
C语言训练-亲密数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int sum1,sum2; int A,i,j; for(A=1;…… 题解列表 2019年04月21日 0 点赞 0 评论 701 浏览 评分:0.0