結果
問題 |
No.2371 最大の試練それは起床
|
ユーザー |
![]() |
提出日時 | 2023-06-12 00:08:35 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 648 bytes |
コンパイル時間 | 1,783 ms |
コンパイル使用メモリ | 193,536 KB |
最終ジャッジ日時 | 2025-02-14 01:55:43 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 1 |
ソースコード
// 嘘解法 // if 文で 9 <= H としていない #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; string ans; if (H <= 6) { ans = "Yes"; } else if (9 < H) { ans = "No"; } else if (H == 7) { if (M < 30) { ans = "Yes"; } else { ans = "Late"; } } else { if (M < 30) { ans = "Late"; } else { ans = "No"; } } cout << ans << '\n'; return 0; }