最多约数问题 (C++代码)(DFS) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int const MAX = 100005;int prime[MAX];int …… 题解列表 2018年10月03日 1 点赞 0 评论 1533 浏览 评分:5.0
C语言程序设计教程(第三版)课后习题6.7 (C++代码) 摘要:解题思路:注意事项:sum的还原 换行的位置 循环输出因子的思想参考代码:#include<stdio.h>int main(){ int N; int sum; scanf("…… 题解列表 2018年10月02日 0 点赞 0 评论 1429 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>b) a=a;…… 题解列表 2018年10月02日 1 点赞 0 评论 541 浏览 评分:0.0
纪念品分组 (C++代码) 摘要:解题思路:大水题没什么好说的注意事项:不懂请留言!参考代码:#include <bits/stdc++.h> using namespace std; int n,k; int const ma…… 题解列表 2018年10月02日 1 点赞 3 评论 2125 浏览 评分:8.9
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路: 注意事项: 大一学了一学期C语言,不怎么深。比较繁琐,但运行正确。参考代码:# include<stdio.h># include<math.h>int main(){ int n; sc…… 题解列表 2018年10月02日 0 点赞 0 评论 756 浏览 评分:4.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:这题主要是求每个数的阶乘以及阶乘求和,这个想必对各位大佬来说肯定是轻而易举,但对于我这个新人小白来说还需思考一会儿,想出来的也不是最简洁的算法……一开始我把变量都定义成int型,上传了几次都…… 题解列表 2018年10月02日 4 点赞 0 评论 1090 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,sum;a=82;b=90;suma+b;printf("sum is %d\n",sum);r…… 题解列表 2018年10月02日 0 点赞 0 评论 782 浏览 评分:0.0
Mark11:题解1145 摘要:参考代码:#include<stdio.h> int main(){ int N; double heigh=100, path=100; scanf("%d", &N…… 题解列表 2018年10月01日 0 点赞 0 评论 1200 浏览 评分:0.0
Mark11:数组模拟(19行代码) 摘要:解题思路: 前面诸位大佬已经写得很清楚了,这里只是给出私以为较为简洁的代码。参考代码:#include<stdio.h> int main(){ int Big[5660]={1};…… 题解列表 2018年10月01日 3 点赞 0 评论 1106 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int drink(int);int main(){ int n; while (scanf("%d", &n) == 1 && n !…… 题解列表 2018年10月01日 0 点赞 0 评论 718 浏览 评分:0.0