2025年4月11日

算法及技巧

摘要: 1. 容斥原理 int n,m,prim[N]; void rc(){ int ans; for(int j=1;i<1<<m;i++){ int cnt=1,sign=-1; for(int j=0;j<m;j++){ if(i&1<<j){ if(cnt*prim[j]>n){ cnt=0; b 阅读全文

posted @ 2025-04-11 22:05 小黄同学01 阅读(35) 评论(0) 推荐(0)

导航