08 2024 档案
摘要: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
阅读全文
摘要:被伟大的 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);
阅读全文
摘要:很 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'){
阅读全文
摘要:打的还行 A 容易发现当且仅当 且 时才可能,否则一定不可能。 const int N=1000100; int a[N]; signed main(){ int T;cin>>T; while(T--){ int n;cin>>n; F(i,1,n)
阅读全文
摘要:A 容易发现答案为 。 #include<bits/stdc++.h> #define int long long #define pb push_back using namespace std; const int N=1000100; int a[N
阅读全文
摘要:又寄咯 A #include<iostream> #include<queue> #include<vector> #include<algorithm> #include<memory.h> #define int long long #define pb push_back using name
阅读全文
摘要:难绷事实:B wa 一发 A ...... #include<bits/stdc++.h> #define pb push_back #define int long long using namespace std; const int N=500100; int a[N]; signed mai
阅读全文
摘要:不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做 F1.不会做
阅读全文
摘要: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<<
阅读全文