結果
問題 | No.1983 [Cherry 4th Tune C] 南の島のマーメイド |
ユーザー | akakimidori |
提出日時 | 2022-03-29 20:50:48 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,222 bytes |
コンパイル時間 | 7,019 ms |
コンパイル使用メモリ | 244,928 KB |
実行使用メモリ | 45,760 KB |
最終ジャッジ日時 | 2024-04-17 12:31:56 |
合計ジャッジ時間 | 14,998 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
ソースコード
#include "testlib.h" #include <iostream> #include <cassert> #include <set> using namespace std; const int MIN_N = 2; const int MAX_N = 200000; const int MIN_M = 0; const int MAX_M = 200000; const int MIN_Q = 1; const int MAX_Q = 200000; int main(int argc, char** argv) { registerValidation(argc, argv); const int n = inf.readInt(MIN_N, MAX_N, "N"); inf.readSpace(); const int max_m = min((long long)MAX_M, (long long)n * (n - 1) / 2); const int m = inf.readInt(MIN_M, max_m, "M"); inf.readSpace(); const int q = inf.readInt(MIN_Q, MAX_Q, "Q"); inf.readEoln(); set<pair<int, int>> edges; for (int i = 0; i < m; ++i) { const int u = inf.readInt(1, n); inf.readSpace(); const int v = inf.readInt(1, n); inf.readEoln(); assert(u != v); const int x = min(u, v); const int y = max(u, v); assert(edges.insert(make_pair(x, y)).second); } for (int i = 0; i < q; ++i) { const int u = inf.readInt(1, n); inf.readSpace(); const int v = inf.readInt(1, n); inf.readEoln(); assert(u != v); } inf.readEof(); std::cout << "validator" << std::endl; return 0; }