/***********************************************
* auth: tapilyoca *
* date: 04/21/2025 at 22:02:54 *
* dots: https://github.com/tapilyoca/dotilyoca *
***********************************************/
#include <bits/stdc++.h>
#include<ext/rope>
using namespace __gnu_cxx;
using namespace std;
const long long MOD = 1e9+7;
template<typename T>
using vec = vector<T>;
using ll = long long;
using vll = vec<ll>;
using vvll = vec<vll>;
using pll = pair<ll,ll>;
using str = string;
#define pb push_back
#define dbg(x) cerr << #x << ": " << x << endl;
/***********************************************/
int i;
vector<crope> ropes(1e6+10);
void Init() {
i = 0;
}
void TypeLetter(char L) {
i++;
ropes[i] = ropes[i-1];
ropes[i].push_back(L);
}
void UndoCommands(int U) {
i++;
ropes[i] = ropes[i-U-1];
}
char GetLetter(int P) {
return ropes[i][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... |