結果
問題 |
No.2371 最大の試練それは起床
|
ユーザー |
![]() |
提出日時 | 2023-06-11 22:40:31 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 579 bytes |
コンパイル時間 | 2,020 ms |
コンパイル使用メモリ | 192,096 KB |
最終ジャッジ日時 | 2025-02-14 01:54:06 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 19 |
ソースコード
// 嘘解法 // 7時30分までセーフにしている #include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(15); int H, M; cin >> H >> M; auto f = [&](int h, int m) -> int { return 60 * h + m; }; int t = f(H, M); int S = f(7, 30); int T = f(8, 30); string ans; if (t <= S) { ans = "Yes"; } else if (t < T) { ans = "Late"; } else { ans = "No"; } cout << ans << '\n'; return 0; }