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;
void Init() {}
string s = "";
void TypeLetter(char L) {
s += L;
}
void UndoCommands(int U) {
while(U--) {
s.erase(s.size() - 1, s.size() - 1);
}
}
char GetLetter(int P) {
return s[P];
}
/*
int main() {
TypeLetter('a');
TypeLetter('b');
UndoCommands(1);
cout << GetLetter(0);
string a;
cin >> a;
a.erase(a.size() - 1, a.size() - 1);
cout << a;
}
*/
# | 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... |