优质题解 1796: 蛇形填数(dfs) 摘要:解题思路:很久之前就看见这道题了,但是因为感觉模拟起来太复杂所以没有做,今天突然想到dfs寻路可能可以解这道题,就尝试了一下dfs做法。如上图所示,如果从右上角开始的话,优先级一定是先向下搜索,然后再…… 题解列表 2022年07月17日 0 点赞 0 评论 1286 浏览 评分: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 评论 242 浏览 评分:7.3
信息学奥赛一本通T1430-家庭作业-题解(C++代码) 摘要:```cpp #include #include #include using namespace std; int main(){ ios::sync_with_stdio(false…… 题解列表 2022年07月15日 0 点赞 0 评论 1342 浏览 评分:0.0
1553----笨小猴(适用于所有笨小猴)暴力遍历c++代码 摘要:解题思路:用for来回遍历数组模拟注意事项:多个for循环一步一步理清楚步骤,可能有些许繁琐,但最暴力。参考代码:#include<bits/stdc++.h> using namespace st…… 题解列表 2022年07月14日 0 点赞 0 评论 1118 浏览 评分:7.3
#C++1165——明明的随机数(set容器) 摘要:```cpp #include #include #include #include using namespace std; int main() { int m; ci…… 题解列表 2022年07月14日 0 点赞 0 评论 527 浏览 评分: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 评论 567 浏览 评分: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 评论 288 浏览 评分:9.9
2177: 信息学奥赛一本通T1252-走迷宫(bfs模板) 摘要:解题思路:可以把bfs当成扩散问题,如果下一步可以走,就向下一步扩散,直到遇见终点,停止循环。参考代码:#include <bits/stdc++.h> #include <queue> usin…… 题解列表 2022年07月14日 0 点赞 0 评论 763 浏览 评分:9.9
信息学奥赛一本通T1549-最大数-题解(C++代码) 摘要:```cpp #include #include #include using namespace std; int main(){ char c; vectorv; mapm;…… 题解列表 2022年07月13日 1 点赞 0 评论 821 浏览 评分:9.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:最常用的方法,接收一个字符串,可以使用string,但是遇到“空格”,“TAB”,"回车"都结束。注意事项:参考代码:#include<iostream>#include<string>#i…… 题解列表 2022年07月13日 0 点赞 0 评论 462 浏览 评分:9.9