fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int S;
  5. int h;
  6. int m;
  7. int s;
  8. int c;
  9. scanf("%d",&S);
  10. h=S/3600;
  11. m=S%3600/60;
  12. s=S%60;
  13. printf("c=%d:%d:%d",h,m,s); // your code goes here
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5316KB
stdin
3800
stdout
c=1:3:20