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