Submission #425105

#TimeUsernameProblemLanguageResultExecution timeMemory
425105PbezzMechanical Doll (IOI18_doll)C++14
2 / 100
32 ms3028 KiB
#include "doll.h" #include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back typedef pair<ll,ll> pii; const ll MAXN = 2e5+5; const ll INF = 1e9+7; void create_circuit(int M, std::vector<int> A) { int n = A.size(); std::vector<int> C(M + 1); C[0]=A[0]; for(ll i=0;i<n-1;i++){ C[A[i]]=A[i+1]; } C[A[n-1]]=0; std::vector<int> X(0), Y(0); 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...