12374: 与7无关的数
Memory Limit:32 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:4
Solved:0
Description
一个正整数,如果它能被7整除,或者它的十进制表示法中某个位数上的数字为7,
则称其为与7相关的数.现求所有小于等于n(n<100)的与7无关的正整数的平方和。
Input
案例可能有多组。对于每个测试案例输入为一行,正整数n,(n<100)
Output
对于每个测试案例输出一行,输出小于等于n的与7无关的正整数的平方和。
Sample Input Copy
6
12
18
Sample Output Copy
91
601
1575