제출 #976609

#제출 시각아이디문제언어결과실행 시간메모리
976609IsamCrayfish scrivener (IOI12_scrivener)C++17
34 / 100
114 ms262144 KiB
#include<bits/stdc++.h>
using namespace std;

string s[1000010];

int tot;

void Init(){};

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

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

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...