Submission #1058911

#TimeUsernameProblemLanguageResultExecution timeMemory
1058911Joshua_AnderssonMechanical Doll (IOI18_doll)C++14
2 / 100
11 ms3160 KiB
#include "doll.h" #include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef vector<vi> vvi; typedef pair<int, int> p2; #define rep(i, high) for (int i = 0; i < high; i++) #define repp(i, low, high) for (int i = low; i < high; i++) #define repe(i, container) for (auto& i : container) #define sz(container) ((int)container.size()) #define all(x) begin(x),end(x) #if _LOCAL #define assert(x) if (!(x)) __debugbreak() #endif void create_circuit(int m, std::vector<int> a) { int n = sz(a); vi c(m + 1); c[0] = a[0]; rep(i, n-1) { c[a[i]] = a[i + 1]; } c[a.back()] = 0; std::vector<int> X, Y; answer(c, X, Y); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...