Sponsors

Monthly Archives: November, 2017

Try searching for what you're looking for instead.

Aluminum: The Reason For...

Envision that you have a light, however solid metal,...

5 Effective Ways to...

High blood pressure or hypertension is widespread nowadays. Approximately...

Branding Isn’t All About...

Branding is not just a Logo A brand is not...

Pastor Chris Rhapsody Online...

Rhapsody Online Prayer Conference is one of the most...

Good Health Tips for...

Good health tips shouldn’t be taken as granted as...

Breast Actives Review ...

The Breast Actives Natural Bust Enhancement program does undoubtedly...

Codeforces Round #443 (Div....

#include<cstdio> #include<cstring> #include<algorithm> #include<set> using namespace std; int n,k; struct node { int maxx,minn,sz; node() { int x;sz = 1; for(int...

Codeforces Round #443 (Div....

#include <stdio.h> struct node { __int64 ans,num; }s; int main() { int n,k,m; while(~scanf("%d%d%d",&n,&k,&m)) { scanf("%I64d",&s.num); s.ans=1; int len=1; for(int i=1;i<n;i++) { int x; scanf("%d",&x); if(x==s.num) { s.ans++; if(s.ans==k) { s.ans=0; len--; } } else { s.num=x; s.ans=1; len++; } } int...

Codeforces Round #443 (Div....

#include <iostream> using namespace std; const int maxn = 5e5; int n,...

Codeforces Round #443 (Div....

#include <iostream> using namespace std; int main() { long long n,k,a,m=0,ab=0; cin>>n>>k>>ab; while(--n){ cin>>a; if(m==k){break;} if(ab>a){m++;} else ab=a,m=1; } cout<<ab; }

Codeforces Round #443 (Div....

#include<bits/stdc++.h> using namespace std; int main() { int n,i,s,d,t=0; cin>>n; for(i=0;i<n;i++) { cin>>s>>d; while(s<=t) { s=s+d; } t=s; } cout<<s<<endl; }

Codeforces Round #444 (Div....

#include<bits/stdc++.h> #define maxn 1000050 using namespace std; int a,b,c,n,k,m,t; int main() { ...

Advertisement

spot_img