# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1010371 | 2024-06-29T02:18:08 Z | HappyCapybara | Mechanical Doll (IOI18_doll) | C++17 | 44 ms | 604 KB |
#include "doll.h" #include<bits/stdc++.h> using namespace std; void create_circuit(int M, vector<int> A) { vector<vector<int>> v(M); A.push_back(0); for (int i=0; i<A.size()-1; i++) v[A[i]].push_back(A[i+1]); vector<int> C(M+1, 0); C[0] = A[0]; vector<int> X, Y; for (int i=0; i<M; i++){ if (v[i].size() == 1) C[i+1] = v[i][0]; else { X.push_back(v[i][0]); Y.push_back(v[i][1]); C[i+1] = -X.size(); } } answer(C, X, Y); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 344 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 344 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 344 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 2 ms | 604 KB | Execution killed with signal 6 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 44 ms | 384 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 44 ms | 384 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |