版本比较
题解 P6564 【[POI2007] 堆积木KLO】
正文
增加 2 行删除 2 行
33 行未改动3435363738383940414223 行未改动6667686970707172737416 行未改动33 行未改动
```cpp#include<bits/stdc++.h>using namespace std;#define I inline #define I inline#define ri register int#define ll long long#define For(i , x , y) for(ri i = x ; i <= y ; ++ i)#define Next(i , u) for(ri i = head[u] ; i ; i = e[i].nxt)23 行未改动 return res;}
I bool cmp(node A , node B) { return (A.id - A.x == B.id - B.x) ? (A.id < B.id) : (A.id - A.x< B.id - B.x ); return (A.id - A.x == B.id - B.x) ? (A.id < B.id) : (A.id - A.x< B.id - B.x );}
signed main() { n = read();16 行未改动