版本比较
[CF1656H] Equal LCM Subsets
正文
增加 5 行删除 5 行
72 行未改动7374757677787980816 行未改动88899091929394959697989910010110210310421 行未改动12612712812913013113213313459 行未改动19419519619719819920020172 行未改动#define ALL(Name) Name.begin(),Name.end()#define GI greater<int>#define fi first#define se secondusing LL=__int128;void RD(LL &x){x=0;6 行未改动static char ch[40]; static int tp=0;while(x)ch[tp++]=x%10+'0',x/=10;while(tp)cout<<ch[--tp];}const int N=1005;int n,m;LL a[N],b[N];vector<LL> F;vector<map<int,pair<VI,VI>>> C;vector<PII> fa[N],fb[N];bool ra[N],rb[N];void ins(LL x,int st=0){for(int i=st;i<F.size();i++)while(!(x%F[i]))x/=F[i];21 行未改动if(c)f.PB(i,c);}assert(x==1);}int main(){ios::sync_with_stdio(false),cin.tie(nullptr);int _;cin>>_;while(_--)59 行未改动for(int i:sa)PT(a[i]),cout<<" "; cout<<endl;for(int i:sb)PT(b[i]),cout<<" "; cout<<endl;}}return 0;}```72 行未改动7374757677787980816 行未改动88899091929394959697989910010110210310421 行未改动12612712812913013113213313459 行未改动19419519619719819920020172 行未改动#define ALL(Name) Name.begin(),Name.end()#define GI greater<int>#define fi first#define se secondusing LL=__int128;void RD(LL &x){x=0;6 行未改动static char ch[40]; static int tp=0;while(x)ch[tp++]=x%10+'0',x/=10;while(tp)cout<<ch[--tp];}const int N=1005;int n,m;LL a[N],b[N];vector<LL> F;vector<map<int,pair<VI,VI>>> C;vector<PII> fa[N],fb[N];bool ra[N],rb[N];void ins(LL x,int st=0){for(int i=st;i<F.size();i++)while(!(x%F[i]))x/=F[i];21 行未改动if(c)f.PB(i,c);}assert(x==1);}int main(){ios::sync_with_stdio(false),cin.tie(nullptr);int _;cin>>_;while(_--)59 行未改动for(int i:sa)PT(a[i]),cout<<" "; cout<<endl;for(int i:sb)PT(b[i]),cout<<" "; cout<<endl;}}return 0;}```