Submission #425832

#TimeUsernameProblemLanguageResultExecution timeMemory
425832Maqsut_03Crayfish scrivener (IOI12_scrivener)C++14
34 / 100
130 ms262148 KiB
#include<bits/stdc++.h>
using namespace std;

string last;
map<int, string> s;
int k = 0;

void Init() {}

void TypeLetter(char L) {
  k++;
  last += L;
  s[k] = last;
}

void UndoCommands(int U) {
    last = s[k - U];
    s[++k] = last;
}

char GetLetter(int P) {

  return last[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...