母牛的故事c语言 摘要:#include <stdio.h> int fun(int n) { if(n<=3) { return n; } else { return f…… 题解列表 2024年10月25日 2 点赞 0 评论 2976 浏览 评分:10.0
利润计算c语言求解 摘要:解题思路:利用递归思想参考代码:#include <stdio.h> int func(int n); int main() { int n, result; scan…… 题解列表 2024年10月26日 14 点赞 1 评论 1954 浏览 评分:10.0
[编程入门]Sn的公式求和 摘要:解题思路:列举几个数进行观察:2=0*10+2 //易得除了第一项外,其他都是前一项*10+2。因此我们也能得出相应的关系,an=(an-1)*10+2,最后循环即可 …… 题解列表 2024年10月27日 1 点赞 0 评论 787 浏览 评分:10.0
第一个HelloWorld程序 摘要:解题思路:使用输出函数即可注意事项:Hello与World之间有一个空格以及大小写问题*也是输出的一部分,别光打印Hello World!参考代码:#include<stdio.h> int m…… 题解列表 2024年10月27日 18 点赞 0 评论 2150 浏览 评分:10.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define F(a,b,c) S=(a+b+c)/2#define P(a,b,c) area=sq…… 题解列表 2024年10月27日 2 点赞 0 评论 1404 浏览 评分:10.0
读懂题目就是一道简单题 解题思路:n=int(input())arr1=[0]+list(map(int,input().split()))arr2=[0]+list(map(int,input().split()))defcheck(x):whilex>0:t=x%10ift%2==0andt<5:returnTruex= 题解列表 2024年10月28日 7 点赞 2 评论 874 浏览 评分:10.0
1986: 鸡兔同笼(c语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i, x, y, z; scanf("%d", &z); for (y = 0; y…… 题解列表 2024年10月28日 1 点赞 0 评论 627 浏览 评分:10.0
杀到这九天十地无人敢称尊,直到身边再无一人能陪我征战,叶天帝不过如此 #不用抽象标题没人看俺题解此题模板题就不多说了直接看看代码######ACCode:```cpp#include#include#include#include#defineintlonglongusingnamespacestd;constintN=1e5+10;intc[N];intn, 题解列表 2024年10月30日 1 点赞 1 评论 515 浏览 评分:10.0
好数 基本思想简单易懂(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//切勿随意抄袭,若需引用请标明作者int is_good_num(int num) …… 题解列表 2024年10月31日 11 点赞 0 评论 1483 浏览 评分:10.0
包会,不会你来锤我 ####贪心策略:优先选择先结束的活动,保证每个选择子结构的最佳结果```cpp#include#includeusingnamespacestd;//创建结构体,结构体成员begin,end分别为每一个活动的开始与结束时间structa{intbegin, 题解列表 2024年10月31日 3 点赞 3 评论 908 浏览 评分:10.0