fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b,c,e,f;
  6. scanf("%d",&a);
  7. b=a/3600;
  8. c=a-3600*b;
  9. e=c/60;
  10. f=c-60*e;
  11. printf("%d:%d:%d\n",b,e,f);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5308KB
stdin
10000
stdout
2:46:40