与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.
题目描述
一个正整数,如果它能被7整除,或者它的十进制表示法中某一位上的数字为7,则称其为与7相关的数。
现求所有小于等于n(n < 100)的与7无关的正整数的平方和。
输入格式
输入为一行,正整数n(n < 100)
输出格式
输出一行,包含一个整数,即小于等于n的所有与7无关的正整数的平方和。
样例 #1
样例输入 #1
21
样例输出 #1
2336
循环结构小测(二)
- Status
- Done
- Rule
- IOI
- Problem
- 5
- Start at
- 2025-5-2 20:20
- End at
- 2025-5-22 20:20
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 13