# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95707 | 2019-02-02T07:57:09 Z | tqbfjotld | Mechanical Doll (IOI18_doll) | C++14 | 28 ms | 2728 KB |
#include "doll.h" #include <vector> int ans[100005]; using namespace std; void create_circuit(int M, std::vector<int> A) { vector<int> X; vector<int> Y; ans[0] = A[0]; for(int x = 0; x<A.size()-1; x++){ ans[A[x]]=A[x+1]; } ans[A[A.size()-1]] = 0; vector<int> C; for (int x = 0; x<M+1; x++){ C.push_back(ans[x]); } answer(C, X, Y); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Output is correct |
2 | Correct | 21 ms | 2468 KB | Output is correct |
3 | Correct | 17 ms | 1828 KB | Output is correct |
4 | Correct | 1 ms | 204 KB | Output is correct |
5 | Correct | 12 ms | 1604 KB | Output is correct |
6 | Correct | 27 ms | 2728 KB | Output is correct |
7 | Correct | 1 ms | 204 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Output is correct |
2 | Correct | 21 ms | 2468 KB | Output is correct |
3 | Correct | 17 ms | 1828 KB | Output is correct |
4 | Correct | 1 ms | 204 KB | Output is correct |
5 | Correct | 12 ms | 1604 KB | Output is correct |
6 | Correct | 27 ms | 2728 KB | Output is correct |
7 | Correct | 1 ms | 204 KB | Output is correct |
8 | Incorrect | 28 ms | 2340 KB | wrong motion |
9 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Output is correct |
2 | Correct | 21 ms | 2468 KB | Output is correct |
3 | Correct | 17 ms | 1828 KB | Output is correct |
4 | Correct | 1 ms | 204 KB | Output is correct |
5 | Correct | 12 ms | 1604 KB | Output is correct |
6 | Correct | 27 ms | 2728 KB | Output is correct |
7 | Correct | 1 ms | 204 KB | Output is correct |
8 | Incorrect | 28 ms | 2340 KB | wrong motion |
9 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | wrong motion |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | wrong motion |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | wrong motion |
2 | Halted | 0 ms | 0 KB | - |