Submission #1073824

# Submission time Handle Problem Language Result Execution time Memory
1073824 2024-08-24T22:48:12 Z shezitt Mechanical Doll (IOI18_doll) C++14
2 / 100
14 ms 2396 KB
#include "doll.h"
#include <bits/stdc++.h>

using namespace std;

using ll = long long;


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