当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

BZOJ2226:[Spoj 5971] LCMSum

题目描述
Given n, calculate the sum LCM(1,n) + LCM(2,n) + .. + LCM(n,n), where LCM(i,n) denotes the Least Common Multiple of the integers i and n.
输入解释
The first line contains T the number of test cases. Each of the next T lines contain an integer n.
输出解释
Output T lines, one for each test case, containing the required sum.
输入样例
3
1
2
5
输出样例
1
4
55
提示

Constraints

1 <= T <= 300000
1 <= n <= 1000000

BZPRO Powered by Remmina.
Github Repository
来自acmore.cc的附加信息
bzoj_id 2226
import_source_sha256 ee929e6776d60a77de018b283160b1b1252d91cc5433fb9b66e0191d6e410ce0
bzoj_checker_pending False

该题目包含在题集 大视野(八中)OJ 中

题目来源 BZOJ 2226

源链接: LOCAL-BZOJ2226

共提交 0 次

通过率 --%
时间上限 内存上限
20000 MS 259 MB