# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
319462 | 2020-11-05T10:44:37 Z | shaf_wa_nur | ICC (CEOI16_icc) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> #include "icc.h" using namespace std; void run(int n) { int cnt = 0; while (cnt != n - 1) { for (int x = 1; x <= n; x++) { for (int y = x + 1; y <= n; y++) { int _a[] = {x}; int _b[] = {y}; ret = query(1, 1, _a, _b); if (ret) { cnt += 1; setRoad(x, y); } } } } }