A.小沙的炉石 思路: code: B.小沙的魔法 思路: code: C.小沙的杀球 思路: 按题意贪心处理即可 code: #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pll; const double eps = 1e-9; int main() { std::ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #ifdef ak freopen("in.txt", "r", st...