Problem Link
Solution :-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
/*---------------------------------------------------*/ //Problem Setter: Md. Towhidul Islam //Uva Problem No: 11650 //Problem Name : Mirror Clock //Type : Ad hoc,Analogue clock, Reflection. //Author : Shipu Ahamed //University : BUBT //E-mail : shipuahamed01@gmail.com /*---------------------------------------------------*/ #include <stdio.h> int main() { int t,a,b; scanf("%d", &t); while(t--) { scanf("%d:%d", &a, &b); a=11-a+(b==0); if(a<=0) a=a+12; if(a!=0) b=60-b; if(b==60) b=0; printf("%02d:%02dn",a,b); } return 0; } |