#include "doll.h"
#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF 1e18
#define ll int
typedef vector <int> vi;
typedef pair <int,int> ii;
#define dbg(x) cout<<#x<<": "<<x<<endl;
#define sz(x) (ll)x.size()
#define pb push_back
void printVct(vi &v){
for (ll i= 0; i<sz(v); i++){
cout<<v[i]<<" ";
}
cout<<endl;
}
void create_circuit(int m, vi v) {
int n = sz(v);
vi c(n+1), x, y;
ll a,b;
c[0] = v[0];
for(ll i=0; i<n; i++){
a = v[i];
if (i<n-1) b = v[i+1]; else b = 0;
c[a] = b;
}
//printVct(c);
answer(c,x,y);
}
/*
4 4
1 2 3 4
*/
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Incorrect |
6 ms |
1336 KB |
Wrong Answer: wrong array length |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Incorrect |
6 ms |
1336 KB |
Wrong Answer: wrong array length |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Incorrect |
6 ms |
1336 KB |
Wrong Answer: wrong array length |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Wrong Answer: wrong array length |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Wrong Answer: wrong array length |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Wrong Answer: wrong array length |
2 |
Halted |
0 ms |
0 KB |
- |