关闭流同步后,freopen 的安全性如何。
freopen
还是说要 istream/ostream 输出。
istream/ostream
自己写读优用 getchar() or getchar_unlocked()。
getchar()
getchar_unlocked()