Submission #1016353

#TimeUsernameProblemLanguageResultExecution timeMemory
1016353FaggiCrayfish scrivener (IOI12_scrivener)C++11
12 / 100
133 ms262144 KiB
#include <iostream> #include <vector> #include <stack> #include <string> using namespace std; vector<string> textHistory; stack<int> undoStack; void Init() { textHistory.clear(); undoStack = stack<int>(); textHistory.push_back(""); } void TypeLetter(char L) { string currentText = textHistory.back(); currentText.push_back(L); textHistory.push_back(currentText); } void UndoCommands(int U) { for (int i = 0; i < U; ++i) { undoStack.push(textHistory.size() - 1); textHistory.pop_back(); } } char GetLetter(int P) { string currentText = textHistory.back(); return currentText[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...