# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
75239 | mammamia | 자동 인형 (IOI18_doll) | C++14 | 160 ms | 11612 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "doll.h"
using namespace std;
int tokill, swcnt;
bool state[400555];
vector<int> X(400555), Y(400555);
void build(int root, int height, bool orientation){
//cout<<root<<" "<<orientation<<" "<<(1<<height)<<" \n";
if((1<<height) <= tokill){
tokill-= (1<<height);
X[root-1] = -1;
return;
}
if(height == 0) {
return;
}
swcnt++;
if (!orientation) {
X[root - 1] = -swcnt;
} else {
Y[root - 1] = -swcnt;
}
int aux = swcnt;
build(aux, height - 1, 0);
build(aux, height - 1, 1);
# | 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... |