Codeforces Round #419 (Div. 2), problem: (A) Karen and Morning Solution In C/C++

By |2017-08-07T21:49:10+00:00August 7th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#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("%d\n",t); }