版本比较
题解:P3581 [POI 2015 R1] 圆桌巫师 Sorcerers of the Round Table
正文
增加 2 行删除 2 行
49 行未改动5051525354545556575867 行未改动1261271281291301301311321331343 行未改动49 行未改动 #define cout io #define cin io}using namespace fast_IO;using namespace std;#define pii pair<unsigned char,unsigned char> #define pii pair<unsigned char,unsigned char>#define pb push_backconst int N=1e6+10,mod=1e9+7;int n,k,limit;bitset<10>mp[N];67 行未改动 for(int i=0;i<len;++i) if(mp[n-p.first[i].first][p.first[i].second-p.first[i].first+limit]) goto no; ans=add(ans,p.second); no:; no:; } cout<<ans<<"\n";
cerr<<"\nTime:"<<clock()/1.0/CLOCKS_PER_SEC*1000.0<<" ms\n";3 行未改动