摘要:
ABC344 A - Spoiler 题意: 给出一个字符串,串中有两个$|$,输出$|$两边的内容。 思路: 我写的代码非常丑陋,模拟写的。 赛后看到string的stl,感觉非常妙。 rfind(str)是从字符串右侧开始匹配str #include<bits/stdc++.h> using n 阅读全文
摘要:
瑞士轮 思路: 快排会g,所以要归并排序 define int long long会g,关掉 快排函数: stable_sort,用法和sort一样 #include <bits/stdc++.h> using namespace std; // #define int long long stru 阅读全文
摘要:
include <bits/stdc++.h> using namespace std; define int long long vector<array<int, 5>> adj[1000005]; void solve() { int n, m; cin >> n >> m; for (int 阅读全文
摘要:
要开学了 ABC341 A - Print 341 题意: 输出n个10最后输出1 #include <bits/stdc++.h> using namespace std; #define int long long void solve() { int n; cin >> n; for (int 阅读全文
摘要:
div4怎么只能出5个(我是🤡) codeforce928 A - Vlad and the Best of Five 题意: 看A和B的数量谁多。 #include <bits/stdc++.h> using namespace std; #define int long long void s 阅读全文