合集-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 阅读全文
posted @ 2024-06-08 22:30 yhbqwq 阅读(20) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2024-06-15 22:15 yhbqwq 阅读(52) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2024-06-22 22:34 yhbqwq 阅读(29) 评论(0) 推荐(0) 编辑
摘要:开题顺序: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 阅读全文
posted @ 2024-07-06 22:37 yhbqwq 阅读(251) 评论(1) 推荐(1) 编辑
摘要:A 分三类情况讨论即可。 void solveqwq() { int r = io.read(), g = io.read(), b = io.read(); string qwq = io.readstring(); if (qwq == "Blue") printf("%lld\n", min( 阅读全文
posted @ 2024-07-13 22:42 yhbqwq 阅读(42) 评论(0) 推荐(0) 编辑
摘要:难度:A < B < C < E ≈ F << D 做题顺序:A -> B -> C -> F -> E -> D 其实 VP 的时候 perf 还是有 2000+ 的(虽然说 D 炸了),perf 应该是 2028 左右 A signed main() { int n; cin > 阅读全文
posted @ 2024-07-21 15:54 yhbqwq 阅读(118) 评论(0) 推荐(0) 编辑
摘要:VP 五十八分钟苏童流体。好耶 A #define GLIBCXX_DEBUG #include <iostream> #include <cstring> #include <cstdio> #define int long long const int N = 500100; std::stri 阅读全文
posted @ 2024-07-28 10:59 yhbqwq 阅读(97) 评论(1) 推荐(0) 编辑
摘要: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<< 阅读全文
posted @ 2024-08-03 22:13 yhbqwq 阅读(293) 评论(1) 推荐(2) 编辑
摘要:又寄咯 A #include<iostream> #include<queue> #include<vector> #include<algorithm> #include<memory.h> #define int long long #define pb push_back using name 阅读全文
posted @ 2024-08-10 22:09 yhbqwq 阅读(81) 评论(0) 推荐(1) 编辑
摘要:很 Easy 一场,共计用时 34 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'){ 阅读全文
posted @ 2024-08-17 22:07 yhbqwq 阅读(29) 评论(0) 推荐(1) 编辑
摘要:被伟大的 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); 阅读全文
posted @ 2024-08-24 22:09 yhbqwq 阅读(120) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2024-08-31 23:05 yhbqwq 阅读(121) 评论(1) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2024-09-07 22:51 yhbqwq 阅读(68) 评论(0) 推荐(2) 编辑

点击右上角即可分享
微信分享提示