Sponsors

Tag: Codeforces Round #419 (Div. 2)

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> int m,s,t; int main(){ t=0; scanf("%d:%d",&m,&s); while(m/10+m%10*10!=s){ s++,t++; if(s>59)m++,s=0; if(m>23)m=0; } printf("%dn",t); }

Advertisement

spot_img