Submission #398239

#TimeUsernameProblemLanguageResultExecution timeMemory
398239chirathnirodhaCrayfish scrivener (IOI12_scrivener)C++17
34 / 100
162 ms262148 KiB
//Coded by Chirath Nirodha #include<bits/stdc++.h> using namespace std; int seq[1000010]; string s[1000010]; int ss,seqs; void Init(){ string x; seq[0]=0; s[0]=x; seqs=ss=1; } void TypeLetter(char L) { string x=s[seq[seqs-1]]; x.push_back(L); seq[seqs]=ss;seqs++; s[ss]=x;ss++; } void UndoCommands(int U) { seq[seqs]=seq[seqs-1-U];seqs++; } char GetLetter(int P) { return s[seq[seqs-1]][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...