C语言训练-亲密数 (C语言代码) 摘要:#include<stdio.h>#include<math.h>#define N 3000int yinzihe(int num);int yinzihe(int num){ int i, j, …… 题解列表 2017年12月22日 0 点赞 0 评论 748 浏览 评分:0.0
蛇行矩阵 (C++代码)principle 's simple c++ 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>using namespace std;int main(){ int a; while…… 题解列表 2017年12月22日 0 点赞 0 评论 1013 浏览 评分:0.0
Minesweeper (C++代码)principle's simple c++ 摘要:解题思路:扫雷问题,问题翻译建议不要去找翻译器,这样其实并没有任何提高,一个一个单词去翻译都比直接看中文版要好注意事项:定义行列,建立数组初始化是没有用的。只能用memeset参考代码:#includ…… 题解列表 2017年12月22日 0 点赞 0 评论 1342 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,j=0,k,l=0,i=2; scanf("%d",&n); k=n…… 题解列表 2017年12月22日 0 点赞 0 评论 766 浏览 评分:0.0
花落的新手代码(C语言代码) 摘要:解题思路:注意事项:注意输入的一个数可能为1或者小于1的数,这些数都不是素数。参考代码:#include<stdio.h>void sushu(int n){ int i; if(n<=1) prin…… 题解列表 2017年12月21日 0 点赞 0 评论 1058 浏览 评分:0.0
我美吗! 摘要:解题思路: 最笨的办法但感觉是最好理解的,你可以把每一个循环挨个输出一下就可以看出思路,但相当好理解参考代码://可以看出图形是个正方形并且上下左右对称 #include <stdio.h> #…… 题解列表 2017年12月21日 2 点赞 1 评论 1072 浏览 评分:0.0
花落的新手算法(C语言代码) 摘要:解题思路:题目是不难,但是很容易错,题目有隐含的条件。注意事项:注意题目输入的时候在实数与字符有个|,而且实数输出的时候要保留一位小数。参考代码:#include<stdio.h>int main()…… 题解列表 2017年12月21日 0 点赞 0 评论 984 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:这道题不是很难,就是一个循环思想,一次循环就够了。注意事项:注意求和的时候记得初始化。参考代码:#include<stdio.h>int main(){ int a,sum=0,b=0…… 题解列表 2017年12月21日 0 点赞 0 评论 820 浏览 评分:0.0
优质题解 Manchester- C语言训练-计算1977! 摘要:解题思路:大数据阶乘,我们用数组存储结果,这题用长度为5660的数组 jc[5660] 刚好够存1977的阶乘;1:定义变量weishu代表阶乘的结果所占的位数;2:把整个数组(jc[])全赋值为0,…… 题解列表 2017年12月21日 43 点赞 12 评论 5245 浏览 评分:9.3
蓝桥杯算法提高VIP-利息计算 (C++代码) 摘要:#include<iostream> #include<iomanip> using namespace std; int main(){ double n,m; cin>>…… 题解列表 2017年12月21日 0 点赞 0 评论 954 浏览 评分:0.0