样例过但全WA试试去掉关掉cin cout同步流的代码
/*ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);*/
一开始全WA 把这个注释掉就能过了