# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
740433 | 2023-05-12T13:12:02 Z | danikoynov | Mechanical Doll (IOI18_doll) | C++14 | 18 ms | 2980 KB |
#include "doll.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; int n, m; void create_circuit(int M, vector<int> A) { n = A.size(); m = M; vector < int > c(m + 1); for (int i = 1; i < A.size(); i ++) c[A[i - 1]] = A[i]; c[A.back()] = 0; c[0] = A[0]; vector < int > x, y; answer(c, x, y); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 17 ms | 2380 KB | Output is correct |
3 | Correct | 12 ms | 2004 KB | Output is correct |
4 | Correct | 1 ms | 212 KB | Output is correct |
5 | Correct | 9 ms | 1364 KB | Output is correct |
6 | Correct | 17 ms | 2900 KB | Output is correct |
7 | Correct | 0 ms | 296 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 17 ms | 2380 KB | Output is correct |
3 | Correct | 12 ms | 2004 KB | Output is correct |
4 | Correct | 1 ms | 212 KB | Output is correct |
5 | Correct | 9 ms | 1364 KB | Output is correct |
6 | Correct | 17 ms | 2900 KB | Output is correct |
7 | Correct | 0 ms | 296 KB | Output is correct |
8 | Incorrect | 18 ms | 2980 KB | wrong motion |
9 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 17 ms | 2380 KB | Output is correct |
3 | Correct | 12 ms | 2004 KB | Output is correct |
4 | Correct | 1 ms | 212 KB | Output is correct |
5 | Correct | 9 ms | 1364 KB | Output is correct |
6 | Correct | 17 ms | 2900 KB | Output is correct |
7 | Correct | 0 ms | 296 KB | Output is correct |
8 | Incorrect | 18 ms | 2980 KB | wrong motion |
9 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | wrong motion |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | wrong motion |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | wrong motion |
2 | Halted | 0 ms | 0 KB | - |