제출 #119242

#제출 시각아이디문제언어결과실행 시간메모리
119242ioilolcom크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
0 / 100
118 ms1144 KiB
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define pii pair<int,int> #define x first #define y second typedef long long int ll; int N; void Init() { } string ans=""; void TypeLetter(char L){ ans+=L; } void UndoCommands(int m){ if(m>=(int)ans.size()) { ans=""; } else{ ans.erase((int)ans.size()-m,(int)ans.size()-1); } } char GetLetter(int P){ return ans[P-1]; } /* int main(){ TypeLetter('A'); TypeLetter('B'); TypeLetter('C'); GetLetter(1); GetLetter(3); UndoCommands(2); cout<<GetLetter(1)<<endl;; } */
#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...