Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a,b;
- while(scanf("%d:%d", &a, &b)!=EOF)
- {
- printf("Atraso maximo: ");
- if(a<7 || (a==7 && b==0)) printf("0\n");
- else printf("%d\n", ((a+1)-8)*60 + b);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement