#T795. 与7无关的数
与7无关的数
Description
A positive integer is called 7-related if it is divisible by 7 or if any digit in its decimal representation is 7. Now, find the sum of the squares of all positive integers less than or equal to n (n < 100) that are not 7-related.
Input Format
The input consists of a single line with a positive integer n (n < 100).
Output Format
Output a single line containing an integer, which is the sum of the squares of all positive integers less than or equal to n that are not 7-related.
21
2336
译文
CodesOnline