UVA 11650 - Mirror Clock Shipu Ahamed - 01 Sep 2020 Problem PDFSolution:#include 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:%02d\n",a,b); } return 0; } https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11650/11650.cpp