結果

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

ソースコード

diff #

// 別解(pair の比較)

#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 t = make_pair(H, M);
    auto S = make_pair(7, 30);
    auto T = make_pair(8, 30);

    string ans;
    if (t < S) {
        ans = "Yes";
    } else if (t < T) {
        ans = "Late";
    } else {
        ans = "No";
    }
    cout << ans << '\n';

    return 0;
}
0