Submission #1357507

#TimeUsernameProblemLanguageResultExecution timeMemory
1357507maya_sCrayfish scrivener (IOI12_scrivener)C++20
34 / 100
135 ms327680 KiB
#include<bits/stdc++.h>
using namespace std;
typedef int ll;

vector<string> v;
char last;

void Init() {

}

void TypeLetter(char L) {
  string s = (v.size() ? v.back() : "");
  s.push_back(L);
  v.push_back(s);
//   cout << s << "\n";
}

void UndoCommands(int U) {
  ll idx = v.size() - U - 1;
  v.push_back(v[idx]);
//   cout << v.back() << "\n";
}

char GetLetter(int P) {
  return v.back()[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...