제출 #246313

#제출 시각아이디문제언어결과실행 시간메모리
246313lakshith_크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
0 / 100
57 ms51448 KiB
#include <bits/stdc++.h>

using namespace std;

string arr[5005];
int pos = 1;

void Init() {
  arr[0]="";
}

void TypeLetter(char L) {
  arr[pos]=arr[pos-1]+L;
  pos++;
}

void UndoCommands(int U) {
  arr[pos]=arr[pos-U-1];
  pos++;
}

char GetLetter(int P) {
  char last = arr[pos][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...