| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 248381 | kostia244 | 자동 인형 (IOI18_doll) | C++17 | 134 ms | 10340 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "doll.h"
#include<bits/stdc++.h>
using namespace std;
int n, m, tN;
vector<int> x, y, a;
int build(int s, int t) {
if(s+t >= tN) {
if(s == tN-1) return 0;
if(s >= n) return -1e9;
return a[s];
}
int A = build(s, 2*t);
int B = build(s+t, 2*t);
x.push_back(A);
y.push_back(B);
//cout << -(int)x.size() << " " << s << " " << t << " // " << A << " " << B << '\n';
return -(int)x.size();
}
void create_circuit(int M, vector<int> A) {
n = A.size(), m = M;
a = A;
tN = n+1;
//printf("%d %d", tN, n);
while(tN&(tN-1)) tN++;
//printf("%d %d", tN, n);
build(0, 1);
for(int i = 0; i < x.size(); i++) {
if(x[i] == -1e9) x[i] = -(int)x.size();
if(y[i] == -1e9) y[i] = -(int)x.size();
}
vector<int> C(M + 1, -(int)x.size());
answer(C, x, y);
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 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... | ||||
