摘要:
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 阅读全文
摘要:
2021.1.11 软件工程 任课老师:glj 题型:选择,判断,设计,解答,辨析 复习了个寂寞,考的是没复习过的东西,书上前50页到敏捷开发为止只考选择判断,在试卷上难度较为简单 大题考了设计模式,以及课程中的报告的内容。辨析题考察了面向对象的原则,最后一题论述面向对象的好处。 主要需要复习面向的 阅读全文
摘要:
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 阅读全文
摘要:
A题 签到 #include<bits/stdc++.h> using namespace std; int main() { int n,rw=0,t=0; cin>>n; for(int i=1;i<=n;i++) { int r; cin>>r; if(r>rw) rw=r; if(i>=rw 阅读全文