# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
566057 |
2022-05-21T17:37:02 Z |
piOOE |
ICC (CEOI16_icc) |
C++17 |
|
1 ms |
628 KB |
#include "icc.h"
#include <bits/stdc++.h>
using namespace std;
#define all(x) begin(x), end(x)
#define sz(x) ((int)size(x))
#define trace(x) cout << #x << ": " << (x) << endl;
typedef long long ll;
int query(int size_a, int size_b, int a[], int b[]);
void run(int n);
void setRoad(int a, int b);
void run(int n) {
vector<vector<bool>> ws(n, vector<bool>(n));
for (int cnt = 1; cnt <= n - 1; ++cnt) {
for (int i = 1; i <= n; ++i) {
bool ok = false;
for (int j = i + 1; j <= n; ++j) {
if (!ws[i - 1][j - 1] && query(1, 1, reinterpret_cast<int *>(i), reinterpret_cast<int *>(j))) {
ws[i - 1][j - 1] = true;
setRoad(i, j);
ok = true;
break;
}
}
if (ok) {
break;
}
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
596 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
596 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
596 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
596 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
596 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
628 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |