摘要:
A题 看出独立性后高斯消元 #include<bits/stdc++.h> using namespace std; #define ll long long const int N=205; int a[N][N];//增广矩阵 int x[N];//解集 int freeX[N];//自由变元 阅读全文
摘要:
A题 枚举记录 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pll; const int N=2e6+10; const int mod=1e9+7; const i 阅读全文
摘要:
E题 队友写的构造 #include<bits/stdc++.h> #define LL long long using namespace std; const int maxn=1e5+5; string s; int mx,my; int cnt[4]; void _move(int &x,i 阅读全文
摘要:
A题 模拟题,就是从每个i开始看看是否能找到这一串 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e6+10; char a[200][200]; int cnt[N]; int st[ 阅读全文
摘要:
A题 找到相邻两个逆序就行,这是最方便的 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e6+10; int main(){ ios::sync_with_stdio(false); i 阅读全文
摘要:
A题 循环构造bac即可,因为题目是小于等于,我看成了等于所以构造的复杂了点 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int main(){ ios::sync_with_stdio(false); int t 阅读全文
摘要:
A题 签到模拟 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pll; const int inf=0x3f3f3f3f; const int N=1e5+10; co 阅读全文
摘要:
A题 排序后看看相邻位置 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pll; const int N=3e5+10; const int mod=1e9+7; in 阅读全文