其实就是一个人简单的循环 摘要:#include<bits/stdc++.h>using namespace std;int main(){ int n,a; cin>>n; for(int i=1;;i++) …… 题解列表 2022年07月17日 0 点赞 0 评论 233 浏览 评分:0.0
简单1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){ int a,b,c; cin>>a>>b>>c…… 题解列表 2022年07月17日 0 点赞 0 评论 403 浏览 评分:0.0
编写题解 1089: A+B for Input-Output Practice (V) 摘要:解题思路:定义三个变量来保存数据注意事项:参考代码:#include<bits/stdc++.h>//c++万能头文件using namespace std;int main(){ int n; in…… 题解列表 2022年07月17日 0 点赞 0 评论 212 浏览 评分:0.0
优质题解 1796: 蛇形填数(dfs) 摘要:解题思路:很久之前就看见这道题了,但是因为感觉模拟起来太复杂所以没有做,今天突然想到dfs寻路可能可以解这道题,就尝试了一下dfs做法。如上图所示,如果从右上角开始的话,优先级一定是先向下搜索,然后再…… 题解列表 2022年07月17日 0 点赞 0 评论 1097 浏览 评分:10.0
answer question 摘要:解题思路:anwer the whole question is answer like usual persnaly my own opinion is to caoculate the selut…… 题解列表 2022年07月16日 0 点赞 1 评论 161 浏览 评分:7.3
信息学奥赛一本通T1430-家庭作业-题解(C++代码) 摘要:```cpp #include #include #include using namespace std; int main(){ ios::sync_with_stdio(false…… 题解列表 2022年07月15日 0 点赞 0 评论 1193 浏览 评分:0.0
1553----笨小猴(适用于所有笨小猴)暴力遍历c++代码 摘要:解题思路:用for来回遍历数组模拟注意事项:多个for循环一步一步理清楚步骤,可能有些许繁琐,但最暴力。参考代码:#include<bits/stdc++.h> using namespace st…… 题解列表 2022年07月14日 0 点赞 0 评论 971 浏览 评分:7.3
#C++1165——明明的随机数(set容器) 摘要:```cpp #include #include #include #include using namespace std; int main() { int m; ci…… 题解列表 2022年07月14日 0 点赞 0 评论 424 浏览 评分:0.0
#C++1162——密码(gets与cin,scanf混合使用会无法正常执行) 摘要:#include#include using namespace std; int a,b,c,d; bool check(char p)//对四种情况进行判断,并标记为1 { if(…… 题解列表 2022年07月14日 0 点赞 0 评论 425 浏览 评分:0.0
The 3n + 1 problem (c++) 摘要:解题思路:真的是又长又臭参考代码:#include<iostream>using namespace std;int main(){ long long count = 1; long l…… 题解列表 2022年07月14日 0 点赞 0 评论 231 浏览 评分:9.9