This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
#define rall(s) s.rbegin(),s.rend()
string s[5005];
int cur=0;
void Init(){
fill(s,s+5001,"");
return;
}
void TypeLetter(char L){
cur++;
s[cur]=s[cur-1]+L;
return;
}
void UndoCommands(int U){
cur++;
s[cur]=s[cur-U-1];
return;
}
char GetLetter(int P){
return s[cur][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... |