제출 #911587

#제출 시각아이디문제언어결과실행 시간메모리
911587Muhammad_Aneeq크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++17
34 / 100
125 ms262144 KiB
#include <string> using namespace std; int const N=1e6+10; struct node { string s=""; }; node* com[N]={}; int num=0; void Init() { for (int i=0;i<N;i++) com[i]=new node(); } void TypeLetter(char L) { num++; com[num]->s=com[num-1]->s+L; } void UndoCommands(int U) { com[num+1]->s=com[num-U]->s; num++; } char GetLetter(int P) { return com[num]->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...