fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int A, B, C;
  5. scanf("%i",&A);
  6. B=9;
  7. C=0;
  8. C=(C+45)*A+(A-1)*5+(A-1)/2*10;
  9. B=C/60+B;
  10. C=C%60;
  11. printf("%i %i", B, C);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5536KB
stdin
2
stdout
10 35