Submission #611874

# Submission time Handle Problem Language Result Execution time Memory
611874 2022-07-29T08:15:53 Z Jomnoi Mechanical Doll (IOI18_doll) C++17
2 / 100
19 ms 2232 KB
#include <bits/stdc++.h>
#include "doll.h"
using namespace std;

void create_circuit(int M, vector <int> A) {
    int N = A.size();
    vector<int> C(M + 1), X, Y;
    C[0] = A[0];
    for(int i = 0; i < N - 1; i++) {
        C[A[i]] = A[i + 1];
    }
    C[A[N - 1]] = 0;
    answer(C, X, Y);
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 14 ms 1876 KB Output is correct
3 Correct 11 ms 1492 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 19 ms 2232 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 14 ms 1876 KB Output is correct
3 Correct 11 ms 1492 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 19 ms 2232 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 18 ms 2108 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 14 ms 1876 KB Output is correct
3 Correct 11 ms 1492 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 19 ms 2232 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 18 ms 2108 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 0 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -