제출 #976607

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

__gnu_cxx::crope s[1000001];

int tot;

void Init(){};

void TypeLetter(char L){
	
	++tot;
	
	s[tot] = s[tot-1];
	
	s[tot].push_back(L);
	
}

void UndoCommands(int U){
	s[tot] = s[tot - U];
}

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