版本比较
题解:P7056 [NWRRC 2015] Insider's Information
正文
增加 2 行删除 2 行
16 行未改动17181920212223242554 行未改动80818283848586878828 行未改动16 行未改动```cpp#include<bits/stdc++.h>#define fir first#define sec second#define int long long#define pii pair<int,int>#define fep(i,s,e) for(int i=s;i<e;i++)#define pef(i,s,e) for(int i=s;i>e;i--)54 行未改动fep(i,0,ord.size()){int now=ord[i],vfr=0,vbk=0;fep(j,0,G[now].size()){int id=G[now][j];int ot=a[id]+c[id]-now;//另外一个端点int mdl=b[id];if(typ[mdl]!=0)continue;if(typ[ot]==1){vbk++;28 行未改动16 行未改动17181920212223242554 行未改动80818283848586878828 行未改动16 行未改动```cpp#include<bits/stdc++.h>#define fir first#define sec second#define int long long#define pii pair<int,int>#define fep(i,s,e) for(int i=s;i<e;i++)#define pef(i,s,e) for(int i=s;i>e;i--)54 行未改动fep(i,0,ord.size()){int now=ord[i],vfr=0,vbk=0;fep(j,0,G[now].size()){int id=G[now][j];int ot=a[id]+c[id]-now;//另外一个端点int mdl=b[id];if(typ[mdl]!=0)continue;if(typ[ot]==1){vbk++;28 行未改动