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