Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
49291 | teacher_lu | 202406-GESP-一级-休息时间 | C++ | Wrong Answer | 1 MS | 244 KB | 359 | 2024-07-02 18:52:05 |
#include<bits/stdc++.h> #include<iostream> using namespace std; int main() { int h, m, s, k; cin >> h >> m >> s >> k; // 秒给分钟进位 m = m + s / 60; // 秒 s = s % 60; // 分钟给小时进位 h = h + m / 60; //分钟 m = m % 60; cout << h << endl; cout << m << endl; cout << s << endl; return 0; }