题解列表

筛选

母牛的故事 (C语言代码)

摘要:解题思路:思路只要自己去推算一下,就知道是f(x)=f(x-1)+f(x-3)的迭代,使用了递归函数运行不起来,所以使用数组。注意事项:因为看题目,是要先输入所有的数,直到输入0为止才会有输出,所以先……

人民币问题 (C++代码)

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,c,count = 0; int sum; cin>……

DNA (C语言代码)

摘要:解题思路:  注意事项:参考代码:#include <stdio.h> #include"stdlib.h" #include"string.h" #include"math.h" int m……

简单的a+b (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a+b<<endl……

来呀,看看呀!!!!!

摘要:解题思路:首先,看到这种比较有规律的式子,一般循环没有多大问题就解决出来了;要定义几个变量,a,b,c是输入的数据,i,j,k是控制三个循环的数,s1,s2,s3用来计算循环之和的数;输入的第一个表达……