Submission #288284

#TimeUsernameProblemLanguageResultExecution timeMemory
288284infinite_iqMechanical Doll (IOI18_doll)C++14
2 / 100
27 ms2372 KiB
#include <bits/stdc++.h> using namespace std ; #define pb push_back typedef vector < int > vi ; #include "doll.h" void create_circuit ( int M , vi ord ) { vi C , X , Y ; int N = ord .size () ; for ( int i = 0 ; i <= M ; i ++ ) C .pb ( 0 ) ; C [0] = ord [0] ; for ( int i = 0 ; i < N ; i ++ ) { int nxt = ( i == N-1 ? 0 : ord [i+1] ) ; C [ord[i]] = nxt ; } 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...