結果
問題 |
No.3139 Interval MEX ?
|
ユーザー |
👑 ![]() |
提出日時 | 2025-05-02 19:38:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 974 bytes |
コンパイル時間 | 6,888 ms |
コンパイル使用メモリ | 241,168 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-05-02 19:38:44 |
合計ジャッジ時間 | 9,848 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 57 |
ソースコード
// validator.cpp — input validator for the “MEX sequence counting” problem // Uses Codeforces/Polygon testlib (https://codeforces.com/problemset/problemset#testlib) // // The input format is: // N M\n // Constraints // 1 ≤ N ≤ 5·10^5 // 1 ≤ M ≤ 5·10^5 // (single test case per file) // // The validator checks: // * exactly two integers on the first line // * both lie inside the stated ranges // * the file contains nothing after the first EOLN // // Build example (Polygon default): // g++ -std=c++17 -O2 -pipe -static -s validator.cpp -o validator #include "testlib.h" int main(int argc, char **argv) { registerValidation(argc, argv); // Read N and M with explicit bounds const int MAX_N = 500000; const int MAX_M = 500000; int N = inf.readInt(1, MAX_N, "N"); inf.readSpace(); int M = inf.readInt(1, MAX_M, "M"); inf.readEoln(); // No further tokens should exist inf.readEof(); return 0; }