| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 79088 | TAMREF | 크레이피쉬 글쓰는 기계 (IOI12_scrivener) | C++11 | 585 ms | 115688 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int mx = 1e6 + 5;
const int lg = 20;
int D[mx], I[mx];
char X[mx];
int p[mx][lg];
int n;
void Init() {
}
void TypeLetter(char L) {
++n;
I[n] = n; X[n] = L;
p[n][0] = I[n-1];
D[n] = D[I[n-1]] + 1;
for(int j = 1; 1 << j <= D[n]; j++){
p[n][j] = p[p[n][j-1]][j-1];
}
}
void UndoCommands(int U) {
++n;
I[n] = I[n - 1 - U];
}
char GetLetter(int P) {
++P;
int b = I[n], dlt = D[b] - P;
for(int j = 0; j < lg; j++){
if(dlt >> j & 1) b = p[b][j];
}
return X[b];
}| # | 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... | ||||
