杀到这九天十地无人敢称尊,直到身边再无一人能陪我征战,叶天帝不过如此 摘要:# 不用抽象标题没人看俺题解 此题模板题就不多说了 直接看看代码 ###### AC Code: ```cpp #include #include #include #includ…… 题解列表 2024年10月30日 1 点赞 1 评论 257 浏览 评分:10.0
好数 基本思想简单易懂(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//切勿随意抄袭,若需引用请标明作者int is_good_num(int num) …… 题解列表 2024年10月31日 10 点赞 0 评论 1116 浏览 评分:10.0
包会,不会你来锤我 摘要:#### 贪心策略:优先选择先结束的活动,保证每个选择子结构的最佳结果 ```cpp #include #include using namespace std; //创建结构体,结构体…… 题解列表 2024年10月31日 2 点赞 3 评论 508 浏览 评分:10.0
母牛的故事_推导表达式 摘要:解题思路:采用递归的做法,我么需要考虑每一年母牛的数量和前面几年之间的关系,写出递推公式,就能轻松写出代码。我们以f(n)表示第n年母牛的数量。第一年:f(1)=1,只有一只母牛。第二年:f(2)=f…… 题解列表 2024年11月03日 3 点赞 0 评论 474 浏览 评分:10.0
新手必看,*1.0的运用技巧 摘要:解题思路:对于for的应用程度注意事项:参考代码:#include <stdio.h>int main() { int n,b,sum=0.0; scanf("%d ",&n); for(int i…… 题解列表 2024年11月04日 2 点赞 0 评论 500 浏览 评分:10.0
完数的判断C语言 摘要:解题思路:这个思路我都写在代码里了每段代表什么,如果有哪里不懂,欢迎评论区见注意事项:我用i*i<n是因为他因子一般成对出现,可以优化算法,让算法的运行速度更快参考代码:#include <stdio…… 题解列表 2024年11月06日 2 点赞 0 评论 319 浏览 评分:10.0
数组逆序重放 摘要:解题思路:随便写写,这题目比较常见,故而写题解方便自己查阅注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); …… 题解列表 2024年11月06日 1 点赞 0 评论 282 浏览 评分:10.0
字符逆序的简单写 摘要:解题思路:逆序就是,给字符或者数字一个长度,让它们呆在里面,换它们的位置如“hallo”,返回值为5,给这5个位置进行调换从而实现逆序 如“0123456789”,返回值为10,给这10位置进行调换从…… 题解列表 2024年11月06日 2 点赞 0 评论 415 浏览 评分:10.0
自定义函数之字符类型统计c++,不含指针 摘要:#include<stdio.h> #include<string.h> int b=0,c=0,d=0,e=0; char a[1000]; void cata(char a[]) { …… 题解列表 2024年11月08日 1 点赞 0 评论 359 浏览 评分:10.0
1102: 明明的随机数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;set<int>st;int main(){ int n,m; cin…… 题解列表 2024年11月08日 0 点赞 0 评论 353 浏览 评分:10.0