1.模拟题,分别对RBG每个位置往左往右找即可。2.凑颜色,直接二分答案,因为是无环转换,因此可以直接从a转换到b,再从b转换到c。 using ll = long long; void solve() { int a, b, c; int x, y; cin >> a >> b >> c; cin >> x >> y; auto check = [&](int k) { ll reta = a, retb = b, retc = c; ll resa = max(0ll, reta - k); ret...