# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1010372 | 2024-06-29T02:19:35 Z | HappyCapybara | Mechanical Doll (IOI18_doll) | C++17 | 14 ms | 11560 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]-1].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 | Correct | 1 ms | 436 KB | Output is correct |
2 | Runtime error | 14 ms | 11560 KB | Execution killed with signal 11 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 436 KB | Output is correct |
2 | Runtime error | 14 ms | 11560 KB | Execution killed with signal 11 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 436 KB | Output is correct |
2 | Runtime error | 14 ms | 11560 KB | Execution killed with signal 11 |
3 | 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 | Incorrect | 1 ms | 348 KB | wrong motion |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | wrong motion |
2 | Halted | 0 ms | 0 KB | - |