Submission #596278

#TimeUsernameProblemLanguageResultExecution timeMemory
596278davi_bart크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
100 / 100
520 ms227908 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...