結果
| 問題 |
No.2371 最大の試練それは起床
|
| コンテスト | |
| ユーザー |
poyon
|
| 提出日時 | 2023-06-11 22:44:04 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 621 bytes |
| コンパイル時間 | 1,745 ms |
| コンパイル使用メモリ | 193,512 KB |
| 最終ジャッジ日時 | 2025-02-14 01:54:22 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
// 愚直解
#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 (H == 7) {
if (M < 30) {
ans = "Yes";
} else {
ans = "Late";
}
} else if (H == 8) {
if (M < 30) {
ans = "Late";
} else {
ans = "No";
}
} else { // 9 <= H
ans = "No";
}
cout << ans << '\n';
return 0;
}
poyon