随笔分类 - 莫比乌斯反演
摘要:题目连接: https://vjudge.net/problem/HDU 6053 Description You are given an array A , and Zhu wants to know there are how many different array B satisfy th
阅读全文
摘要:#include using namespace std; const int mx = 1e5+5; typedef long long ll; bool vis[mx]; int sum[mx], prim[mx], mu[mx], cnt = 0; void get_mu(){ mu[1] = 1; for(int i = 2; i< mx; i++){ ...
阅读全文