你们是不是还想着换思路?nonono,不用,加个 ios::sync_with_stdio(0);cin.tie(0);就过了(加快读写取速度)
ios::sync_with_stdio(0);cin.tie(0);