Submission #1192133

#TimeUsernameProblemLanguageResultExecution timeMemory
1192133TroySerCrayfish scrivener (IOI12_scrivener)C++20
74 / 100
482 ms272748 KiB
#include <ext/rope>

using namespace __gnu_cxx;

const int SZ = 1e7 + 1;

crope states[SZ];
int currentIndex = 0;

void Init() {}

void TypeLetter(char L) {
	
	states[currentIndex + 1] = states[currentIndex] + L;
	currentIndex++;

}

void UndoCommands(int U) {

	states[currentIndex + 1] = states[currentIndex - U];
	currentIndex++;

}

char GetLetter(int P) {

  	return states[currentIndex][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...