正文
增加 2 行删除 2 行
81 行未改动82838485868788899046 行未改动13713813914014114214381 行未改动pair<ll, ll> p;p.first = (k * GetX(lst) - GetY(lst) + k + r) / (k + 1);p.second = k * (p.first - GetX(lst)) + GetY(lst);if(GetX(q[front]) > p.first) q[--front] = Encode(p);p.second = r - p.first, p = Encode(p), x = p.first, y = p.second;}}else {if(GetY(lst) >= r - l) {46 行未改动Write(res), putchar('\n');}int main() {int T = Read();while(T--) Solve();}```81 行未改动82838485868788899046 行未改动13713813914014114214381 行未改动pair<ll, ll> p;p.first = (k * GetX(lst) - GetY(lst) + k + r) / (k + 1);p.second = k * (p.first - GetX(lst)) + GetY(lst);if(GetX(q[front]) > p.first) q[--front] = Encode(p);p.second = r - p.first, p = Encode(p), x = p.first, y = p.second;}}else {if(GetY(lst) >= r - l) {46 行未改动Write(res), putchar('\n');}int main() {int T = Read();while(T--) Solve();}```