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:
# -*- 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:
line = input().split(' ')
price = int(line[0])
equity = int(line[1])
max = int(line[2])

def getTimes(price, equity, max):
    real = int(equity / price)
    return min(real, max)

def min(a, b):
    if a <= b:
        return a
    else:
        return b

res = getTimes(price, equity, max)
print(res)

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

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

Submission status: Accepted

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

x = abc[1]//abc[0]

if x > abc[2]:
    print(abc[2])
else:
    print(x)

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:
# https://atcoder.jp/contests/abc120/tasks/abc120_a
a, b, c = [int(x) for x in input().split()]
print(c) if a * c <= b else print(b // a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def compute():
  from sys import stdin
  A, B, C = list(map(int, stdin.readline().split()))
  
  print(min(B//A, C))

if __name__ == "__main__":
  compute()

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

required = a * c
limit = b

if required <= limit:
    print(c)
else:
    print(math.floor(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:
# -*- coding: utf-8 -*-
"""
Created on Mon Mar  4 22:42:24 2019

@author: yuta
"""

A,B,C = list(map(int,input().split()))
def main(a,b,c):
    d = int(b/a)
    if d >= c:
        e = c
    else:
        e = d
    print(e)
main(A,B,C)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.readline
readlines = sys.stdin.readlines

A,B,C = [int(i) for i in readline().split(' ')]
if A*C <= B:
  print(C)
elif A > B:
  print(0)
else:
  print(B // A)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding:utf-8 -*-

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

if __name__=='__main__':
  main()

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(a > b):
	print("0")
elif(b / a >= c):
	print(int(c))
elif(b / a < c):
	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:
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())

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

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:
[print(min(c,b//a))for a,b,c in[list(map(int,input().split()))]]

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

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    a,b,c = LI()

    return min(c,b//a)



print(main())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=[int(i) for i in input().split()]
print(c if b-a*c>=0 else 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())
print(b//a) if b//a<c else print(c)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
def func(S):
	A, B, C = map(int, S.split())
	return B // A if B // A < C else C

def main():
	#print(func("2 11 4"))
	#print(func("3 9 5"))
	#print(func("100 1 10"))
	print(func(input()))
	return

if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,raw_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

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

#B
"""
a, b, k = map(int, input().split())
for i in range(1,max(a, b)+1):
    if a % i == 0 and b % i == 0:
        k -= 1
        if k == 0:
             print(i)
"""

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

Submission status: Accepted

Solution code:
import sys
A,B,C = [int(n) for n in input().split()]
# N = int(input())
# a = [int(input()) for _ in range(N)]
# S = str(input())
# L = len(S)
# T = str(input())
taka = 0
while (taka != C and B >= A):
    B-=A
    taka+=1
print(taka)

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:
#anc120a

a,b,c=map(int,raw_input().split())
print min(b/a,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:
import sys

a, b, c = map(int, sys.stdin.readline().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(b//a)

Submission status: Accepted

Solution code:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-

A,B,C = [int(x) for x in input().split()]
if A*C <= B:
    answer = C
else:
    answer = B//A

print(answer)

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

Submission status: Accepted

Solution code:
a,b,c = (int(i) for i in input().split())
print(min(c,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:
A, B, C = [int(i) for i in input().split()]
ans = min(B//A, C)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,nmax=map(int,raw_input().split())

op=0

while b>=a:
    op+=1
    b=b-a
    if op==nmax:
        break

print op

Submission status: Accepted

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

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

Submission status: Accepted

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

print(Cmax)

Submission status: Accepted

Solution code:
print(*[min(a[1]//a[0],a[2]) for a in [list(map(int,input().split()))]])

Submission status: Accepted

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

result = (int(data[1]) // int(data[0])) 

if result <= int(data[2]):
        if result >= 1:
            print(math.floor(result))
        elif result < 1:
            print("0")
elif result > int(data[2]):
    print(data[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

result = min(C, B // A)

print(result)

Submission status: Accepted

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

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

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

tmp = int(B / A)

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

Submission status: Accepted

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

x=b//a
x=int(x)

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

Submission status: Accepted

Solution code:
def spaceinput():
    return list(map(int,input().split(" ")))


A,B,C=spaceinput()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import deque
import copy
import math
def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [A, B, C] = [int(input_raw[0]), int(input_raw[1]), int(input_raw[2])]
    print min(B/A, C)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
price, money, satis = map(int, input().split())
# 条件分岐っき
# 満足するだけ聞ける
if price * satis <= money:
	output = satis
# 満足するだけ聞けない
else:
	output = money // price
# 出力
print(output)

Submission status: Accepted

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

flag = 0
while B>0 and B>=A:
	B = B - A
	flag+=1
	if flag==C:
		print(C)
		exit()
print(flag)

Submission status: Accepted

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

def FavoriteSound(oneTimePay,haveMoney,satisfiedCount):
	if oneTimePay*satisfiedCount <= haveMoney:
		return satisfiedCount
	else:
		possibleCount = haveMoney // oneTimePay
		return possibleCount


if __name__ == '__main__':
	A,B,C = map(int,input().strip().split(' '))
	solution = FavoriteSound(A,B,C)
	print("{}".format(solution))

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, input().split())
# 出力
print("{}".format(int(min(b / a, c))))

Submission status: Accepted

Solution code:
import sys
import io
import math

datalist = input().split()

data_a = int(datalist[0])
data_b = int(datalist[1])
data_c = int(datalist[2])

data_ans = int(data_b / data_a)

if data_ans < data_c:
    print(data_ans)
else:
    print(data_c)

Submission status: Accepted

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

Submission status: Accepted

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

dat = list[1] / list[0]
if (dat >= list[2]):
  print(list[2])
else:
  print(int(dat))

Submission status: Accepted

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

if A > B:
    print(0)

elif B < A * C:
    print(B // A)

else:
    print(C)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C = [int(n) for n in input().split()]
print(min(B // A, 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:
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())

d = int(b / a)

if d > c:
    print(c)

else:
    print(d)

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    s = input()
    yen = s.split()
    for i in range(len(yen)):
        yen[i] = int(yen[i])
    times_A = yen[1] / yen[0]
    if(times_A < yen[2]):
        print(int(times_A))
    else:
        print(yen[2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin


############################################


# read data for n sequences.
n = stdin.readline().split()
a = int(n[0])
b = int(n[1])
c = int(n[2])
#data = [int(stdin.readline().rstrip()) for _ in range(n)]

out = int(b / a)

if out > c:
    out = c

print(out)

#end = time.time()
#print(end-start)

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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=(int(x) for x in input().split())
count=0
for i in range(1,C+1):
  if A*i>B:
    break
  else:
    count+=1
print(count)

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

Solution code:
from sys import stdin

input = [int(i) for i in stdin.readline().rstrip().split(' ')]

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

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

Submission status: Accepted

Solution code:
import sys
A, B, C = [int(x) for x in sys.stdin.readline().rstrip().split()]
print(min(C * A, 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 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:
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())
d = b/a
e = b//a
if d >= c:
    print(c)
else:
    print(e)

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:
# 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 = list(map(int,input().split( )))

if A[2] <=A[1]/A[0]:
	print(A[2])
else:
	print('%d'%(A[1]/A[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 = map( int, input().split())
print( min(c, b//a))

Submission status: Accepted

Solution code:
import math
a, b, c = [int(x) for x in input().split()]
if a*c <= b:
    print(math.floor(c))
else:
    print(math.floor(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:
S = input().split()
A, B, C = int(S[0]), int(S[1]), int(S[2])
print(C if A*C <= B else B // A)

Submission status: Accepted

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

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

print(i)

Submission status: Accepted

Solution code:

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

if l[0] * l[2] <= l[1]:
    print(l[2])
else:
    for i in range(l[2]+1):
        if l[0] * i > l[1]:
            break
    print(i-1)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

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

O = min(int(B / A), C)

print(O)

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
cont = 0
for i in range(A,B+1,A):
    if cont == C:
        break
    elif i <= B:
        cont += 1
    else:
        break
print(cont)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    A,B,C = map(int, lines.pop(0).split(' '))
    res = B // A
    if res > C:
        print(C)
    else:
        print(res)

#
# main
#
lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C  = [int(a) for a in input().split()]
div = B // A
if div > C:
    div = C

print(div)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cost, amount, satisfaction = list(map(int, input().split()))
# 最小コストの満足回数を求める => 円
total_yen = cost * satisfaction
# もしも満足回数のコストが所持金を下回ればそのまま出力
# そうでなければ所持金で聞けるだけの回数を出力
if total_yen <= amount:
    print(satisfaction)
else:
    print(amount // cost)

Submission status: Accepted

Solution code:
a,b,c = [int(s) for s in 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)

elif A*C == B:
    print(C)

elif A*C > B:
    print(B//A)

Submission status: Accepted

Solution code:
#-*- coding: utf-8 -*-
"""
oj dl https://atcoder.jp/contests/abc116/tasks/abc116_d -d test-d
oj test -d test-d -c "python abc116d.py"
oj test -d test-d -c "python abc116d.py" test-d/sample-3.in
"""
from collections import defaultdict
import sys
import math
from datetime import datetime

def sol(a, b, c):
    return min(int(b/a), c)


do_submit = True
#do_submit = False

def input_parse(input_str):
    lines = [x.strip() for x in input_str.split("\n") if x.strip()]
    parsed_lines = [list(map(int, line.split())) for line in lines]
    a, b, c = parsed_lines[0]
    return a, b, c


if not do_submit:
    a, b, c = input_parse("""
    2 11 4
    """)
    print(sol(a, b, c))
else:
    a, b, c = list(map(int, input().split()))
    print(sol(a, b, c))
    # S = input().strip()
    # print(sol(S))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!


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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b, c = map(int, input().split())
ab = int(b / a)
if ab < c:
    print(ab)
else:
    print(c)

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i 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())

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)
elif a > b:
    print(0)
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:
int_list = input().strip().split()

fee_per_sound = int(int_list[0])
takahasi_money = int(int_list[1])
satisfaction_number = int(int_list[2])

if takahasi_money >= fee_per_sound*satisfaction_number:
    print(satisfaction_number)
else:
    print(takahasi_money//fee_per_sound)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


def main():
    lines = sys.stdin.readlines()[0].split(' ')
    one_try = int(lines[0])
    money = int(lines[1])
    count = int(lines[2])
    n = 0
    while(True):
        if money >= one_try:
            money = money - one_try
            n = n + 1
        else:
            break
        if n == count:
            break
    print(n)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a=int(a)
b=int(b)
c=int(c)

res=0
if b/a > c:
    res=c
else:
    res=b/a

print(int(res))

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

Submission status: Accepted

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

count = B / A;

print(C if count > C else int(count));

Submission status: Accepted

Solution code:
import math


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

print(min(math.floor(B/A), C))

Submission status: Accepted

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

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

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

a=0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

C_max = B//A

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

Submission status: Accepted

Solution code:
import sys

l = raw_input().split()
a = int(l[0])
b = int(l[1])
c = int(l[2])

ret = int(b/a)
if ret >= c:
    ret =c

print(ret)

Submission status: Accepted

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

Submission status: Accepted

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


import sys
import math

#1整数
#n = int(input())

#空白区切り2整数
a ,b,c = list(map(int, input().split()))

#空白区切りリスト
#a=list(map(int, input().split()))
ret = int(min(c , b/a))
print(ret)

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

count = B // A

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

Submission status: Accepted

Solution code:
import math

val = input().split(" ")
once = int(val[0])
money = int(val[1])
num = int(val[2])

count = money / once

if count >= num:
  print(num)
else:
  print(math.floor(count))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a * c <= b:
    print(c)
else:
    if a <= b:
        print(b //a)
    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:
tmp = [int(i) for i in raw_input().split()]
A = tmp[0]
B = tmp[1]
C = tmp[2]
tmp = 0
for i in range(C):
    if B >=A:
        B = B -A
        tmp += 1
print(tmp)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

data = sys.stdin.readline()
a, b, c = data.split(" ")
d = int(int(b) / int(a))
if d >= int(c):
  print(c)

else:
  print(d)

Submission status: Accepted

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

Submission status: Accepted

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

a = int(a)
b = int(b)
c = int(c)

Ans = min(b//a,c)

print(Ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B, C = [int(i) for i in input().split()]
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(x) for x in input().split())
count=0
while True:
    if c<=count or b<a:
        break

    if a<=b:
        b-=a
        count+=1
print(count)

Submission status: Accepted

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