This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#pragma GCC optimize("O3")
#include <bits/extc++.h>
using namespace std;
using namespace __gnu_cxx;
#define ll long long
// #define int ll
#define fi first
#define se second
#define ld long double
#define pb push_back
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
char last;
rope<char> v[1000010];
int op = 0;
void Init() {
v[0] = "";
}
void TypeLetter(char L) {
v[op + 1] = v[op];
v[op + 1] += L;
op++;
}
void UndoCommands(int U) {
v[op + 1] = v[op - U];
op++;
}
char GetLetter(int P) {
return v[op][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... |