#E. 考级202203-5:与7无关的数

    Type: Default 1000ms 256MiB

考级202203-5:与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

21

输出样例数据 1

2336

一级第8轮

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-7-30 9:45
End at
2023-8-19 9:45
Duration
480 hour(s)
Host
Partic.
12