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