文科生的悲哀 (C++代码) 摘要:解题思路:n=1,ans=1;n=2,ans=1;n=3,ans=2;n=4,ans=5……ans 和 n 的关系满足n(1,2,……,N)->ans(1,1,3,5,8,13,……)//显然是斐波那…… 题解列表 2018年05月12日 1 点赞 0 评论 602 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int n,a; scanf("%d",&n); if(n<9) pr…… 题解列表 2018年05月12日 0 点赞 0 评论 690 浏览 评分:0.0
小O的图案 (C语言代码) 摘要:解题思路:找规律,仔细观察每行每列的*和空格输出情况注意事项:参考代码:#include<stdio.h> int main() { int i=0,j,k=0,n,N[100]; whi…… 题解列表 2018年05月12日 0 点赞 0 评论 550 浏览 评分:0.0
【亲和数】 (C语言代码) 摘要:解题思路:筛选出范围内的因子求和比较就可以了注意事项:别把把数本身加上去,即循环条件控制好参考代码:#include<bits/stdc++.h>int main(){ int M; in…… 题解列表 2018年05月12日 0 点赞 0 评论 983 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:见代码中的注释注意事项:这里要加上一个头文件,我们才可以求绝对值参考代码:#include<stdio.h>#include<math.h> //求绝对值要加上这个头文件int ma…… 题解列表 2018年05月11日 0 点赞 0 评论 865 浏览 评分:0.0
奖学金 (C++代码) 摘要:解题思路:注意事项:不能多组输入参考代码:#include<cstdio> #include<iostream> #include<algorithm> using namespace std;…… 题解列表 2018年05月11日 0 点赞 0 评论 706 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码) 摘要:解题思路:用两个 for 循环嵌套从最大的值开始确定,然后往前推注意事项:参考代码:#include <stdio.h>int main(){ int a[10]; int i, j, s…… 题解列表 2018年05月11日 0 点赞 0 评论 1144 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路: 辗转相除法求最大公约数,检索法求最小公倍数注意事项:跳出循环的条件参考代码:#include<stdio.h>int main(){ int m,n,x,y; int i; …… 题解列表 2018年05月11日 0 点赞 0 评论 776 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string.h>using namespace std;int main(){ char a[100]; ci…… 题解列表 2018年05月11日 0 点赞 0 评论 1112 浏览 评分:9.0
回文数(一) (Java代码) 摘要:解题思路:注意事项:参考代码:public class 回文数_一 { public static boolean isHw(int num) { String str = Strin…… 题解列表 2018年05月11日 0 点赞 0 评论 991 浏览 评分:0.0