a+b so easy [竞赛入门]简单的a+b 摘要:```cpp #include using namespace std; int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2024年11月28日 6 点赞 0 评论 1128 浏览 评分:6.0
信息学奥赛一本通T1178-成绩排序 结构体 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体s,包含一个字符串k和一个整数j struct s{ …… 题解列表 2024年11月28日 0 点赞 0 评论 302 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-数字诗意,纯暴力!!! 摘要:解题思路: 排除2的n次幂就行了注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个长整型数组,用于存储…… 题解列表 2024年11月27日 8 点赞 0 评论 2420 浏览 评分:0.0
车厢调度(train) 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个栈,用于存储整数 stack<int> s; int ma…… 题解列表 2024年11月27日 0 点赞 0 评论 230 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 暴力 摘要:解题思路:注意事项:参考代码:#include"iostream"using namespace std;int main(){ int n; int s=0; int x=1; cin>>n; fo…… 题解列表 2024年11月27日 1 点赞 0 评论 973 浏览 评分:0.0
3051: 登山 有点难这还是入门题吗? 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n表示数组长度,a、b、c为…… 题解列表 2024年11月26日 0 点赞 0 评论 164 浏览 评分:0.0
编写题解 1099: 校门外的树C++ 摘要:```cpp #include /* 文件头可以随便,我喜欢万能头,这里也可以(注意有memset函数,要用cstring库): #include #include */ using …… 题解列表 2024年11月26日 7 点赞 1 评论 843 浏览 评分:8.0
1094这样写更简单,C++ 摘要:解题思路: 一边接收输入一边接收输出注意事项:用getchar()来吸收输入n之后的回车参考代码:#include<iostream>#include<vector>using namespace s…… 题解列表 2024年11月26日 1 点赞 0 评论 596 浏览 评分:0.0
stack_STL + 详细注释#1683: 数据结构-表达式求值(C++) 摘要:``` #define _CRT_SECURE_NO_WARNINGS 1 #include #include #include #include #include #include …… 题解列表 2024年11月26日 2 点赞 0 评论 337 浏览 评分:2.0
约瑟夫环问题的解答 摘要:解题思路:模拟or递归(这里解题基于我的代码)注意事项:1.使用模拟的话 一定要注意报数是迟于检查的 所以初始化count=1;每次元素退场后都需要初始化count=1. …… 题解列表 2024年11月26日 1 点赞 0 评论 426 浏览 评分:10.0