3009: [SDOI2016小学组] 幸运数字
Memory Limit:256 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
一个数能被 7 整除或 10 进制中含有 7 被称为幸运数字。
Input
求 1—n 幸运数字的和。
Output
一个整数,1—n 幸运数字的和。
Sample Input Copy
21
Sample Output Copy
59
HINT
【数据范围】
n>= 1000