版本比较
题解:P14977 [USACO26JAN1] Lineup Queries S
正文
增加 3 行删除 3 行
27 行未改动28293031323334353613 行未改动505152535455565758135 行未改动全部展开19419519619719819920020120239 行未改动27 行未改动if (t <= init) return c;ll pos = c;while (init + pos < t) {init += pos;++init;pos = init / 2;}ll diff = t - init;pos -= diff;13 行未改动```cpp line-numberswhile (init + pos < t) {init += pos;++init;pos = init / 2;}```135 行未改动全部展开if (t <= init) return c;ll pos = c;while (init + pos < t) {init += pos;++init;pos = init / 2;}ll diff = t - init;pos -= diff;39 行未改动27 行未改动28293031323334353613 行未改动505152535455565758135 行未改动全部展开19419519619719819920020120239 行未改动27 行未改动if (t <= init) return c;ll pos = c;while (init + pos < t) {init += pos;++init;pos = init / 2;}ll diff = t - init;pos -= diff;13 行未改动```cpp line-numberswhile (init + pos < t) {init += pos;++init;pos = init / 2;}```135 行未改动全部展开if (t <= init) return c;ll pos = c;while (init + pos < t) {init += pos;++init;pos = init / 2;}ll diff = t - init;pos -= diff;39 行未改动