如此题小美的游戏如果使用优先队列: #include <bits/stdc++.h> #define int ll using ll = long long; void PPP() { #ifndef ONLINE_JUDGE freopen("in", "r", stdin); // freopen("out","w",stdout); #endif } const int LEN = 2e5 + 7; const int MOD = 1e9 + 7; std::priorit...