Created
March 29, 2015 07:18
-
-
Save rajurayhan/f239e068e5bb5b7dc83a to your computer and use it in GitHub Desktop.
URI Problem 1046-Game Time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(){ | |
int a,b,c; | |
scanf("%d %d",&a,&b); | |
if(a==b) | |
printf("O JOGO DUROU %d HORA(S)\n",24-0); | |
else if(a>b){ | |
c=(24-a)+b; | |
printf("O JOGO DUROU %d HORA(S)\n",c); | |
} | |
else { | |
c=b-a; | |
printf("O JOGO DUROU %d HORA(S)\n",c); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment