Submission #624283

# Submission time Handle Problem Language Result Execution time Memory
624283 2022-08-07T16:24:28 Z Dan4Life Mechanical Doll (IOI18_doll) C++17
2 / 100
19 ms 2612 KB
#include "doll.h"
#include <bits/stdc++.h>
using namespace std;

void create_circuit(int M, vector<int> A) {
  int n = A.size();
  vector<int> C(M+1);
  C[0] = A[0];
  for(int i = 0; i < n-1; i++) C[A[i]]=A[i+1];
  C[A[n-1]]=0;
  vector<int> X,Y; answer(C,X,Y); return;
  for (int k = 0; k < n; ++k) {
    X[k] = Y[k] = A[k];
  }
  answer(C, X, Y);
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 15 ms 2388 KB Output is correct
3 Correct 12 ms 2020 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 7 ms 1364 KB Output is correct
6 Correct 19 ms 2612 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 15 ms 2388 KB Output is correct
3 Correct 12 ms 2020 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 7 ms 1364 KB Output is correct
6 Correct 19 ms 2612 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 19 ms 2436 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 15 ms 2388 KB Output is correct
3 Correct 12 ms 2020 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 7 ms 1364 KB Output is correct
6 Correct 19 ms 2612 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 19 ms 2436 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 -