https://i2.wp.com/eblogarithm.com/wp-content/uploads/2017/08/Codeforces-Round-419-Div-2-problem-A-Karen-and-Morning-Solution-In-CC1.png?fit=640%2C360

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

#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);
}

(Visited 23 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: