結果
| 問題 | No.2371 最大の試練それは起床 |
| コンテスト | |
| ユーザー |
poyon
|
| 提出日時 | 2023-06-17 01:18:57 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 878 bytes |
| 記録 | |
| コンパイル時間 | 7,182 ms |
| コンパイル使用メモリ | 336,664 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-01 07:59:01 |
| 合計ジャッジ時間 | 9,291 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
// Validate Input by testlib.h
// clang-format off
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#if __has_include("testlib.h")
#include "testlib.h"
#else
#include "/opt/testlib/testlib.h"
#endif
// clang-format on
int main(int argc, char *argv[]) {
// -------------------- Validate Input --------------------
registerValidation(argc, argv);
int H = inf.readInt(0, 23);
inf.readSpace();
int M = inf.readInt(0, 59);
inf.readChar('\n');
inf.readEof();
// -------------------- Solve --------------------
auto f = [&](int h, int m) -> int { return 60 * h + m; };
int s = f(7, 30);
int t = f(8, 30);
int T = f(H, M);
string ans;
if (T < s) {
ans = "Yes";
} else if (T < t) {
ans = "Late";
} else {
ans = "No";
}
cout << ans << '\n';
return 0;
}
poyon