Problem:


Score : 100 points

Problem Statement

Takahashi likes the sound when he buys a drink from a vending machine.

That sound can be heard by spending A yen (the currency of Japan) each time.

Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time.

How many times will he hear the sound?

Constraints

All values in input are integers.

1 \leq A, B, C \leq 100

Input

Input is given from Standard Input in the following format:

A B C

Output

Print the number of times Takahashi will hear his favorite sound.

Sample Input 1

2 11 4

Sample Output 1

4

Since he has not less than 8 yen, he will hear the sound four times and be satisfied.

Sample Input 2

3 9 5

Sample Output 2

3

He may not be able to be satisfied.

Sample Input 3

100 1 10

Sample Output 3

0



Sample input:
2 11 4


Sample output:
4

Submission status: Accepted

Solution code:
abc = input().split()
a, b, c = int(abc[0]), int(abc[1]), int(abc[2])
can_hear = int((b - (b % a)) / a)
if can_hear < c:
    print(can_hear)
else:
    print(c)

Submission status: Accepted

Solution code:
A, B, C = map(int,input().split(' '))


def calc1(A,B,C):
  if A*C <= B:
    return C
  else:
    #回数
    N = 0
    while A*N <=B:
      N += 1
    return N-1
print(calc1(A,B,C))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a*c <= b: print(c)
else: print(int(b/a))

Submission status: Accepted

Solution code:
A, B, C = [int(i) for i in input().split()]
if A*C < B:
    print(C)
else:
    print(int(B/A))

Submission status: Accepted

Solution code:
input = input().split()
A = int(input[0])
B = int(input[1])
C = int(input[2])

D = int(B/A)

if C < D:
	print(C)
	
else:
	print(D)

Submission status: Accepted

Solution code:


A,B,C=input().split(" ")
A=int(A)
B=int(B)
C=int(C)




