제출 #218961

#제출 시각아이디문제언어결과실행 시간메모리
218961KoalaMuch크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
5 / 100
185 ms5240 KiB
#include<bits/stdc++.h> using namespace std; const int N = 1e6+5; char s[N]; int len[N]; int opr; int n; void Init() {} void TypeLetter(char L) { s[n++] = L; len[++opr] = n; } void UndoCommands(int U) { n = len[max(0,opr-U-1)]; len[++opr] = n; } char GetLetter(int P) { return P>=n ? '\0' : s[P]; }
#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...