fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b,c,d;
  5. scanf("%d",&a);
  6. b=a/3600;//h
  7. c=a%60;//s
  8. d=a/60-60*b;//m
  9. printf("%d時間",b);
  10. printf("%d分",d);
  11. printf("%d秒",c);
  12.  
  13.  
  14.  
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5304KB
stdin
50000
stdout
13時間53分20秒