This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |