视为求两个二位数ab,cd —— 求具有abcd=(ab+cd)2性质的四位数 摘要:解题思路: 我们不去直接求那样的四位数,而是两重遍历寻找两个二位数,使100*ab+cd=(ab+cd)2成立注意事项: ab的范围为(1,99),cd的范围为(0,99)参考代码:#include<…… 题解列表 2018年09月30日 1 点赞 0 评论 1095 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:#include<stdio.h> int recursion(int x){ if(x==1){ return 10; } else … 题解列表 2018年09月30日 1 点赞 0 评论 1143 浏览 评分:0.0
找对角线元素下标之间的关系(转为一维) 摘要:#include<stdio.h> int main(){ int N; int matrix; int sum=0; scanf("%d", &N); …… 题解列表 2018年09月30日 1 点赞 0 评论 1656 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.4 (C语言代码) 摘要:解题思路:对上面的代码的一个补充,简单易懂注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a[10],i,j,num…… 题解列表 2018年09月30日 0 点赞 0 评论 986 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.7 (C语言代码) 摘要:#include<stdio.h>//在数组内存放因子\n此方法下面的方法为超时方法 int main() { int a,b,c=0,n=0,i,temp; int j[10…… 题解列表 2018年09月30日 1 点赞 0 评论 1155 浏览 评分:0.0
so简洁的代码 摘要:#include<stdio.h> #include<math.h> int main(){ int n, i, s=0; scanf("%d", &n); for(…… 题解列表 2018年09月30日 1 点赞 1 评论 758 浏览 评分:0.0
简单素数筛选法 摘要:#include<stdio.h> int main(){ int sample; scanf("%d", &sample); int criterion=1; …… 题解列表 2018年09月30日 0 点赞 0 评论 1595 浏览 评分:0.0
函数块调用 摘要:注意事项: 要注意数据不要溢出参考代码:#include<stdio.h> #include<math.h> int len(int i){ int lenth=1; w…… 题解列表 2018年10月01日 2 点赞 0 评论 775 浏览 评分:0.0
逻辑简明 摘要:注意事项: 不要被绕晕了。。。参考代码:#include<stdio.h> int main(){ int N; double heigh=100, path=100; …… 题解列表 2018年10月01日 2 点赞 0 评论 1354 浏览 评分:0.0
要用浮点型来储存数据哦! 摘要:参考代码:#include<stdio.h> int main(){ double sum=0, item=1; for(int i=1; i<=64; i++){ …… 题解列表 2018年10月01日 1 点赞 0 评论 1475 浏览 评分:0.0