[编程入门]水仙花数判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int i,x,y,z; for(i=100;i<1000;i++)//确定三位数范围 { …… 题解列表 2019年04月30日 0 点赞 0 评论 649 浏览 评分:0.0
[竞赛入门]简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d", &a, &b))printf("%d\n…… 题解列表 2019年04月30日 0 点赞 0 评论 770 浏览 评分:0.0
[编程入门]报数问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k=0,n; scanf("%d",&n); int num[n]; f…… 题解列表 2019年04月30日 0 点赞 0 评论 643 浏览 评分:0.0
[递归]母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 55 int main(){ int input[N],cow[N]={1,2,3}; for(int i=…… 题解列表 2019年04月30日 0 点赞 0 评论 419 浏览 评分:0.0
蓝桥杯算法提高VIP-数组输出 (C++代码) 摘要:解题思路:注意事项: 如前面所说:题目描述错误,比较的是数组中 绝对值最大的数参考代码:#include<iostream> #include<cmath> #include<algorithm>…… 题解列表 2019年04月30日 0 点赞 0 评论 747 浏览 评分:0.0
[编程入门]宏定义之找最大数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define SORT(a,b,c) {if(a>b&&a>c)printf("%.3f\n",a);else if(b>a&&b>c…… 题解列表 2019年04月30日 0 点赞 0 评论 502 浏览 评分:0.0
超简单方法!!!C语言训练-斐波纳契数列 (C语言代码) 摘要:解题思路:1 0 1 1 2 3 5 8 13...............先令a=1,b=0,这样打印的第一、二个元素就分别为1 1。然后进行循环,循环一次将a=b,b=c;这样从每次打印的c都是前…… 题解列表 2019年04月30日 1 点赞 0 评论 1316 浏览 评分:0.0
C语言训练-"水仙花数"问题1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n , sum ; cin>>n; if(…… 题解列表 2019年04月29日 0 点赞 0 评论 978 浏览 评分:0.0
数据结构-有向无环图的拓扑排序 (C语言代码) 摘要:解题思路:注意事项:样例可以通过参考代码:#include<iostream> #include<stack> using namespace std; #define ERROR -1 #d…… 题解列表 2019年04月29日 0 点赞 0 评论 1721 浏览 评分:6.4
[编程入门]第一个HelloWorld程序! (C++代码) 摘要:解题思路: <<end //是换行;注意事项:参考代码:#include <iostream>using namespace std;int main(){ cout<<"********…… 题解列表 2019年04月29日 0 点赞 1 评论 876 浏览 评分:6.0