Submission #823171

# Submission time Handle Problem Language Result Execution time Memory
823171 2023-08-12T08:47:11 Z ALeonidou Mechanical Doll (IOI18_doll) C++17
0 / 100
6 ms 1336 KB
#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
*/
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Wrong Answer: wrong array length
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Wrong Answer: wrong array length
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Wrong Answer: wrong array length
2 Halted 0 ms 0 KB -