Submission #194169

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

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

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...