# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1039152 | 2024-07-30T13:51:02 Z | MeGustaElArroz23 | popa (BOI18_popa) | C++17 | 1 ms | 344 KB |
#include <bits/stdc++.h> #include "popa.h" using namespace std; int solve(int N, int* Left, int* Right) { bool respuesta = query(0,0,0,0); for (int i = 0; i < N; i++) { Left[i] = -1; Right[i] = i+1; } Right[N-1] = -1; return 0; } void test(int N) { int* Left = new int[N]; int* Right = new int[N]; int root = solve(N, Left, Right); cout << "Root: " << root << endl; for (int i = 0; i < N; i++) { cout << Left[i] << " " << Right[i] << endl; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 0 ms | 344 KB | Execution killed with signal 13 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 344 KB | Execution killed with signal 13 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 344 KB | Execution killed with signal 13 |
2 | Halted | 0 ms | 0 KB | - |