Submission #976603

#TimeUsernameProblemLanguageResultExecution timeMemory
976603IsamCrayfish scrivener (IOI12_scrivener)C++17
0 / 100
108 ms262144 KiB
#include<bits/stdc++.h>
using namespace std;

string s[1000001];

int tot;

void Init(){};

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

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

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