Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a,b;
  5. while(scanf("%d:%d", &a, &b)!=EOF)
  6. {
  7. printf("Atraso maximo: ");
  8. if(a<7 || (a==7 && b==0)) printf("0\n");
  9. else printf("%d\n", ((a+1)-8)*60 + b);
  10. }
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement