题解列表

筛选

母牛的故事c语言

摘要:#include <stdio.h> int fun(int n) {     if(n<=3) {  return n; }     else {  return f……

利润计算c语言求解

摘要:解题思路:利用递归思想参考代码:#include <stdio.h> int func(int n); int main() {     int n, result;     scan……

第一个HelloWorld程序

摘要:解题思路:使用输出函数即可注意事项:Hello与World之间有一个空格以及大小写问题*也是输出的一部分,别光打印Hello World!参考代码:#include<stdio.h> int m……

1986: 鸡兔同笼(c语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int i, x, y, z;    scanf("%d", &z);    for (y = 0; y……

包会,不会你来锤我

摘要:#### 贪心策略:优先选择先结束的活动,保证每个选择子结构的最佳结果 ```cpp #include #include using namespace std; //创建结构体,结构体……