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:
#!/usr/bin/env python3
import sys
try:
    from math import gcd
except Exception:
    from fractions import gcd


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


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
    result = solve(A, B, C)
    print(result)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

count = math.floor(B / A)

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

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().rstrip().split(' '))

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

Submission status: Accepted

Solution code:
from sys import stdin
import math

A,B,C = [int(x) for x in stdin.readline().rstrip().split()]

if B < A:
  print('0')
elif A*C <= B:
  print(C)
else:
  print(math.floor(B/A))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
def main():
   ARR = raw_input()
   ABC = list(map(int, ARR.split()))
   A = ABC[0]
   B = ABC[1]
   C = ABC[2]
   ans = 0
   while B >= A:
      B = B - A
      ans += 1
      if ans == C:
         break;
   print(ans)
main()

Submission status: Accepted

Solution code:
from math import floor
a, b, c = map(int,input().split())
cnt = 0
if a * c <= b:
    print(c)
else:
    num = floor(b / a)
    print(num)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y,z=map(int,input().split())
if y >= x*z:
  print(z)
else:
  print(y//x)

Submission status: Accepted

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

for _ in range(C):
    if cost - A >= 0:
        cost -= A
        ans +=1
    else:
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

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().strip().split(' '))
print(min(B//A, C))

Submission status: Accepted

Solution code:
i,j,k = map(int, input().split())

if (j >= i * k):
    print(k)
else:
    print(int(j/i))

Submission status: Accepted

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

c = 0
while B >= A:
    B = B - A
    if c == C:
        break
    c += 1

print(c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
a,b,c=map(int,input().split())
print(np.minimum(c,b//a))

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 = 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(B//A)
else:
    print(C)

Submission status: Accepted

Solution code:
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


def inl():
    return list(map(int, input().split()))


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


a, b, c = inl()
print(min(c, 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(" "))

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin
A,B,C = map(int,stdin.readline().rstrip().split())
if B/A > C:
    print(C)
else:
    print(int(B/A))

Submission status: Accepted

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

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

if b / a < c:
  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())

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

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:
input = input().split()

A = int(input[0])
B = int(input[1])
C = int(input[2])

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(c)
else:
  print(int(b//a))

Submission status: Accepted

Solution code:
# ABC120A - Favorite Sound
a, b, c = list(map(int, input().split()))

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

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(_) for _ in input().split()]
print(min(B // A, C))

Submission status: Accepted

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

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:
a,b,c = map(int,input().split())
d = int(b/a)
print(d) if d < c else print(c)

Submission status: Accepted

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

Submission status: Accepted

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

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

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())
able_num = int(b / a)
print(min(able_num, 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:
# -*- coding: utf-8 -*-

import numpy as np

#input
#[H,W] = list(map(int,input().split()))
#[h,w] = list(map(int,input().split()))
#
#print((H-h)*(W-w))


#[N, M] = list(map(int,input().split()))

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

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())
cnt = 0

while C > 0:
    B -= A
    if B <0:
        break
    C -= 1
    cnt += 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Favorite Sound
# https://atcoder.jp/contests/abc120/tasks/abc120_a

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

print '{}'.format(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:
a,b,c = map(int, input().split())
print(min(b // a,c))

Submission status: Accepted

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

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

# print(A, B, C)

ans = B // A

# print(ans)

if ans > C:
    ans = C

print(ans)

Submission status: Accepted

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


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= [int(i) for i in input().split()]

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

Submission status: Accepted

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

count = B // A

if C < count:
	count = C
	
print(count)

Submission status: Accepted

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

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:
    if b >= a :
        print(int(b/a))
    else:
        print(0)

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 = list(map(int, input().split()))
print(min(C, B//A))

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
if C > B//A:
  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(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 = min(C,B//A)
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B,C = [int(v) for v 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(B//A)

Submission status: Accepted

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

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:
# coding:utf-8
A,B,C = map(int, input().split())

print(min(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:
import math

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

if(A * C <= B):
  print(C)

if(A * C > B):
  if(B >= A):
    print(math.floor(B / A))
  else:
    print(0)

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, raw_input().split())
if b >= c*a:
    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:
i = list(map(int,input().split()))
a = i[1]//i[0]
c = i[2]
if a<c:
	print(a)
else:
	print(c)

Submission status: Accepted

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

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

Submission status: Accepted

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

if(b >= a * c):
    print(c)
else:
    print(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:
a,b,c = map(int,input().split())
if a*c < b:
  print(c)
else:
  print(b//a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
ans=min(int(b/a),c)
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())
ci = b // a
if c <= ci:
    print(c)
else:
    print(ci)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C = list(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())
cnt=0
for i in range(C):
    B-=A
    if B>=0:
        cnt+=1
    else:
        break
print(cnt)

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())
print(B//A if B//A <= C else C)

Submission status: Accepted

Solution code:
a,b,c=map(int, raw_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())
if A*C <= B:
  print(C)
else:
  print(B//A)

Submission status: Accepted

Solution code:
import sys, math

stdout_write = sys.stdout.write

for line in sys.stdin:
  a, b, c = (int(i) for i in line.strip().split())
  ans = min(int(math.floor(b / a)), c)
  stdout_write('{}\n'.format(ans))

Submission status: Accepted

Solution code:
import sys

stdout_write = sys.stdout.write

for line in sys.stdin:
  a, b, c = (int(i) for i in line.strip().split())
  cnt = 0
  if (a * c) <= b:
    cnt = c
    break

  for _ in range(c):
    if (b - a) < 0:
      break
    b -= a
    cnt += 1

stdout_write('{}\n'.format(cnt))

Submission status: Accepted

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

if B // A >= C:
    print(C)
else:
    print(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 int(B / A) > C:
    print(C)
else:
    print(int(B / A))

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:
list = raw_input().split()

A = int(list[0])

B = int(list[1])

C = int(list[2])

if B // A < C:
    print B // A

else:
    print C

Submission status: Accepted

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

import re

x = input()
x = re.split(" ",x)

A = int(x[0])
B = int(x[1])
C = int(x[2])

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

Submission status: Accepted

Solution code:
import math

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

if B - A*C < 0:
    print(math.floor(B/A))
else:
    print(C)

Submission status: Accepted

Solution code:
#!/usr/bin/python

def main():
    A, B, C = [int(x) for x in input().split()]
    if B // A > C:
        print(C)
    else:
        print(B//A)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

cut = B // A
if cut >= C:
    ans = C
else:
    ans = cut
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:
import math
a, b, c = map(int, input().split())
D = b / a
if a > b:
    print(0)
elif D == c:
    print(c)
elif D > c:
    if c > D:
        print(math.floor(D))
    else:
        print(c)
else:
    print(math.floor(D))

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:
#!/usr/bin/env python3
import sys
import math


def solve(A: int, B: int, C: int):
    use = math.floor(B/A)
    print(min(C,use))
    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:
def solve(a, b, c):
    return min(b // a, c)


def main():
    a, b, c = map(int, input().split())
    ans = solve(a, b, c)
    print(ans)


main()

Submission status: Accepted

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

if num > c:
	print(c)

else:
	print(num)

Submission status: Accepted

Solution code:
def smaller(x, y):
	if x < y: return x
	else: return y
A, B, C = map(int, raw_input().split())
print smaller(B/A, C)

Submission status: Accepted

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

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:
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(" "))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

num = B // A

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

Submission status: Accepted

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

answer=min(int(b/a),c)

print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

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

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 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(b//a)
else:
  print(c)

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 = (int(x) for x in input().split())
if C <= B // A:
    total_time = C
else:
    total_time = B // A
print(total_time)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Apr  5 22:44:01 2019

@author: lab
"""

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(' ')))
print(min(C, B // A))

Submission status: Accepted

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

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())
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 a*c < b else b//a)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
#10 100 4
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())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b, c = list(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())
total = 0
for i in range(C):
    if B >= A:
        B -= A
        total += 1
print(total)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
tmp = list(map(int, input().split()))
A, B, C = tmp[0], tmp[1], tmp[2]
tmp = B // A
if tmp > C:
  print(C)
else:
  print(tmp)

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:
A, B, C = map(int, input().split())
z = B // A
if z > C:
    print(C)
else:
    print(z)

Submission status: Accepted

Solution code:
a,b,c = (int(num) for num in input().split())
if b - a*c > 0:
    print(c)
else:
    print(b//a)

Submission status: Accepted

Solution code:
A,B,C = map(int, input().split())
ans = 0
while True:
        B = B - A
        if B >= 0:
                ans += 1
        if B < 0:
                break
        if ans == C:
                break
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 = tuple(map(int, input().strip().split()))
print(min(C, B//A))

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:
a=list(input().split())
b=int(a[0])
c=int(a[1])
d=int(a[2])
e=int(c/b)
if e>=d:
  print(d)
elif d>e:
  print(e)

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, raw_input().split())                                                                               
num = B//A
if num < C:
    print num 
else:
    print C

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
A, B, C = (int(i) for i in input().split())

count = np.floor(B/A)

if(C<=count):
    print(int(C))
else:
    print(int(count))

Submission status: Accepted

Solution code:
cost, wallet, many = map(int, input().split())

if wallet >= cost * many:
    ans = int(many)
else:
    ans = int((wallet - (wallet % cost)) / cost)

print(ans)

Submission status: Accepted

Solution code:
abc = input().split()
cost, money, time = int(abc[0]),int(abc[1]),int(abc[2])
count = 0

while money >= cost and count < time:
    money -= cost
    count += 1

print(count)

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:
def main():
    
    A, B, C = map(int, input().split())

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


main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
A - Favorite Sound
https://atcoder.jp/contests/abc120/tasks/abc120_a

"""
import sys

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


if __name__ == '__main__':
    main(sys.argv[1:])

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 = map(int, input().split())
if A * C < B:
    print(C)
else:
    print(B // A)

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:
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())
if B >  A*C:
    print(C)
else:
    print(B//A)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# https://atcoder.jp/contests/abc120/tasks/abc120_a


def calc(a, b, c):
    rest = b
    count = 0
    while True:
        if count >= c:
            break
        if rest < a:
            break
        count += 1
        rest -= a
    return count


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

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())
cnt = 0

for i in range(C):
    if B >= A:
        cnt += 1
        B -= A

print(cnt)

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())
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 = map(int ,input().split())
if B / A >= C:
  print(C)
elif B/ A < C:
  print(int(B/A))

Submission status: Accepted

Solution code:
ABC = [int(i) for i in input().split()]
answer = 0
if(ABC[0] * ABC[2] <= ABC[1]):
    answer = ABC[2]
else:
    answer = int(ABC[1] / ABC[0])
print(answer)

Submission status: Accepted

Solution code:
from sys import stdin

# 標準入力の受取
# sdi = stdin.readline().rstrip()
# a, b, c = stdin.readline().rstrip().split()
# a, b, c = [x for x in stdin.readline().rstrip().split()]
a, b, c = [int(x) for x in stdin.readline().rstrip().split()]
v = 0
while b - a >= 0:
    b = b - a
    v += 1
    if v == c:
        break

print(v)

Submission status: Accepted

Solution code:
# coding: utf-8

import sys
input = sys.stdin.readline

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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 = map(int, input().split())
if C*A<=B:
    print(C)
else:
    print(B//A)

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())

if( b < a):
    print (0)
elif(b//a > c):
    print (c)
else:
    print (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())
d=b//a
print([c,d][c>d])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

    moneyInHand = B
    countOfListen = 0
    for i in range(C):
        if moneyInHand < A:
            break
        moneyInHand -= A
        countOfListen += 1

    print(countOfListen)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A, B, C= map(int,input().split())
D = B;
count = 0;
while D-A >= 0:
    D -= A
    count += 1
    if count == C:
        break
    
print(count)

Submission status: Accepted

Solution code:
input_line = input()
sep = []
sep =input_line.split()

price = int(sep[0])
have = int(sep[1])
like = int(sep[2])

p1 = have // price

if p1 >= like:
	print(like)
else:
	print(p1)

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())

count = 0

if A > B:
  print(count)
  exit()

count = int(B / A)

if count >= C:
  count = C
  
print(count)

Submission status: Accepted

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