結果
| 問題 | No.2371 最大の試練それは起床 | 
| コンテスト | |
| ユーザー |  poyon | 
| 提出日時 | 2023-06-17 01:18:57 | 
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) | 
| 結果 | 
                                CE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 878 bytes | 
| コンパイル時間 | 1,097 ms | 
| コンパイル使用メモリ | 62,408 KB | 
| 最終ジャッジ日時 | 2025-02-14 21:47:23 | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
            
            
            
            
            ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp:11:14: fatal error: /opt/testlib/testlib.h: No such file or directory
   11 |     #include "/opt/testlib/testlib.h"
      |              ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
            
            ソースコード
// Validate Input by testlib.h
// clang-format off
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#if __has_include("testlib.h")
    #include "testlib.h"
#else
    #include "/opt/testlib/testlib.h"
#endif
// clang-format on
int main(int argc, char *argv[]) {
    // -------------------- Validate Input --------------------
    registerValidation(argc, argv);
    int H = inf.readInt(0, 23);
    inf.readSpace();
    int M = inf.readInt(0, 59);
    inf.readChar('\n');
    inf.readEof();
    // -------------------- Solve --------------------
    auto f = [&](int h, int m) -> int { return 60 * h + m; };
    int s = f(7, 30);
    int t = f(8, 30);
    int T = f(H, M);
    string ans;
    if (T < s) {
        ans = "Yes";
    } else if (T < t) {
        ans = "Late";
    } else {
        ans = "No";
    }
    cout << ans << '\n';
    return 0;
}
            
            
            
        