Submission #425905

#TimeUsernameProblemLanguageResultExecution timeMemory
425905AzimjonCrayfish scrivener (IOI12_scrivener)C++17
34 / 100
170 ms262148 KiB
#include <bits/stdc++.h> using namespace std; const int N = 1111111; int p[N]; string q[N]; string s; int cnt = 0; void Init() { p[0] = -1; } void TypeLetter(char L) { int id = ++cnt; p[id] = cnt - 1; q[id] = q[cnt - 1] + L; s.push_back(L); } void UndoCommands(int U) { int par = cnt - U; int id = ++cnt; p[id] = par; q[id] = q[par]; // for (int i = 0; i <= 20; i++) { // cout << p[i] << " "; // } // cout << endl; // for (int i = 0; i <= 20; i++) { // cout << (char)v[i] << " "; // } // cout << endl; } char GetLetter(int P) { return q[cnt][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...