题解列表

筛选

1004: [递归]母牛的故事c语言

摘要:代码解释:这里作者用了五维数组解题思路:有1岁牛2岁牛3岁牛4岁牛分别统计他们的数量,4岁牛的数量=上一年的3岁牛+当年4岁牛的数量。3岁牛的数量=上一年的2岁牛的数量。2岁牛的数量=上一年的1岁牛的……

N以内累加求和

摘要:解题思路:循环注意事项:n大写参考代码:#include <iostream>using namespace std;int main() {    int N,sum = 0;    cin >> ……

编写题解 1098: 陶陶摘苹果

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a[10],tg,zd=0; for(int i=0;……

傻瓜式解决方法

摘要:#include #include //(类比依次输出数字的大小,采用中间变量进行排序) int main() { char str1[100], str2[100], str3[……