与7无关的数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
一个正整数,如果它能被整除,或者它的十进制表示法中某一位上的数字为,则称其为与相关的数.
现求所有小于等于()的与无关的正整数的平方和.
输入格式
输入为一行,正整数()
输出格式
输出一行,包含一个整数,即小于等于的所有与无关的正整数的平方和。
样例
输入数据
21
输出数据
2336
C++初级A1班01-循环复习
- Status
- Done
- Rule
- IOI
- Problem
- 9
- Start at
- 2024-9-22 14:30
- End at
- 2024-10-22 6:30
- Duration
- 712 hour(s)
- Host
- Partic.
- 58