Submission #119242

#TimeUsernameProblemLanguageResultExecution timeMemory
119242ioilolcomCrayfish scrivener (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...