Submission #829448

# Submission time Handle Problem Language Result Execution time Memory
829448 2023-08-18T10:48:57 Z radaiosm7 Mechanical Doll (IOI18_doll) C++17
2 / 100
21 ms 3028 KB
#include "doll.h"
#include <bits/stdc++.h>
using namespace std;
int i;

void create_circuit(int M, vector<int> A) {
  int N = A.size();
  vector<int> C(M + 1);
  for (i=0; i <= M; ++i) C[i] = i;
  C[0] = A[0];
  for (i=1; i < N; ++i) C[A[i-1]] = A[i];
  C[A[N-1]] = 0;
  answer(C, {}, {});
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 13 ms 2344 KB Output is correct
3 Correct 13 ms 2004 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 15 ms 2900 KB Output is correct
7 Correct 0 ms 296 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 13 ms 2344 KB Output is correct
3 Correct 13 ms 2004 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 15 ms 2900 KB Output is correct
7 Correct 0 ms 296 KB Output is correct
8 Incorrect 21 ms 3028 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 13 ms 2344 KB Output is correct
3 Correct 13 ms 2004 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 15 ms 2900 KB Output is correct
7 Correct 0 ms 296 KB Output is correct
8 Incorrect 21 ms 3028 KB wrong motion
9 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 -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -