Sponsors

Tag: Div. 1 + Div. 2)

Codeforces Round #436 (Div....

#include <stdio.h> int c; void reset(){ for(int i=0;i<26;i++){ c=0; } } int main(){ int n,i,cur=0,max=0; scanf("%d",&n); char a; scanf("%s",a); reset(); for(i=0;i<n;i++){ if(a>='A' &&...

Codeforces Round #436 (Div....

#include<cstdio> #include<iostream> using namespace std; int n,cnt,ans,A,B; int buck; int main(){ scanf("%d",&n); for(int i = 1;i...

Codeforces Round #429 (Div....

import java.io.*; import java.util.*; public class E { int a; static final int...

Codeforces Round #429 (Div....

#include <bits/stdc++.h> using namespace std; const int maxN = 3e5+10, base...

Codeforces Round #429 (Div....

#include<bits/stdc++.h> #define ll long long int #define LL long long int #define...

Codeforces Round #429 (Div....

#include<cstdio> using namespace std; const int MAXN = 300000+5; const int MAXE...

Codeforces Round #429 (Div....

#include<bits/stdc++.h> using namespace std; int main(){ std::ios::sync_with_stdio(false); int m; cin>>m; int a,b; for(int i=0;i<m;i++) cin>>a; vector<pair<int,int> >br(m); for(int i=0;i<m;i++){ cin>>b; br=make_pair(b,i); } sort(a,a+m); int...

Codeforces Round #429 (Div....

#include<cstdio> int main() { int n;int t;scanf("%d",&n); for(int i=1;i<=n;i++) {scanf("%d",&t); if(t%2) { printf("First"); return 0; } } printf("Second"); return 0; }

Codeforces Round #429 (Div....

#include<iostream> using namespace std; int i,j,n,k,a; string s; main(){ for(cin>>n>>k>>s;i<s.size();)a-'a']++; for(i=0;j<26;)a>k?i=1:0; cout<<(i?"NOn":"YESn"); }

Codeforces Round #419 (Div....

#include <bits/stdc++.h> using namespace std; const int N=200007; int n,k,q,a,b,p,c,i; int main(){ cin>>n>>k>>q; for(i=0;i<n;i++)cin>>a>>b,p++,p--; for(i=1;i<N;i++)p+=p,c+=c+(p>=k); for(i=0;i<q;i++){cin>>a>>b;cout<<c-c<<'n'; } }

Codeforces Round #419 (Div....

#include <bits/stdc++.h> #define ll long long using namespace std; const int N...

Codeforces Round #419 (Div....

#include<cstdio> #include<algorithm> #include<queue> using namespace std; const int N=5010; int n,m,c,d,fa; int w,head,next; void add(int f,int...

Advertisement

spot_img