Problem L. B-number
时间限制 1 ms
内存限制 32 MB
A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided by 13. For example, 130 and 2613 are wqb-numbers, but 143 and 2639 are not. Your task is to calculate how many wqb-numbers from 1 to n for a given integer n.
输入数据
输出数据
Print each answer in a single line.
样例输入
样例输出
$ Mathjax font initiator $