結果

問題 No.2371 最大の試練それは起床
ユーザー poyon
提出日時 2023-06-11 22:41:05
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 576 bytes
コンパイル時間 1,940 ms
コンパイル使用メモリ 192,408 KB
最終ジャッジ日時 2025-02-14 01:54:14
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

// 嘘解法
// 8時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;
}
0