Submission #194167

#TimeUsernameProblemLanguageResultExecution timeMemory
194167s_avila_gCrayfish scrivener (IOI12_scrivener)C++14
0 / 100
73 ms51624 KiB
#include <bits/stdc++.h> using namespace std; int it = 0; char last; string a[5005]; void Init() { } void TypeLetter(char L) { if(it != 0) a[it] += a[it-1]; last = L; a[it] += last; //cout<<it<<" "<<a[it]<<endl; it++; } void UndoCommands(int U) { a[it] = a[it-U-1]; //cout<<it<<" "<<a[it]<<endl; it++; } char GetLetter(int P) { last = a[it][P]; return last; }
#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...