ICode9

精准搜索请尝试: 精确搜索
  • YACS2022年7月丙组2022-07-18 01:05:10

    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,

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有