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 endl "\n"
#define pii pair<int,int>
#define x first
#define y second
typedef long long int ll;
int N;
void Init() {
}
string ans="";
void TypeLetter(char L){
ans+=L;
}
void UndoCommands(int m){
if(m>=(int)ans.size()) {
ans="";
}
else{
ans.erase((int)ans.size()-m-1,(int)ans.size()-1);
}
}
char GetLetter(int P){
return ans[P-1];
}
# | 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... |