제출 #398239

#제출 시각아이디문제언어결과실행 시간메모리
398239chirathnirodha크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++17
34 / 100
162 ms262148 KiB
//Coded by Chirath Nirodha #include<bits/stdc++.h> using namespace std; int seq[1000010]; string s[1000010]; int ss,seqs; void Init(){ string x; seq[0]=0; s[0]=x; seqs=ss=1; } void TypeLetter(char L) { string x=s[seq[seqs-1]]; x.push_back(L); seq[seqs]=ss;seqs++; s[ss]=x;ss++; } void UndoCommands(int U) { seq[seqs]=seq[seqs-1-U];seqs++; } char GetLetter(int P) { return s[seq[seqs-1]][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...