print(min(C, B//A))

Submission status: Accepted

Solution code:
a,b,c=map(int, input().split())
if b>=a*c:
    print(c)
else:
    print(b//a)

Submission status: Accepted

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

if b//a<= c :
    print(b//a)
elif b//a> c:
    print(c)

Submission status: Accepted

Solution code:
import math
A, B, C = map(int, input().split())
if A > B:
    print(0)
else:
    print(min(math.floor(B/A),C))

Submission status: Accepted

Solution code:
x, y, z = map(int, input().split())
print(min(y//x,z))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
n = int(b/a)
if n < c:
  print(n)
else:
  print(c)

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())

if C*A <= B:
    ans = C
else:
    ans = B//A

print(ans)

Submission status: Accepted

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

d = b // a
if d > c:
    print(c)
else:
    print(d)

Submission status: Accepted

Solution code:
A, B, C = [int(x) for x in input().split(" ")]

print(B // A if B // A < C else C)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

ring = 0

while ring < c:
    if a <= b:
        b -= a
        ring += 1
    else:
        break

print(ring)

Submission status: Accepted

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

if c <= int(b / a):
    print(c)
else:
    print(int(b / a))

Submission status: Accepted

Solution code:
#coding: utf-8
A, B, C = map(int, input().split())
print(C if C <= B//A else B//A)

Submission status: Accepted

Solution code:
abc = list(map(int, input().split()))
a = abc[0]
b = abc[1]
c = abc[2]
if b // a < c:
    print(b // a)
else:
    print(c)

Submission status: Accepted

Solution code:
A, B, C = map(int,input().split())
if A*C >= B:
    print(int(B/A))
else:
    print(C)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

if A*C <= B:
  print(C)
else:
  print(int(B/A))

Submission status: Accepted

Solution code:
abc = list(map(int, input().split()))
a = abc[0]
b = abc[1]
c = abc[2]

if (b // a) <= c:
    print(b // a)
else:
    print(c)

Submission status: Accepted

Solution code:
tmp = input().split()
a,b,c = int(tmp[0]), int(tmp[1]), int(tmp[2])

if b > a*c:
  print(c)
else:
  print(int(b/a))

Submission status: Accepted

Solution code:
a, b, c =map(int, input().split())
ans = 0
if b//a > c:
    print(c)
else:
    print(b//a)

Submission status: Accepted

Solution code:
value, all_money, max_num = [int(i) for i in input().split()]



"""
value を最大max_numまでかける
・途中でall_moneyを上回ったら終了
・全てかけてもmax_numかけても上回らなかった時はmax_numで終了
"""

num = 0
money = 0

for i in range(1, max_num + 1):
    money = value * i
    num = i
    if money > all_money:
        num = num - 1
        break


print(num)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

if A * C < B:
        print(int(C))
else:
        D = B%A
        ans = B - D
        print(int(ans / A))

Submission status: Accepted

Solution code:
A,B,C=(int(i) for i in input().split())
if A*C<=B:
  print(C)
else:
  print(int(B/A))

Submission status: Accepted

Solution code:
a,b,c = list(map(int, input().split()))
 
for i in range(c+1):
  if a*i <= b:
    ans = i
print(ans)

Submission status: Accepted

Solution code:
from sys import stdin

# 1回A円、B円持ってる、C回聞きたい
A, B, C = [int(x) for x in stdin.readline().rstrip().split()]

available_count = B // A

if available_count > C:
    print(C)
else:
    print(available_count)

Submission status: Accepted

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

d = b // a

print(min(d,c))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
ans = min(c, int(b/a))
print(ans)

Submission status: Accepted

Solution code:
A,B,C = map(int, input().split())
print(min([B // A, C]))

Submission status: Accepted

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

for i in range(c+1):
  if a*i <= b:
    ans = i
print(ans)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
max_money = A * C
if B >= max_money:
    sound_times = C
else:
    sound_times = int(B / A)
print(sound_times)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().strip().split())
print(min(b // a, c))

Submission status: Accepted

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

x = B // A

if x > C:
  print(C)
else:
  print(x)

Submission status: Accepted

Solution code:
i = 0
a, b, c = map(int, input().split())
if b >= a*c:
    print(c)
else:
    while a*i <= b:
        i += 1
    print(i-1)

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split(" "))
#print(A)
#print(B)
#print(C)
print(min(B//A,C))

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
n = B//A
print(min(n,C))

Submission status: Accepted

Solution code:
A, B, C = map(int,input().split(" "))
print(min(B//A,C))

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())

if B/A >= C:
    print(C)

else :
    print(int(B/A))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if b/a >= c:
    print(c)
else:
    print(int(b/a))

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
if B/A >=C:
  print(C)
elif B/A <C:
  print(B//A)

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if a*c > b:
    print(int(b/a))
else:
    print(c)

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split(' '))
print(min(B//A,C))

Submission status: Accepted

Solution code:
A,B,C = map(int, input().split())
if B>=A*C:
  print(C)
else:
  print(B//A)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(A: int, B: int, C: int):
    ret = min(B // A, C)
    print(ret)
    return


# Generated by 1.1.3 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    solve(A, B, C)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

a, b, c = map(int, raw_input().split())

num = b/a
if num >= c: print c
else: print num

Submission status: Accepted

Solution code:
A_B_C = [int(x.strip()) for x in input().split()]
print(min(int(A_B_C[1]/A_B_C[0]), A_B_C[2]))

Submission status: Accepted

Solution code:
A,B,C=input().split()
A=int(A)
B=int(B)
C=int(C)
print(int(min([B/A,C])))

Submission status: Accepted

Solution code:
A,B,C=input().split()
A=int(A)
B=int(B)
C=int(C)
if B/A<C :
  print(int(B/A))
else :
  print(C)

Submission status: Accepted

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

k = b // a

if k <= c:
    print(k)
else:
    print(c)

Submission status: Accepted

Solution code:
def favorite_sound(A, B, C):
    return min(B//A, C)

if __name__ == "__main__":
    A, B, C = map(int, input().split())
    print(favorite_sound(A, B, C))

Submission status: Accepted

Solution code:
def solve(string):
    a, b, c = map(int, string.split())
    return str(min(c, b // a))


if __name__ == '__main__':
    print(solve(input()))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
A, B, C = map(int, input().split())
print(min(B//A, C))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b, c = map(int, input().split())

d = int(b / a)
if c > d:
    c = d
print(c)

Submission status: Accepted

Solution code:
ABC=list(map(int,input().split()))

if ABC[1]/ABC[0]<ABC[2]:
 print(int(ABC[1]/ABC[0]))
else:
  print(ABC[2])

Submission status: Accepted

Solution code:
#coding:utf-8

if __name__ == "__main__":
    A, B, C = map(int, input().split())
    print(min(B // A, C))

Submission status: Accepted

Solution code:
A, B, C = [int(_) for _ in input().split()]
print(min(B // A, C))

Submission status: Accepted

Solution code:
a, b, c = list(map(int,input().split()))
q = int(b / a)
if q > c:
    print(c)
else:
    print(q)

Submission status: Accepted

Solution code:
A, B, C=map(int, input().split())
# A=好きな曲を聴くための費用
# B=所持金
# C=満足するのに必要な回数

if A*C<=B:
  print(C)
else:
    if A*C>B:
        print(B//A)
    else:
        print("0")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
i=0
while(a*i<=b and i<=c):
    i += 1
print(i-1)

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())

List=[B//A,C]
print(min(List))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys

def main():
	A, B, C = map(int, input().split())
	
	tmp = B // A
	if tmp >= C:
		print(C)
	else:
		print(tmp)
			
		
if __name__ == "__main__":
	main()

Submission status: Accepted

Solution code:
a,b,c=(int(x)for x in input().split())
x=0
if a*c<=b:
    print(c)
else:
    while b>=a:
        x+=1
        b-=a
    print(x)

Submission status: Accepted

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

if a*c <= b:
    print(c)
else:
    print(b//a)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
x = int(b/a)
if x>c:
    print(c)
else:
    print(x)

Submission status: Accepted

Solution code:
a=input().split()
A = int(a[0])
B = int(a[1])
C = int(a[2])
if A*C < B:
    print(C)
else:
    print(int(B/A))

Submission status: Accepted

Solution code:
def int_raw():
    return int(raw_input())
 
def words_raw():
    return raw_input().split()
 
def ints_raw():
    return map(int, words_raw())

A, B, C = ints_raw()
print min( B / A, C)

Submission status: Accepted

Solution code:
import math
A, B, C = map(int, input().split())
if A <= B:
    answer = min(math.floor(B/A),C)
else:
    answer = 0
print(answer)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a,b,c = map(int, input().split())

if b//a >c:
  print(c)
else:
  print(b//a)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())#入力された値を空白で区切ってその値をint型に変換して代入している
print(min(int(B / A), C))#intで囲うことで少数を切り捨てている

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
print(min(int(B / A), C))

Submission status: Accepted

Solution code:

def main():
	A,B,C = map(int,input().split())
	count = C if A*C < B else int(B/A)
	print(count)
if __name__ == "__main__" :
	main()

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())

if B // A >= C:
    print(C)
else:
    print(B // A)

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
#A,B,C = 2,1,3
ans = B//A

if ans > C:
	ans = C

print(ans)

Submission status: Accepted

Solution code:
a,b, c = map(int, raw_input().split())
if b/a >=c:
    print (c)
elif a>b:
    print (0)
else:
    print (b/a)

Submission status: Accepted

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

if b//a >= c: print(c)
else: print(b//a)

Submission status: Accepted

Solution code:
A, B, C = [int(x) for x in input().split()]
print(min(int(B/A), C))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if b//a > c :
  an = (c)
else :
  an = (b//a)
print(an)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if (B // A) > C:
    ans = C
else:
    ans = B // A
print(ans)

Submission status: Accepted

Solution code:
A,B,C=map(int, input().split())
if B//A >= C:
    print(C)
else:
    print(B//A)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split(" "))
if a*c<=b:
    print(c)
else:
    print(b//a)

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
A = int(b/a)
if A<c:
  ans = A
else:
  ans = c
print(ans)

Submission status: Accepted

Solution code:
A,B,C = (int(i) for i in input().split())
sho=B//A

if sho >= C :
    print(C)
else:
    print(sho)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if b >= a * c:
    print(c)
else:
    print(int(b/a))

Submission status: Accepted

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

if b > a * c:
    print(c)
else:
    print(b//a)

Submission status: Accepted

Solution code:
import sys

A, B, C = map(int, input().split())
D = B // A

if C <= D:
    print(C)
else:
    print(D)

Submission status: Accepted

Solution code:
cost, money, enough = map(int, input().split())

times = money // cost
if(times > enough):
    print(enough)
else:
    print(times)

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
num=B//A
if num>C:
  print(C)
else:
  print(num)

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
ans = 0

while B >= A and C != ans:
    B -= A
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
ABC=input().split()#2 11 4
A=int(ABC[0]);B=int(ABC[1]);C=int(ABC[2])
count=0
while A<=B:
    count+=1
    B=B-A
if count<C:
    print(str(count))
else:
    print(str(C))

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())

count=0
while B>=A and count<C:
    count+=1
    B=B-A
print(count)

Submission status: Accepted

Solution code:
# Favorite Sound
A, B, C = map(int, input().strip().split())
cnt = B//A
if cnt < C:
	print(cnt)
else:
	print(C)

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
if A*C <= B:
    print(C)
elif A*C > B:
    print(B//A)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

print(min(C, int(B/A)))

Submission status: Accepted

Solution code:
A,B,C = map(int, input().split())
n = B // A
if n > C:
    n = C
print(n)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
res = b // a
if res > c:
  res = c
print(res)

Submission status: Accepted

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

sounds = b//a

if sounds > c:
    print(c)
else:
    print(sounds)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

if int(B / A) > C:
  print(C)
else:
  print(int(B/A))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if(b/a>=c):
    print(c)
else:
    print(b//a)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

max_count = B / A

result = 0
if max_count > C:
    result = int(C)
else:
    result = int(max_count)

print(result)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    A, B, C = map(int, input().split())
    playable = B // A
    print(min(C, playable))

Submission status: Accepted

Solution code:
A, B, C = (int(x) for x in input().split())

count = int(B/A)
if count <= C:
    print(count)
else:
    print(C)

Submission status: Accepted

Solution code:
def main():
    A, B, C = map(int, input().split())
    if (B/A) < C:
        print(int (B/A))
    else:
        print(C)

main()

Submission status: Accepted

Solution code:
import math

A, B, C = map(int, input().split())
ans = 0
AB = math.floor(B / A)
if AB <= C:
    ans = AB
else:
    ans = C
print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(A: int, B: int, C: int):
    print(min(C, int(B/A)))
    return


# Generated by 1.1.3 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    solve(A, B, C)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A,B,C=map(int,raw_input().split())

times=B/A

if C <= times:
    print C
else:
    print times

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())

if C*A < B:
  print(C)
else:
  count = 0
  for i in range(0,C):
    if B >= A:
      B -= A
      count+= 1
    else:
      break
  print(count)

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip() # ignore trailing spaces

a,b,c = na()
print(min(int(b/a),c))

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())

print(min(B//A,C))

Submission status: Accepted

Solution code:
a,b,c = [int(i) for i in input().split(" ")]
if (a*c <= b):
    print(c)
else:
    print(b // a)

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
if B>A*C:print(C)
else:print(B//A)

Submission status: Accepted

Solution code:
info = input().split(' ')
price = int(info[0])
money = int(info[1])
max_time = int(info[2])
times = money // price
if times <= max_time:
  print(times)
else:
  print(max_time)

Submission status: Accepted

Solution code:
price, money, satisfy_count  = map(int, raw_input().split())
  
possible_count = money // price
if possible_count < satisfy_count:
  print possible_count
else:
  print satisfy_count

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c= map(int,input().split())
print((b//a) if (b//a)<=c else c)

Submission status: Accepted

Solution code:
A,B,C = [int(x) for x in input().split(' ')]
print(min(B // A,C))

Submission status: Accepted

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

d= b//a
if d<=c:
  print(d)
else:
  print(c)

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
print(min(int(B/A),C))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if b>=a*c:
    print(c)
else:
    print(int(b/a))

Submission status: Accepted

Solution code:
a, b, c = (int(i) for i in input().split())

count = 0
for i in range(c):
    if b >= a:
        b = b-a
        count = i+1
    i+=1

print(count)

Submission status: Accepted

Solution code:
a,b,c = list(map(int,input().split()))
print(min(c,b//a))

Submission status: Accepted

Solution code:
a, b, c = map(int,(input().split()))
print(min(int(b/a),c))

Submission status: Accepted

Solution code:
# S = input()
# print('Heisei' if S <= '2019/04/30' else 'TBD')

a,b,c=map(int,input().split())
if b/a<=c:
	print(int(b/a))
else:
	print(c)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
b =b//a
print(min(b,c))

Submission status: Accepted

Solution code:
a, b, c = (int(i) for i in input().split())  
print(min(c,(int)(b/a)))

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_input().split())
d = b / a
if d > c:
    print c
else:
    print d

Submission status: Accepted

Solution code:
a,b,c=[int(i) for i in input().split()]
if a>b:
    print('0')
    exit()
if b//a <=c:
    print(b//a)
else:
    print(c)

Submission status: Accepted

Solution code:
li = list(map(int, input().split()))
i = li[1] // li[0] if li[1] // li[0] < li[2] else li[2]
print(i)

Submission status: Accepted

Solution code:
A,B,C = (int(i) for i in input().split())
z = int(B/A)
if z > C:
    print(C)
else:
    print(z)

Submission status: Accepted

Solution code:
A, B, C = map(int,input().split())
x = B//A

if x >= C:
    print(C)
else:
    print(x)

Submission status: Accepted

Solution code:
a,b,c=[int(item) for item in input().split()]
print(min(b//a, c))

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i in input().split(" ")]
print(min(b//a, c))

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
a, b, c = l[0], l[1], l[2]

if b/a>c:
  print(c)
else:
  print(int(b/a))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

a, b, c = map(int, input().split())
retVal = 0

if a > b:
    retVal = 0
elif b // a < c :
    retVal = b // a
else :
    retVal = c

print(retVal)

Submission status: Accepted

Solution code:
a,b,c = input().split()
d = min(int(c),int(b)//int(a))
print(d)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

input = list(map(int, input().split()))
A = input[0]
B = input[1]
C = input[2]

print(B//A if B/A < C else C)

Submission status: Accepted

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

print(min(b//a, c))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if int(b/a) >= c:
    print(c)
else:
    print(int(b/a))

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

n = B // A
if n > C:
    n = C
print(n)

Submission status: Accepted

Solution code:
A,B,C = input().split()
result = min(int(int(B)/int(A)), int(C))
print(result)

Submission status: Accepted

Solution code:
a, b, c = [int(x) for x in input().split()]
print(min(c,int(b/a)))

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
print("{}".format(min(int(l[1]/l[0]), l[2])))

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())

tmp = B//A
if tmp < C:
    print(tmp)
else:
    print(C)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
A, B, C = map(int, input().split())

if B // A >= C:
  print(C)
elif B // A < C:
  print(B//A)

Submission status: Accepted

Solution code:
usr_input = input()
lst = usr_input.split()

a = int(lst[0])
b = int(lst[1])
c = int(lst[2])

if b//a < c:
    print(b//a)
else:
    print(c)

Submission status: Accepted

Solution code:
a,b,c = [int(i) for i in input().split()]

print(min(b // a , c))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

tmp = list(map(int,input().split()))

A = tmp[0]
B = tmp[1]
C = tmp[2]
count = 0
while (B-A)>= 0 and count<C:
  B -= A
  count+=1
print(count)

Submission status: Accepted

Solution code:
input = input()
a,b,c = map(int,input.split())
print (min(b//a,c))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())

count = 0

while b > 0:
    if b-a <0: break
    b  = b - a
    count += 1

    if count == c: break

print count

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
print(min(b,a*c) // a)

Submission status: Accepted

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

print(min(B // A, C))

Submission status: Accepted

Solution code:
A, B ,C  = (int(x) for x in input().split())
if B // A >= C:
    print(C)
else:
    print(B // A)

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
D=B//A-C
if D>0:
  print(C)
else:
  print(B//A)

Submission status: Accepted

Solution code:
import math
num = input().split()
if math.floor(int(num[1]) / int(num[0])) > int(num[2]):
  print(num[2])
else:
  print(math.floor(int(num[1]) / int(num[0])))

Submission status: Accepted

Solution code:
a,b,c=map(int,raw_input().split())
if b//a>c:
  	print c
else :
  	print b//a

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

answer = 0

if B//A < C:
  answer = B//A
else:
  answer = C

print(answer)

Submission status: Accepted

Solution code:
a,b,c=(int(x) for x in input().split());print(min(b//a, c))

Submission status: Accepted

Solution code:
data = [int(item) for item in input().split()]
listenable = data[1] // data[0]
if listenable >= data[2]:
  print(data[2])
else:
  print(listenable)

Submission status: Accepted

Solution code:
a, b, c = (int(x) for x in input().split())
print(min(b//a, c))

Submission status: Accepted

Solution code:
n = input().split()

for i,j in enumerate(n):
  n[i] = int(j)
  
if n[1] / n[0] >= n[2]:
  print(n[2])
else:
  print(int(n[1] / n[0]))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, input().split())
d = int(b/a)
# 出力
if c <= d:
  print(c)
else:
  print(d)

Submission status: Accepted

Solution code:
A,B,C = [int(x) for x in input().split()]
ans = min(B//A,C)
print(ans)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if b/a < c:
  print(int(b/a))
else:
  print(c)

Submission status: Accepted

Solution code:
import math

a, b, c = map(int, input().split())
print(min(c, b//a))

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
print(C) if B // A >= C else print(B // A)

Submission status: Accepted

Solution code:
import math
a, b, c = map(int, input().split())

n1 = int(b / a)
if c  > n1:
    print(n1)
else:
    print(c)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

if (A*C < B):
    print(C)
else:
    print(int(B/A))

Submission status: Accepted

Solution code:
a, b, c = [int(x) for x in input().split()]

if b // a <= c:
    print(b // a)
else:
    print(c)

Submission status: Accepted

Solution code:
A, B, C =map(int,input().split())
if B // A >= C :
    print(C)
else :
    print(B //A)

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
if B//A<C:
    print(B//A)
else :
    print(C)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
ans = b//a
print(c if ans>c else ans)

Submission status: Accepted

Solution code:
l = [int(i) for i in input().split()]
print(min(l[1]//l[0], l[2]))

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
d = B/A
if d > C:
  print(C)
else:
  d = B//A
  print(d)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if A * C >= B:
    print(B // A)
else:
    print(C)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if A * C > B:
    print(B // A)
else:
    print(C)

Submission status: Accepted

Solution code:
li = list(map(int,input().split()))

a = li[0]
b = li[1]
c = li[2]

if b/a >= c :
    print(c)
else:
    print(int(b/a))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if int(b/a) >= c:
    print(c)
else:
    print(int(b/a))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
ans=0
ans+=b//a
if ans>c:
  ans=c
print(ans)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
print(min([c,b//a]))

Submission status: Accepted

Solution code:
input_lines=input().split(" ")
a=int(input_lines[0])
b=int(input_lines[1])
c=int(input_lines[2])
ma=int(b/a)
if ma>=c:
  print(c)
else:
  print(ma)

Submission status: Accepted

Solution code:
# -*- coding = utf-8 -*-

arr = list(map(int,input().split()))

if arr[1] < arr[0]*arr[2]:
  print(int(arr[1]/arr[0]))
else:
  print(arr[2])

Submission status: Accepted

Solution code:
def main():
    A, B, C = map(int, input().split())
    print(min(B//A, C))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def main():
    a,b,c = list(map(int, input().split()))
    print(min(b//a, c))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
inputs = input()
a,b,c = (int(x) for x in inputs.split (' '))
answer = min (c, b // a)
print (answer)

Submission status: Accepted

Solution code:
fee, money, times = map(int,input().split())

if money/fee >= times:
   print(times)

else:
   print(int(money/fee))

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

if A * C < B:
    print(C)
else:
    print(B // A)

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
if A*C<=B:
  print(C)
else:
  print(B//A)

Submission status: Accepted

Solution code:
a,b,c = [int(x) for x in input().split()]
print(min(b//a, c))

Submission status: Accepted

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

if b>=a*c:
  print(c)
else:
  print(int(b/a))

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

coin_sound_cnt = B//A
if coin_sound_cnt > C:
  print(C)
else:
  print(coin_sound_cnt)

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
maxC = int(B / A)

if maxC > C:
  print(C)
else:
  print(maxC)

Submission status: Accepted

Solution code:
def main():
    a, b, c = map(int, input().split())
    print(min(b // a, c))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys


args = str(input()).split(" ")

result = int(int(args[1]) / int(args[0]))
if result > int(args[2]):
    result = int(args[2])
print(result)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
print(c if c*a < b else b//a)

Submission status: Accepted

Solution code:
A,B,C=(int(x) for x in input().split())
if B >= A * C:
  print(C)
else:
  print(int(B / A))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split()) 
print(c if b>= a*c else b//a)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split(" "))
if b // a >= c:
  print(c)
else:
  print(b // a)

Submission status: Accepted

Solution code:
class Solution:
  def solve(self, A, B, C):
    count = 0
    while True:
      B -= A
      if B < 0: break
      count += 1
      if count == C: return C
    return count

def main():
  inputs = list(map(int, input().split()))
  A, B, C = inputs
  print(Solution().solve(A, B, C))
        
if __name__ == "__main__":
   main()

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

if B/A >= C:
  print(C)
else:
  print(B//A)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if b//a>=c:
  print(c)
else:
  print(b//a)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if b//a <= c:
    print(b//a)
else:
    print(c)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
print(int(min(b/a,c)))