母牛的故事 (C++代码) 摘要:解题思路: 这题我是用动态规划写的。前四年,每年只增加一头牛。过了四年之后,四年之前的牛个数再加上去年有的牛个数,就是今年的牛个数。所以公式就是d[i] = d[i-3] + d[i-1];注意…… 题解列表 2018年11月22日 0 点赞 0 评论 741 浏览 评分:0.0
IP判断 (C++代码) 摘要:解题思路:首先判断所有不可能的情况首位字符为‘0’,‘-’号点后面为0,如果字符为大小写字母其它字符例如#,%。&等等(除点字符) 5.剩下的就是不在数字范围0~255注意事项:注意字符串的输入输出…… 题解列表 2018年11月22日 0 点赞 0 评论 667 浏览 评分:0.0
C二级辅导-等差数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],i,sum,n; scanf("%d",&n); a[0]=2; …… 题解列表 2018年11月23日 0 点赞 0 评论 712 浏览 评分:0.0
C语言训练-尼科彻斯定理 (C语言代码)简单,易懂 摘要:解题思路:我们可以设置一个while(1)循环来帮助我们从1开始寻找我们需要的连续奇数串的开头,在while(1)循环中我们可以利用一个for循环求相应开头的m个奇数组成的奇数串的和,记为sum。当我…… 题解列表 2018年11月23日 1 点赞 0 评论 1528 浏览 评分:0.0
三位数分解 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x, gewei, shiwei, baiwei; cin >…… 题解列表 2018年11月23日 0 点赞 0 评论 838 浏览 评分:0.0
贷款计算 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int zonge, time, repay = 0; float r…… 题解列表 2018年11月23日 0 点赞 0 评论 918 浏览 评分:0.0
(C语言代码) 摘要:#include<stdio.h> #include"malloc.h" typedef struct node { int num; struct node *next; …… 题解列表 2018年11月23日 0 点赞 0 评论 746 浏览 评分:0.0
C语言训练-角谷猜想 (C语言代码)简单,清晰! 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int N; scanf("%d",&N);//输入 while(1)//while(1)循环直到最后得到N/…… 题解列表 2018年11月23日 0 点赞 0 评论 1889 浏览 评分:0.0
题解 1065: 2004年秋浙江省计算机等级考试二级C 编程题(1) 摘要:#include<stdio.h> #include "math.h" #define N 10 #define min(a,b) (a)>(b)?(b):(a) int main() { …… 题解列表 2018年11月23日 0 点赞 0 评论 1037 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h> double fact(int n); double mypow(double x,int n); double get_double(double x,in…… 题解列表 2018年11月23日 0 点赞 0 评论 1366 浏览 评分:0.0