![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
想成神的小萌新
这个作者很懒,什么都没留下…
展开
-
codeforces 711 div2 ( A-C )
A. GCD Sum思路:暴力就完事#include<bits/stdc++.h>using namespace std;//#define long long lllong long all(long long x){ long long total=0; while(x) { total+=x%10; x/=10; } return total;}int main(){ int t; cin>>t; while(t--) { lon原创 2021-03-31 21:24:15 · 126 阅读 · 0 评论 -
codeforces edu 106(div2 A-D)
A. Domino on Windowsill#include<bits/stdc++.h>using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int t; cin>>t; while(t--) { int n,k1,k2,w,b; cin>>n>>k1>>k2; cin>>w>原创 2021-03-20 22:58:21 · 128 阅读 · 0 评论 -
codeforces 708 (A-C)
A. Meximization#include<bits/stdc++.h>using namespace std;int a[105]={0};int main(){ int t; cin>>t; while(t--) { memset(a,0,sizeof(a)); int n; cin>>n; for(int i=0;i<n;i++) { int x; cin>>x; a[x]++; }原创 2021-03-18 16:42:44 · 109 阅读 · 0 评论 -
codeforces 706 div2 A-C
A. Split it!#include<bits/stdc++.h>using namespace std;string str;int main(){ int t; cin>>t; while(t--) { int n,k; cin>>n>>k; cin>>str; int num=0; for(int i=0;i<n;i++) { if(str[i]==str[n-1-i]) num原创 2021-03-12 19:46:19 · 178 阅读 · 0 评论 -
codeforces edu 105
codeforces edu 105A. ABC String第一个一定是朝右的括号,然后根据匹配来#include<bits/stdc++.h>using namespace std;const int N = 55;int S[N]={0};int main(){ int t; cin>>t; while(t--) { string str; int n; cin>>str; n=str.length(); int a=0,原创 2021-03-07 11:03:49 · 118 阅读 · 0 评论 -
codeforces 696 div2 A-C
cf696A. Puzzle From the Future前面尽量填1,不能填1的话才填0#include<bits/stdc++.h>using namespace std;const int N =1e5+5;char a[N];int b[N];int c[N];//结果 int main(){ int t; cin>>t; while(t--) { int n; cin>>n; cin>>a; b[0]=1原创 2021-01-21 21:45:08 · 192 阅读 · 2 评论 -
codeforces 695 div2 A-D
codeforces 695 div2A Wizard of Orz输出格式,注意n大于三时候的输出格式就ok#include<bits/stdc++.h>using namespace std;int main(){ int t; cin>>t; while(t--) { int n; cin>>n; if(n<=2) { for(int i=9;i>9-n;i--) { cout<<i;原创 2021-01-18 21:10:23 · 105 阅读 · 0 评论