下面这行代码能加快cin和cout的速度 ios::sync_with_stdio(false); cin.tie(0);cout.tie(0); 转载于:https://www.cnblogs.com/MS903/p/11247697.html