{
  "type": "code_options",
  "author": "csdn.net",
  "source": "solution.md",
  "exercise_id": "6b4490cf046f4376a882eef5bda4d59a",
  "keywords": "时间转换",
  "title": "秒数转换",
  "desc": [
    {
      "content": "\n输入一个秒数，转换成HH：MM：SS的格式输出。\n输入样例  \n365\n输出样例 \n00:06:05",
      "language": "markdown"
    }
  ],
  "answer": [
    {
      "content": "",
      "language": "cpp"
    }
  ],
  "prepared": [
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ]
  ],
  "template": {
    "content": "#include<cstdio>\nint n;\nvoid print(int x){\n\tif(x==0)printf(\"00\");\n\telse if(x<10)printf(\"0%d\",x);\n\telse printf(\"%d\",x);\n\treturn;\n}\nint main(){\n\tscanf(\"%d\",&n);\n\tint s,f,m;\n\ts=n/3600;\n\tf=n/60%60;\n\tm=n%60;\n\tprint(s);\n\tprintf(\":\");\n\tprint(f);\n\tprintf(\":\");\n\tprint(m);\n\treturn 0;\n}",
    "language": "cpp"
  },
  "node_id": "dailycode-7361c99af21f41d7afc9ef2a7d0c59e2",
  "license": "csdn.net",
  "created_at": 1637894160,
  "topic_link": "https://bbs.csdn.net/topics/600470176"
}