# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
70786 | 2018-08-23T11:02:03 Z | edisonhello | 크레이피쉬 글쓰는 기계 (IOI12_scrivener) | C++14 | 0 ms | 0 KB |
#include<ext/rope> #define a auto __gnu_cxx::crope r[1<<20]; int x; a Init(){} a TypeLetter(a c){ ++x; r[x]=r[x-1]; r[x].push_back(c); } a UndoCommands(a u){ ++x; r[x]=r[x-u-1]; } a GetLetter(a p){ return r[x][p]; }