摘要:
1-10 1. A + B Problem #include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b<<endl; return 0; } 2. Two Rectangles #include 阅读全文
摘要:
M. Find the Easiest Problem 签到题,直接模拟即可 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll = l 阅读全文
摘要:
Problem L. 网络预选赛 签到,直接模拟即可 点击查看代码 #include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; vector<string>a(n); for(int i=0;i<n;i++ 阅读全文
摘要:
A. Shift Sort 发现左移或右移等价于交换两个位置的数 所以答案即为前 \(cnt0\) 个数中有几个 \(1\) 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pai 阅读全文
摘要:
比赛链接:https://qoj.ac/contest/2513 G Sorting 拓扑排序后,保证每一层都只有一个数,且 \(1-n\) 每个数都在一层 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace st 阅读全文
摘要:
A - I'm a teapot 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll = long long; using ull = 阅读全文
摘要:
A - G1 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll = long long; using ull = unsigned l 阅读全文
摘要:
A. Lever 只需要考虑每个 \(a_i~>~b_i\) 的数,计算差值累加即可 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll 阅读全文