与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无关的正整数的平方和。
样例
21
2336
2024.08.02 入门组周赛
- Status
- Done
- Rule
- IOI
- Problem
- 3
- Start at
- 2024-8-2 22:45
- End at
- 2024-8-5 22:45
- Duration
- 2.5 hour(s)
- Host
- Partic.
- 3