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