rev='made'/> name='keywords'/> name='author'/> ANURANAN: UVa Solution 11650: Mirror Clock

Welcome Note

I'm Anisuzzaman Babla . I am a full stack Android Application Developer. I am working with Android for more than two years. I have completed my graduation from IIT, Jahangirnagar University. I have developed a series of commercially successful apps on Android. Moreover, 10+ of my Apps are live at Google play store. .
Thank You

UVa Solution 11650: Mirror Clock

#include <stdio.h>
int main()
    int tc, hh, mm;
    scanf("%d", &tc);
    scanf("%d:%d", &hh, &mm);
        hh= 11-hh + (mm == 0); //condition true 1 will be added
        if(hh <= 0)   hh=hh+12;
        if(mm!= 0)
         mm= 60-mm;
    return 0;

No comments:

Post a Comment