C语言训练-百钱百鸡问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,p; for(m=0;m<20;m++) { for(n=0;n<33;n++) { f…… 题解列表 2018年09月05日 0 点赞 0 评论 930 浏览 评分:0.0
C语言训练-立方和不等式 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int m,sum=0; for(m=1;;m++) { sum…… 题解列表 2018年09月05日 0 点赞 0 评论 762 浏览 评分:0.0
回归!第二题:循序渐进 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,n; scanf("%d",&n); a=n/100; …… 题解列表 2018年09月05日 9 点赞 0 评论 1386 浏览 评分:0.0
C语言训练-素数问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; for(i=2;i<=n;i++) { if(n%…… 题解列表 2018年09月05日 0 点赞 0 评论 792 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100],b[100]; gets(a); gets(b);…… 题解列表 2018年09月05日 0 点赞 0 评论 1163 浏览 评分:0.0
C语言训练-计算1~N之间所有奇数之和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i,sum=0; for(i=1;i<=n;i++) { …… 题解列表 2018年09月05日 0 点赞 0 评论 923 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路: 从题目上看,小母牛第四年会产出一头小母牛,所以一开始的那头母牛也就相当于第三年的小母牛,那么题目中牛的类型就有三种牛,第一年的小母牛,第二年的小母牛和第三年的母牛。 第一年的小…… 题解列表 2018年09月05日 0 点赞 0 评论 1561 浏览 评分:0.0
蓝桥杯2015年第六届真题-穿越雷区 (C++代码) 摘要:#include<iostream> #include<algorithm> #include<queue> using namespace std; const int MAXN=101; …… 题解列表 2018年09月06日 0 点赞 0 评论 1033 浏览 评分:0.0
数据结构-八进制数 (C++代码) 摘要:解题思路:使用cout输出八进制格式直接输出注意事项:参考代码:#include <iostream> using namespace std; int main () { int n; …… 题解列表 2018年09月06日 0 点赞 0 评论 1445 浏览 评分:0.0
与2无关的数 (C语言代码) 摘要:解题思路:注意事项:参考代码: 超级简单的写法#include<stdio.h>int … 题解列表 2018年09月06日 0 点赞 0 评论 999 浏览 评分:0.0