# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
319463 |
2020-11-05T10:45:46 Z |
shaf_wa_nur |
ICC (CEOI16_icc) |
C++17 |
|
519 ms |
612 KB |
#include <bits/stdc++.h>
#include "icc.h"
using namespace std;
void setRoad(int a, int b);
int query(int size_a, int size_b, int a[], int b[]);
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};
int ret = query(1, 1, _a, _b);
if (ret) {
cnt += 1;
setRoad(x, y);
}
}
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
16 ms |
492 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
221 ms |
612 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
519 ms |
492 KB |
Number of queries more than 4500 out of 2250 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
459 ms |
556 KB |
Number of queries more than 4000 out of 2000 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
410 ms |
612 KB |
Number of queries more than 3550 out of 1775 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
381 ms |
612 KB |
Number of queries more than 3250 out of 1625 |
2 |
Halted |
0 ms |
0 KB |
- |