Submission #194172

#TimeUsernameProblemLanguageResultExecution timeMemory
194172s_avila_g크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
34 / 100
245 ms262148 KiB
#include <bits/stdc++.h>
using namespace std;

int it = 0;
char last;
string a[1000000];

void Init() {
}

void TypeLetter(char L) {
    if(it != 0) a[it] += a[it-1];
    last = L;
    a[it] += last;
    //cout<<it<<" "<<a[it]<<endl;
    it++;
}

void UndoCommands(int U) {
    a[it] = a[it-U-1];
    //cout<<it<<" "<<a[it]<<endl;
    it++;
}

char GetLetter(int P) {
    //cout<<it<<" "<<a[it-1]<<endl;
    last = a[it-1][P];
    return last;
}
#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...