제출 #555620

#제출 시각아이디문제언어결과실행 시간메모리
555620Pau크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++11
100 / 100
496 ms227916 KiB
#include <bits/stdc++.h>
#include <ext/rope>
using namespace std; using namespace __gnu_cxx;

rope<char> str[1000005];
int cur;

void Init() {
	
}

void TypeLetter(char L) {
	cur++;
	str[cur] = str[cur-1];
	str[cur] += L;
}

void UndoCommands(int U) {
	cur++;
	str[cur] = str[cur-U-1];
}

char GetLetter(int P) {
	return str[cur][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...