# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
319462 | shaf_wa_nur | ICC (CEOI16_icc) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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);
}
}
}
}
}