Submission #624580

# Submission time Handle Problem Language Result Execution time Memory
624580 2022-08-08T13:43:34 Z evenvalue Mechanical Doll (IOI18_doll) C++17
2 / 100
19 ms 2988 KB
#include "doll.h"
#include <bits/stdc++.h>
using namespace std;

template<typename T>
using min_heap = priority_queue<T, vector<T>, greater<T>>;
template<typename T>
using max_heap = priority_queue<T, vector<T>, less<T>>;

using int64 = long long;
using ld = long double;

constexpr int kInf = 1e9 + 10;
constexpr int64 kInf64 = 1e15 + 10;
constexpr int kMod = 1e9 + 7;

void create_circuit(int M, std::vector<int> A) {
  const int n = A.size();

  vector<int> C(M + 1);
  iota(C.begin(), C.end(), 0);
  for (int i = 0; i < n - 1; i++) {
    C[A[i]] = A[i + 1];
  }
  C[0] = A[0];
  C[A[n - 1]] = 0;
  answer(C, {}, {});
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 18 ms 2388 KB Output is correct
3 Correct 12 ms 2044 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 18 ms 2872 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 18 ms 2388 KB Output is correct
3 Correct 12 ms 2044 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 18 ms 2872 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Incorrect 19 ms 2988 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 18 ms 2388 KB Output is correct
3 Correct 12 ms 2044 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 18 ms 2872 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Incorrect 19 ms 2988 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -