1000: [竞赛入门]简单的a+b 摘要:```cpp #include using namespace std; int main() { int a,b; while(cin>>a>>b) { cou…… 题解列表 2023年01月08日 0 点赞 0 评论 233 浏览 评分:9.9
通过递归解决各种问题 摘要:解题思路:找到递归思路注意事项:看清题目参考代码:#include<stdio.h>int qiua(int a){ if(a==1) return 1; return qiua(a-1)+a;}in…… 题解列表 2023年01月08日 0 点赞 0 评论 184 浏览 评分:0.0
与“你”无关的数=_=|| 摘要:解题思路: 这个很简单,想看优质答案的小伙伴请下滑>_<注意事项: 重要的事说三遍,定义变量记得初始化>_<参考代码:#include<stdio.h>int main()…… 题解列表 2023年01月08日 0 点赞 0 评论 576 浏览 评分:9.9
[编程入门]结构体之时间设计(水题,超级笨蛋的方法) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct time{ int year,month,day;};int main(){ struct time t; int da…… 题解列表 2023年01月08日 0 点赞 0 评论 150 浏览 评分:9.9
[编程入门]自定义函数之字符串拷贝(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m,i; char s[100]; scanf("%d",&n); for(i=0;i<=n;i+…… 题解列表 2023年01月08日 0 点赞 0 评论 205 浏览 评分:9.9
[编程入门]报数问题(暴力求解) 摘要:解题思路:这本质上就是约瑟夫环的问题,直接用公式暴力求解即可(公式推导有问题的可以私信我)注意事项:参考代码:#includeint main(){ int n,i,num=0; scanf("%d"…… 题解列表 2023年01月08日 0 点赞 0 评论 172 浏览 评分:9.9
编写题解 1771: [编程入门]链表之节点删除 C++ 第一次尝试用list容器 摘要:解题思路:注意事项:参考代码: #include<iostream> #include<list>struct Lnode{ int id; int score;};int main()…… 题解列表 2023年01月08日 0 点赞 0 评论 176 浏览 评分:0.0
3004: 成绩(c++代码) 摘要:最后的输出结果要是整型才能通过哦! ```cpp #include using namespace std; int main() { int a,b,c; cin>>a…… 题解列表 2023年01月08日 0 点赞 0 评论 360 浏览 评分:8.0
去 N M 的雇佣兵(题目都看不懂) 摘要:解题思路: 这个题目真的很烦,不看个一两秒钟很难理解首先,我们输入的是M,N,X,分别代表 最大体力,初始战斗力,初始能量元素第二,要知道题目要我们求的是最大战斗力,还有不要理解为他有多…… 题解列表 2023年01月08日 1 点赞 0 评论 822 浏览 评分:7.3
3003: 鸡兔同笼问题 摘要:```cpp #include using namespace std; int main() { int a,b; cin>>a>>b; cout…… 题解列表 2023年01月08日 0 点赞 0 评论 642 浏览 评分:9.9