# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
258245 |
2020-08-05T15:18:40 Z |
kimbj0709 |
ICC (CEOI16_icc) |
C++14 |
|
493 ms |
896 KB |
//#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#include "icc.h"
using namespace std;
#define ve vector
typedef long long ll;
typedef pair<int, int> pii;
void run(int n) {
int r, a, b, A[1], B[1];
bool E[15][15] = {};
for (int i = 0; i < n - 1; i++) {
a = -1;
b = -1;
for (int j = 0; j < n; j++) {
for (int k = 0; k < j; k++) {
A[0] = j + 1;
B[0] = k + 1;
r = query(1, 1, A, B);
if (r == 1 && !E[j][k]) {
assert(a==-1&&b==-1);
a = j;
b = k;
E[j][k] = true;
}
}
}
setRoad(a + 1, b + 1);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
19 ms |
896 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
243 ms |
888 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
493 ms |
556 KB |
Number of queries more than 4500 out of 2250 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
406 ms |
512 KB |
Number of queries more than 4000 out of 2000 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
368 ms |
512 KB |
Number of queries more than 3550 out of 1775 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
347 ms |
512 KB |
Number of queries more than 3250 out of 1625 |
2 |
Halted |
0 ms |
0 KB |
- |