本题 Insert 操作的读入巨坑:
可以试试用这个读入:
inline void read(char &x){ char ch=getchar(); while(ch=='\n'||cha<32||cha>126) ch=getchar(); x=ch; }