Problem:

Design of a Mansion

  Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condominium. The height of each floor can be adjusted freely with a certain range.

  The final outcome of the building depends on clever height allotment for each floor. So, he plans to calculate possible combinations of per-floor heights to check how many options he has.

  Given the height of the condominium and the adjustable range of each floor’s height, make a program to enumerate the number of choices for a floor.

Input

The input is given in the following format.

$H$ $A$ $B$

The input line provides the height of the condominium $H$ ($1 \leq H \leq 10^5$) and the upper and lower limits $A$ and $B$ of the height adjustable range for one floor ($1 \leq A \leq B \leq H$). All data are given as integers.
  

Output

  Output the number of possible height selections for each floor in a line.

Sample Input 1

100 2 4

Sample Output 1

2

Sample Input 2

101 3 5

Sample Output 2

0

  


Sample input:
100 2 4


Sample output:
2

Submission status: Wrong Answer

Solution code:
H,a,b=map(int,input().split())
c=0
for i in range(a,b):
  if H%a==0 :
    c+=1
  elif H%b==0:
    c+=1
  else:
    pass
print(c)

Submission status: Wrong Answer

Solution code:
H,a,b=map(int,input().split())
c=0
for i in range(a,b):
  if H%i==0 :
    c+=1
print(c)

Submission status: Accepted

Solution code:
h,a,b = map(int,input().split())

ans = 0
for i in range(a,b+1):
    if h%i == 0:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
H, A, B = map(int, input().split())
cnt = 0;
for i in range(A, B+1):
    cnt += (H % i == 0 )
print(cnt)

Submission status: Accepted

Solution code:
H,a,b=map(int,input().split())
c=0
for i in range(a,b+1):
  if H%i==0 :
    c+=1
print(c)

Submission status: Accepted

Solution code:
h, a, b = map(int, input().split())

num = 0
for i in range(a, b+1):
    if h % i == 0:
        num += 1

print(num)

Submission status: Accepted

Solution code:
H,A,B = map(int,input().split())
a = 0
for i in range(A,B+1):
    if H % i == 0:
        a += 1
print(a)

Submission status: Accepted

Solution code:
H,A,B=map(int,input().split())
c=0

for i in range(A,B+1):
    if H%i==0:
        c+=1
        
print(c)

Submission status: Accepted

Solution code:

h,a,b = map(int,input().split())

print(len([i for i in range(a,b+1) if h%i==0]))

Submission status: Accepted

Solution code:
h,a,b=map(int,input().split())
c=0
for i in range(a,b+1):
    if h%i==0:
        c=c+1
print(c)

Submission status: Accepted

Solution code:
H,A,B = map(int,input().split())
a = list(range(A,B+1))
x = 0
for i in a:
    if H % i == 0:
        x += 1
print(x)

Submission status: Accepted

Solution code:
h, a, b = map(int, input().split())
ans = 0
for i in range(a, b+1) :
    if h % i == 0 :
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
H, A, B = map(int, input().split())
ans = 0
for i in range(A, B+1) :
    if H % i == 0 :
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
#標準入力とカウンタ変数の初期化
a,b,c = map(int,input().split())
kei = 0

#割り切れるならカウンタ変数を更新する
for i in range(b,c + 1):
    if a % i == 0:kei += 1
    
#カウンタ変数を出力する
print(kei)

Submission status: Accepted

Solution code:
h, a, b = map(int, input().split())
print(sum([h%i==0 for i in range(a, b+1)]))

Submission status: Accepted

Solution code:
H, A, B = map(int, input().split())
ans = 0
for k in range(A, B+1):
    if H % k == 0:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
H,A,B = [int(i) for i in input().split()]

cnt = 0
for i in range(A,B+1):
    if (H // i)*i == H:
        cnt = cnt + 1
print(cnt)

Submission status: Accepted

Solution code:
H,A,B=map(int,input().split())
i=0
while  A<=B:
    if H%A==0:
        i=i+1
    A=A+1
print(i)

Submission status: Accepted

Solution code:
h, a, b = map(int, input().split())
print([(h%(a+c)==0) for c in range(b-a+1)].count(True))

Submission status: Accepted

Solution code:
h, a, b = map(int, input().split())

cnt = 0
for i in range(a, b+1):
    if h % i == 0:
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
h, a, b = map(int, input().split())
ans = 0
for i in range(a, b + 1):
  if h % i == 0:
    ans += 1
print(ans)