이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |