ios::sync_with_stdio(false); cin.tie(0); 把cin变得和scanf一样快。 转载于:https://www.cnblogs.com/widsom/p/6741510.html