結果
問題 |
No.2371 最大の試練それは起床
|
ユーザー |
|
提出日時 | 2025-09-12 10:14:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 530 bytes |
コンパイル時間 | 4,734 ms |
コンパイル使用メモリ | 210,800 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-09-12 10:14:20 |
合計ジャッジ時間 | 5,185 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int H, M; if (!(cin >> H >> M)) return 0; const int start = 7 * 3600 + 30 * 60; // 07:30:00 const int end = 8 * 3600 + 30 * 60; // 08:30:00 const int wake = H * 3600 + M * 60 + 30; // H:M:30 if (wake < start) { cout << "Yes\n"; } else if (wake <= end) { // tức là start <= wake <= end cout << "Late\n"; } else { cout << "No\n"; } return 0; }