이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |