这道题我wa了好多好多次,原因是用了c++里面的std::ios::sync_with_stdio(false)。(说实话,我不知道为啥会错) 然后思路就是结构体加排序,直接做就行。
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account