#include <bits/stdc++.h> using namespace std; int main() { int h, m; cin >> h >> m; int start = h * 60 + m; int arrive = start + 45; if (arrive <= 480) cout << "on time"; else cout << "late"; return 0; }
#include <bits/stdc++.h> using namespace std;
int main() { int a, b, x; cin >> a >> b; x = (8 - a) * 60; if (x - b >= 15 + 30) { cout << "on time"; } else cout << "late"; return 0; }
使用您的 蒙青创OJ 通用账户