結果
| 問題 | No.2371 最大の試練それは起床 |
| コンテスト | |
| ユーザー |
poyon
|
| 提出日時 | 2023-06-11 22:19:34 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.89.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 799 bytes |
| 記録 | |
| コンパイル時間 | 783 ms |
| コンパイル使用メモリ | 62,244 KB |
| 最終ジャッジ日時 | 2025-02-14 01:53:39 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、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, "H");
inf.readSpace();
int M = inf.readInt(0, 59, "M");
inf.readEoln();
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;
}
poyon