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/stdc++.h>
using namespace std;
typedef long long ll;
//#define int ll
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int p=0;
int op=0;
vector<char> s[1000010];
int pos[1000010];
void Init(){
}
void TypeLetter(char L){
s[p].push_back(L);
pos[op]=p;
p++;
op++;
}
void UndoCommands(int U){
p=pos[op-U];
op++;
}
char GetLetter(int P){
return s[P].back();
}/*
signed main(){
ios_base::sync_with_stdio(0);cin.tie(0);
}*/
# | 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... |