Sponsors

Tag: problem: (A) Karen and Morning Solve In C/C++

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