제출 #68420

#제출 시각아이디문제언어결과실행 시간메모리
68420nvmdava크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++17
34 / 100
1081 ms10600 KiB
#include <bits/stdc++.h> using namespace std; char s[1000001]; int now = 0, i = 0, dir[1000001], sz[1000001]; void Init() {} void TypeLetter(char L) { s[i] = L; dir[i] = now; sz[i] = sz[now] + 1; now = i; i++; } void UndoCommands(int U) { now = i - U - 1; s[i] = s[now]; dir[i] = dir[now]; sz[i] = sz[now]; i++; } char GetLetter(int P) { int j = i - 1; while(sz[j] != P + 1){ j = dir[j]; } return s[j]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...