版本比较
题解:CF1815B Sum Graph
正文
增加 4 行删除 4 行
22 行未改动2324252627272829303130 行未改动626364656666676868697071727374747576777834 行未改动22 行未改动```cpp#include <bits/stdc++.h>using namespace std;int n;int dep[2005],p[2005],dis[2005],p2[2005],l[2005],cnt; int dep[2005],p[2005],dis[2005],p2[2005],l[2005],cnt;void update(int x){ int y; cout<<"+ ";30 行未改动 update(n+2); l[1]=1; for(int i=2;i<=n;i++) { if(i&1) if(i&1) l[i]=n+2-l[i-1]; else else l[i]=n+1-l[i-1]; }//直接模拟加边过程 for(int i=2;i<=n;i++) { dep[i]=query(1,i); mx=max(dep[i],mx); mx=max(dep[i],mx); } for(int i=1;i<=n;i++) { if(dep[i]==mx)34 行未改动