摘要:
题意 "题目链接" 给出长度为$n$的序列$a$,序列中的元素取值为$[ 2e9, 2e9]$ 找到两个位置$(i, j) (i define LL long long // define int long long define uint unsigned int define chmax(a, 阅读全文
摘要:
题意 "题目链接" Sol 首先不考虑$a$的限制 我们要求的是 $$\sum_{i = 1}^n \sum_{j = 1}^m \sigma(gcd(i, j))$$ 用常规的套路可以化到这个形式 $$\sum_{d = 1}^n \sigma (d) \sum_{k = 1}^{\frac{n} 阅读全文