제출 #114954

#제출 시각아이디문제언어결과실행 시간메모리
114954zoooma13크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
34 / 100
1082 ms6632 KiB
#include <bits/stdc++.h> using namespace std; //#include "grader.cpp" vector <int> command; void Init(){ } void TypeLetter(char L){ command.push_back(L); } void UndoCommands(int U){ command.push_back(-U-1); } char GetLetter(int P){ string ans = ""; for(int i=command.size()-1; ~i; ){ if(command[i] < 0) i = i+command[i]; else{ ans += (char)command[i]; i--; } } return ans[ans.size()-P-1]; }
#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...