信息学奥赛一本通T1347-格子游戏 并查集 摘要: #include using namespace std; const int N = 40010; int p[N]; int n,m; …… 题解列表 2024年10月19日 1 点赞 0 评论 202 浏览 评分:9.9
信息学奥赛一本通T1346-亲戚(relation) 并查集 此题有毒 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int MAXN = 20010;int father[MAXN];in…… 题解列表 2024年10月19日 0 点赞 0 评论 372 浏览 评分:9.9
[蓝桥杯2022年第十三届决赛真题-最大数字] 贪心+dfs 摘要:# 咋还给我爆long long了啊这题 ```cpp #include #define ULL unsigned long long #define LL long long #def…… 题解列表 2024年10月19日 0 点赞 0 评论 457 浏览 评分:9.9
寻梦之C++解题 摘要:#include<iostream> #include<string> using namespace std; int main() { int n; string s1, s2;…… 题解列表 2024年10月19日 0 点赞 0 评论 109 浏览 评分:0.0
数字的处理与判断 摘要:解题思路:转化为字符串问题注意事项:字符串反转,双指针参考代码:#include<bits/stdc++.h>using namespace std;string ver(string s){//反转…… 题解列表 2024年10月19日 0 点赞 0 评论 266 浏览 评分:0.0
学会找规律,这个题不复杂 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) …… 题解列表 2024年10月17日 0 点赞 0 评论 335 浏览 评分:0.0
写了这么大一坨,终于AC了! 摘要:参考代码:#include<bits/stdc++.h> using namespace std; string s1[3]={" "," |"," |"}; string s2[3]=…… 题解列表 2024年10月17日 0 点赞 0 评论 357 浏览 评分:0.0
[信息学奥赛一本通T1550-花神游历各国] 区间更新负优化 摘要:# 区间更新改为区间每个点都改一次,属于是负优化了,能过就行 ```cpp #include #define ULL unsigned long long #define LL long …… 题解列表 2024年10月17日 0 点赞 0 评论 171 浏览 评分:9.9
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码#include <iostream>using namespace std;bool check(int x);int main(){ /*一个数奇数位为奇数,偶数位为偶…… 题解列表 2024年10月17日 0 点赞 0 评论 331 浏览 评分:6.0
旧物有情 #2818: 分离整数的各个数位 字符串翻转法 和 模拟法 摘要:[TOC] 这道题目的数据范围比较弱,不存在类似于10000 这种需要我们考虑前导0的问题 不过大家可以思考一下如何去除前导0 # 字符串翻转法 ``` #include u…… 题解列表 2024年10月17日 0 点赞 0 评论 190 浏览 评分:0.0