版本比较
题解:P10551 [THUPC 2024 决赛] 连向未来
正文
增加 2 行删除 2 行
17 行未改动1819202122222324252666 行未改动9394959697979899100101141 行未改动全部展开17 行未改动```cpp#include<bits/stdc++.h>using namespace std;
#define int long long #define int long long
const int N=1e5+5,mod=998244353;
bool st;66 行未改动 if(temp.a[i]==3&&b[i]!=2) flag=0; if(temp.a[i]==4&&b[i]!=2) flag=0; } if(!flag) continue;
if(c[0]!=-1&&c[1]!=-1&&c[2]!=-1) {curr.insert({c[0],c[1],c[2]});continue;} //0与1连边 if(((d[0]>>b[1])&1)&&((d[1]>>b[0])&1)) { d[0]-=(1<<b[1]);141 行未改动全部展开