合集-ATcoder 比赛合集
摘要:A 按照顺序直接模拟即可。 #pragma GCC optimize(3) #include <bits/stdc++.h> #define int long long #define pb push_back #define em emplace_back #define F(i,x,y) for
阅读全文
摘要:A 直接模拟即可。 #pragma GCC optimize(3) #include<bits/stdc++.h> #define int long long using namespace std; const int N=1000100,mod=998244353; int a[N]; sign
阅读全文
摘要:A 直接统计 Takahashi 出现次数即可。 #include <bits/stdc++.h> #define int long long using namespace std; const int N = 2000100; int a[N]; signed main() { int n; c
阅读全文
摘要:开题顺序:A - C - F - D - B - E。 A 直接模拟即可。 bool begmem; #include <bits/stdc++.h> #define int long long using namespace std; class FastIO { public: int read
阅读全文
摘要:A 分三类情况讨论即可。 void solveqwq() { int r = io.read(), g = io.read(), b = io.read(); string qwq = io.readstring(); if (qwq == "Blue") printf("%lld\n", min(
阅读全文
摘要:难度:A < B < C < E ≈ F << D 做题顺序:A -> B -> C -> F -> E -> D 其实 VP 的时候 perf 还是有 的(虽然说 D 炸了),perf 应该是 左右 A signed main() { int n; cin >
阅读全文
摘要:VP 五十八分钟苏童流体。好耶 A #define GLIBCXX_DEBUG #include <iostream> #include <cstring> #include <cstdio> #define int long long const int N = 500100; std::stri
阅读全文
摘要:Perf 2000+,但是补不回来上场超低的 Rating/ll A #include<bits/stdc++.h> #define int long long using namespace std; signed main(){ int n; cin>>n; if(n%400==0)cout<<
阅读全文
摘要:又寄咯 A #include<iostream> #include<queue> #include<vector> #include<algorithm> #include<memory.h> #define int long long #define pb push_back using name
阅读全文
摘要:很 Easy 一场,共计用时 min A const int N=1000100; signed main(){ string s;cin>>s; int cnt=0; int n=s.size(); if(s[n-1]=='0'&&s[n-2]=='0'&&s[n-3]=='0'){
阅读全文
摘要:被伟大的 G 创似辣。 A signed main(){ int n,k;cin>>n>>k; F(i,1,n)cin>>a[i]; queue<int>stk; G(i,n,1)stk.push(a[i]); while(k--){ int t=stk.front(); stk.push(t);
阅读全文
摘要:A const int N=1000100; int a[N]; signed main(){ int x,y;cin>>x>>y; if(x==y)cout<<"1\n"; else if(x%2==y%2)cout<<"3\n"; else cout<<"2\n"; } B const int
阅读全文
摘要:A signed main(){ int l,r;cin>>l>>r; if(!(l==1&&r==1||l!=1&&r!=1)){ if(l==1)cout<<"Yes\n"; else cout<<"No\n"; } else cout<<"Invalid\n"; } B signed main
阅读全文