This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
//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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |