TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P4730
  • Problem
  • P4730与13相关的数
    Limits : Time Limit : 1000 MS   Memory Limit : 65536 KB
    Description

    给出区间[1,n],请你统计出其中是13的倍数且含有'13'的数的个数。
    比如130和2613就是满足条件的数字。260和2639就不是
    1 <= n <= 1000000000

    Input Format

    一个整数n

    Output Format

    一个整数,表示统计结果

    Sample Input 1

    13

    Sample Output 1

    1

    Sample Input 2

    100

    Sample Output 2

    1

    Sample Input 3

    200

    Sample Output 3

    2

    Sample Input 4

    1000

    Sample Output 4

    2