1 条题解
-
1
#include <bits/stdc++.h> using namespace std; int main() { int h, m, s, k; cin >> h >> m >> s; cin >> k; int total = h * 3600 + m * 60 + s; total = total + k; int nh = total / 3600; int rem = total % 3600; int nm = rem / 60; int ns = rem % 60; cout << nh << " " << nm << " " << ns << endl; return 0; }
- 1
信息
- ID
- 1164
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 7
- 标签
- 递交数
- 348
- 已通过
- 81
- 上传者