题解列表

筛选

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;……

2839:石头剪刀布

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

2821: 开关灯

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=1e5;//定义小一点int a[N] ;int main(……

1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e5;//太大会爆ll a……