제출 #425905

#제출 시각아이디문제언어결과실행 시간메모리
425905Azimjon크레이피쉬 글쓰는 기계 (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...