Submission #417022

#TimeUsernameProblemLanguageResultExecution timeMemory
417022Emin2004Crayfish scrivener (IOI12_scrivener)C++14
34 / 100
139 ms262148 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define pii pair<int, int> #define F first #define S second const int N = 1000005; const int mod = 1e9+7; string s = ""; int m = 0; map<int, string> mp; void Init() {} void TypeLetter(char L) { s += L; mp[m] = s; m++; } void UndoCommands(int U) { s = mp[m - 1 - U]; mp[m] = s; m++; } char GetLetter(int P) { return s[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...