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,(int)ans.size()-1);
}
}
char GetLetter(int P){
return ans[P-1];
}
/*
int main(){
TypeLetter('A');
TypeLetter('B');
TypeLetter('C');
GetLetter(1);
GetLetter(3);
UndoCommands(2);
cout<<GetLetter(1)<<endl;;
}
*/
# | 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... |