Submission #624292

# Submission time Handle Problem Language Result Execution time Memory
624292 2022-08-07T16:52:03 Z moyindavid Mechanical Doll (IOI18_doll) C++17
0 / 100
0 ms 212 KB
#include "doll.h"
#include <bits/stdc++.h>
#define pb push_back
#define ll long long

using namespace std;

void create_circuit(int M, vector<int> A) {
  int N = A.size();
  vector<int> C(M+1);
  set<int> s;
  for(int i=0;i<M;i++)C[i]=0;
  C[0]=A[0];
  for (int i = 1; i < N; ++i) {
    C[A[i-1]]=A[i];
  }


  C[M]=0;

  vector<int> X={},Y={};
  answer(C, X, Y);
}
# 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 -
# 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 -