Submission #1044971

# Submission time Handle Problem Language Result Execution time Memory
1044971 2024-08-05T15:14:21 Z RecursiveCo Mechanical Doll (IOI18_doll) C++17
2 / 100
11 ms 3160 KB
#include <bits/stdc++.h>
#include "doll.h"

using namespace std;

#define out(o) cout << o

void create_circuit(int M, vector<int> A) {
    int N = A.size();
    vector<int> C(M + 1, 0);
    vector<int> X;
    vector<int> Y;
    C[0] = A[0];
    for (int i = 0; i < N; i++) C[A[i]] = i == N - 1? 0: A[i + 1];
    answer(C, X, Y);
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 9 ms 2360 KB Output is correct
3 Correct 7 ms 1984 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 5 ms 1456 KB Output is correct
6 Correct 11 ms 2992 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 9 ms 2360 KB Output is correct
3 Correct 7 ms 1984 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 5 ms 1456 KB Output is correct
6 Correct 11 ms 2992 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 11 ms 3160 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 9 ms 2360 KB Output is correct
3 Correct 7 ms 1984 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 5 ms 1456 KB Output is correct
6 Correct 11 ms 2992 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 11 ms 3160 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -