fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x;
  5. int h,m,s;
  6. scanf("%d",&x);
  7. h=x/3600;
  8. m=(x%3600)/60;
  9. s=x%60;
  10. printf("%d時間%d分%d秒\n",h,m,s);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5308KB
stdin
3661
stdout
1時間1分1秒