题解列表

筛选

好好学string及相关方法~

摘要:***阅读须知:s.substr(x)的意思是从字符串s的第x个开始截取到s的末尾,那substr(0,x)不必多说了吧...为方便大家更容易理解,我将解决字符串之间的拼接的部分单独放入一个check……

最简单的做法

摘要:解题思路:使用set容器注意事项:参考代码:#include <bits/stdc++.h> using namespace std; const int N=10100; stri……

2821: 开关灯

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>typedef long long ll;const int N=1e5;ll a[N];using namespace s……

STL deque优雅方案

摘要:解题思路:使用STL队列维护m个连续奇数注意事项:参考代码:#include<iostream> #include<cmath> #include<deque> using namespace ……

最匹配矩阵

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<utility>using namespace std;int Difference……

dfs经典马走日

摘要: ```cpp #include using namespace std; #define int long long #define endl "\n" const int N……

威佐夫博弈论罢了

摘要:```cpp #include using namespace std; signed main(){ int a = 0, b = 0; while (cin>>a>……

最容易想到的,两个for循环

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() {     int n,ans=0,flag=0;……