B题,第二题,求hack,用的dfs 代码简洁明了 #include<bits/stdc++.h> #define int long long #define ed '\n' #define IOS ios::sync_with_stdio(false);cin.tie(0),cout.tie(0); #define all(x) x.begin(), x.end() #define lb(x) x&-x using namespace std; typedef pair<int,int>pa; const int mod_=1e18; const int mo...