首页 > TAG信息列表 > 丙组

YACS2022年7月丙组

T1: 水仙花指数 模拟 代码实现 n = int(input()) ans = 0 while n != 0: ans += (n%10)**3 n //= 10 print(ans) T2:因数之和 遍历 \(i = 1, \cdots , N\),把 \(\lfloor\frac{N}{i}\rfloor \times i\) 累加进答案 代码实现 n = int(input()) ans = 0 for i in range(1,