Submission #911587

#TimeUsernameProblemLanguageResultExecution timeMemory
911587Muhammad_AneeqCrayfish scrivener (IOI12_scrivener)C++17
34 / 100
125 ms262144 KiB
#include <string> using namespace std; int const N=1e6+10; struct node { string s=""; }; node* com[N]={}; int num=0; void Init() { for (int i=0;i<N;i++) com[i]=new node(); } void TypeLetter(char L) { num++; com[num]->s=com[num-1]->s+L; } void UndoCommands(int U) { com[num+1]->s=com[num-U]->s; num++; } char GetLetter(int P) { return com[num]->s[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...