結果
問題 |
No.3139 Interval MEX ?
|
ユーザー |
👑 ![]() |
提出日時 | 2025-05-02 19:38:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 974 bytes |
コンパイル時間 | 7,509 ms |
コンパイル使用メモリ | 240,816 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-05-02 19:39:45 |
合計ジャッジ時間 | 9,945 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 37 RE * 20 |
ソースコード
// 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 = 490000; 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; }