2 条题解

  • 4
    @ 2026-6-2 22:44:01
    #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;
    }
        
    
    
    • -1
      @ 2026-7-4 9:26:17

      #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; }

      • 1

      信息

      ID
      30991
      时间
      1000ms
      内存
      256MiB
      难度
      4
      标签
      (无)
      递交数
      39
      已通过
      19
      上传者