2024年7月20日
摘要: 上午 vjcon3补题 vj3 优先队列维护贪心 取一个数的各位只需要 a/100%10,a/10%10,a%10; 去重 bool(int n) { set<int>st; for(int j=0;j<n;j++) { st.insert(a[i][j]); } if(st.size()!=n) 阅读全文
posted @ 2024-07-20 16:29 Hoshino1 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 上午:contest2补题; 下午:vj比赛 晚上:acwing数学约数+最短路问题。 约数个数 const int mod=1e9+7,998244353 for(int i=2; i<=x; i++) { while(x%i==0) { x/=i; primes[i]++; } if(x>1) 阅读全文
posted @ 2024-07-20 08:03 Hoshino1 阅读(2) 评论(0) 推荐(0) 编辑