下面这行代码能加快cin和cout的速度
ios::sync_with_stdio(false);
读入优化
原文:https://www.cnblogs.com/MS903/p/11247697.html