AtCoder Beginner Contest 120 - Favorite Sound

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-----
2 11 4

-----Sample Output-----
4

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

Source: atcoder | Difficulty: EASY


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


(A, B, C) = [int(v) for v in input().split()]
print(min(B // A, C))


(A, B, C) = list(map(int, input().split()))
print(min(C, B // A))


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


(A, B, C) = map(int, input().split())
q = B // A
q = min(C, q)
print(q)


b = list(map(int, input().split()))
print(min(b[1] // b[0], b[2]))


(a, b, c) = list(map(int, input().split()))
count = b // a
if count > c:
	count = c
print(count)


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


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


(A, B, C) = [int(a) for a in input().split()]
print(min(C, B // A))


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


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


(a, b, c) = [int(s) for s in input().split()]
print(min((b // a, c)))


(A, B, C) = map(int, input().split())
R = B // A
print(min(R, C))


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


(A, B, C) = map(int, input().split())
sound = B // A
print(min(sound, C))


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


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


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


(n, m, k) = map(int, input().split())
print(min(m // n, k))


url = 'https://atcoder.jp//contests/abc120/tasks/abc120_a'

def main():
	(a, b, c) = list(map(int, input().split()))
	ans = b // a
	print(ans) if c >= ans else print(c)

def __starting_point():
	main()
__starting_point()


(A, B, C) = (int(j) for j in input().split())
print(min(C, int(B / A)))


(A, B, C) = (int(X) for X in input().split())
print(min(C, B // A))


def mapt(fn, *args):
	return tuple(map(fn, *args))

def Input():
	return mapt(int, input().split(' '))

def main():
	(a, b, c) = Input()
	print(min(b // a, c))
main()


(A, B, C) = map(int, input().split())
temp = B // A
print(min(temp, C))


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


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


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


def atc_120a(input_value: str) -> int:
	(A, B, C) = map(int, input_value.split(' '))
	return min(C, B // A)
input_value = input()
print(atc_120a(input_value))


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


p = input().split()
print(min(int(p[1]) // int(p[0]), int(p[2])))


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


(a, b, c) = map(int, input().split())
y = 0
for i in range(1000):
	b = b - a
	if b >= 0:
		y = y + 1
		if y == c:
			print(y)
			break
	else:
		print(y)
		break


(A, B, C) = map(int, input().split())
num = B // A
print(min(num, C))


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


(A, B, C) = map(int, input().split())
m = B // A
print(min(m, C))


[print(min(c, b // a)) for (a, b, c) in [list(map(int, input().split()))]]


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


(a, b, c) = [int(v) for v in input().split()]
print(min(c, b // a))


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


S_list = list(map(int, input().split()))
(a, b, c) = S_list
bell = int(b / a)
if bell >= c:
	result = c
else:
	result = bell
print(result)


a = list(map(int, input().split()))
print(min(a[1] // a[0], a[2]))


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


(A, B, C) = map(int, input().split())
s = B // A
print(min(s, C))


(A, B, C) = [int(i) for i in input().split()]
print(min(int(B / A), C))


(A, B, C) = map(int, input().split())
cnt = B // A
print(min(cnt, C))


(a, b, c) = (int(z) for z in input().split())
print(min(b // a, c))


(A, B, C) = map(int, input().split())
max = B // A
print(min(max, C))


(A, B, K) = map(int, input().split())
print((B // A, K)[B // A >= K])


def input2():
	return map(int, input().split())
(a, b, c) = input2()
if b // a >= c:
	print(c)
else:
	print(b // a)


(A, B, C) = map(int, input().rstrip().split())
print(min(C, B // A))


(A, B, C) = (int(x) for x in input().split())
print(min(C, B // A))


(A, B, C) = map(int, input().split())
k = B // A
print(min(k, C))


(A, B, C) = map(int, input().split())
print([B // A, C][B // A > C])


(A, B, C) = map(int, input().split())
r = min(B // A, C)
print(r)


li = list(map(int, input().split()))
print(min(li[1] // li[0], li[2]))


(a, b, c) = [int(_) for _ in input().split()]
print(min(b // a, c))


(A, B, C) = map(int, input().split())
if (1 <= A & A <= 100) & (1 <= B & B <= 100) & (1 <= C & C <= 100):
	C_price = A * C
	if B < C_price:
		B_count = int(B / A)
	elif B >= C_price:
		B_count = C
	print(B_count)


(A, B, C) = map(int, input().split())
x = int(B / A)
print(min(x, C))


(A, B, C) = tuple(map(int, input().split()))
print(min(B // A, C))


(A, B, C) = map(int, input().split())
cnt = 0
while cnt < C:
	if B - A >= 0:
		B -= A
		cnt += 1
	else:
		print(cnt)
		return
print(cnt)


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


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


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


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


(a, b, c) = map(int, input().split())
d = b // a
print([c, d][c > d])


(A, B, C) = [int(n) for n in input().split()]
print(min(B // A, C))


a = input().split()
if int(int(a[1]) / int(a[0])) >= int(a[2]):
	print(a[2])
else:
	print(int(int(a[1]) / int(a[0])))


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


(A, B, C) = list(map(int, input().split()))
if B // A >= C:
	print(C)
elif B // A < C:
	print(B // A)
elif B // A < 1:
	print('0')


(A, B, C) = map(int, input().split())
MAX = int(B / A)
print(min(MAX, C))


(a, s, d) = map(int, input().split())
print(min(s // a, d))


(A, B, C) = map(int, input().split())
sho = B // A
print(min(sho, C))


(a, b, c) = list(map(int, input().split()))
oto = b // a
if oto <= c:
	print(oto)
elif oto > c:
	print(c)


(A, B, C) = map(int, input().split())
num = int(B / A)
if num >= C:
	print(C)
elif num >= 1:
	print(num)
else:
	print('0')


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


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


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