版本比较
题解 P2150 【[NOI2015]寿司晚宴】
正文
增加 2 行删除 2 行
68 行未改动697071727373747576773 行未改动8182838485858687888941 行未改动68 行未改动 ch=getchar(); } while(ch>='0'&&ch<='9') re=(re<<1)+(re<<3)+ch-'0',ch=getchar(); return re*flag;} }int n,MOD;int p[10]={0,2,3,5,7,11,13,17,19,0};struct node{ int val,big,S;//big就是大质因数,S是小质因数集合3 行未改动 if(tmp%p[i]) continue; S|=(1<<i-1); while(tmp%p[i]==0) tmp/=p[i]; } if(tmp!=1) big=tmp; if(tmp!=1) big=tmp; }}a[510];inline bool cmp(node l,node r){ return l.big<r.big;41 行未改动