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 "doll.h"
#include <bits/stdc++.h>
#define sc second
#define fr first
#define pb push_back
#define mk make_pair
using namespace std;
const int NN = (1e6 + 5);
const int inf = (1e9 + 7);
int n;
int a[NN];
vector <int> c,x,y;
void create_circuit(int M, vector<int> A) {
n = A.size();
for (int i = 0; i < n; i ++) a[i + 1] = A[i];
if (M == 1) {
c.pb(1);
if (n == 1) {
c.pb(0);
}
else {
c.pb(-1);
x.pb(1);
y.pb(-2);
for (int i = 2; i < n; i ++) {
x.pb(-1 * (i - 1));
y.pb(-1 * (i + 1));
}
x.pb(-n);
y.pb(0);
}
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... |