# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
418390 | 2021-06-05T10:36:24 Z | jacquesamsel | Mechanical Doll (IOI18_doll) | C++14 | 25 ms | 3132 KB |
#include <bits/stdc++.h> using namespace std; void answer(std::vector<int> C, std::vector<int> X, std::vector<int> Y); void create_circuit(int M, vector<int> A) { A.push_back(0); vector<int> moves; moves.assign(M+1, 0); int last = 0; int m = 0; for (int i = 0; i < A.size(); i++) { // cout << last << " to " << A[i] << endl; moves[last] = A[i]; m = max(m, A[i]); last = A[i]; } // cout << last << endl; answer(moves, {}, {}); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Output is correct |
2 | Correct | 20 ms | 2348 KB | Output is correct |
3 | Correct | 25 ms | 2120 KB | Output is correct |
4 | Correct | 1 ms | 204 KB | Output is correct |
5 | Correct | 10 ms | 1356 KB | Output is correct |
6 | Correct | 24 ms | 3132 KB | Output is correct |
7 | Correct | 0 ms | 204 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Output is correct |
2 | Correct | 20 ms | 2348 KB | Output is correct |
3 | Correct | 25 ms | 2120 KB | Output is correct |
4 | Correct | 1 ms | 204 KB | Output is correct |
5 | Correct | 10 ms | 1356 KB | Output is correct |
6 | Correct | 24 ms | 3132 KB | Output is correct |
7 | Correct | 0 ms | 204 KB | Output is correct |
8 | Incorrect | 24 ms | 2972 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 | 20 ms | 2348 KB | Output is correct |
3 | Correct | 25 ms | 2120 KB | Output is correct |
4 | Correct | 1 ms | 204 KB | Output is correct |
5 | Correct | 10 ms | 1356 KB | Output is correct |
6 | Correct | 24 ms | 3132 KB | Output is correct |
7 | Correct | 0 ms | 204 KB | Output is correct |
8 | Incorrect | 24 ms | 2972 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 | - |