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: Wrong Answer

Solution code:
0

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

num = int(B / A)

if num >= C:
    print(C)
elif num >= A:
    print(num)
else:
    print('0')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (A * C) <= B:
    answer = C
else:
    answer = B % A
print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())
x = len(S)
if '0' in S:
  y0 = S.count('0')
else:
  y0 = 0
if '1' in S:
  y1 = S.count('1')
else:
  y1 = 0
  
d = abs(y0 - y1)
print(x - d)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if(a>b):
    print(0)
    
elif(a*c < b):
    print(c)
elif(a*c >b ):
    ans=b/a+0.5
    print(int(ans))

Submission status: Wrong Answer

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

if(a>b):
    print(0)
    
elif(a*c < b):
    print(c)
elif(a*c >b ):
    ans=b/a
    print(int(ans))

Submission status: Wrong Answer

Solution code:
s=input()
a=0
b=0
for i in range(len(s)):
  if s[i]=="1":
    a+=1
  else:
    b+=1
print(min(a,b)*2)

Submission status: Wrong Answer

Solution code:
#from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations,permutations,accumulate, product # (string,3) 3回
#from collections import deque
from collections import deque,defaultdict,Counter
import decimal
import re
#import bisect
#
#    d = m - k[i] - k[j]
#    if kk[bisect.bisect_right(kk,d) - 1] == d:
#
#
#
# pythonで無理なときは、pypyでやると正解するかも！！
#
#
# my_round_int = lambda x:np.round((x*2 + 1)//2)
# 四捨五入g
import sys
sys.setrecursionlimit(10000000)
mod = 10**9 + 7
#mod = 9982443453
def readInts():
  return list(map(int,input().split()))
def I():
  return int(input())
a,b,c = readInts()
print(min(a*c, b//a))

Submission status: Wrong Answer

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

ans=0
while b>a and ans<c:

    b=b-a
    ans+=1

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

while True:
    if a <= b:
        b -= a
        cnt += 1
    else:
        print(0)
        exit()
        
    if cnt == c or b <= 0:
        print(cnt)
        exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=list(map(int,input().split()))
count=0
while(a<=b):
  a-=b
  if count==c:
    break
  count+=1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if B/A < 1:
    print(0)
elif B/A > C:
    print(C)
else:
    print(B/A)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

elif b - (a * c) < 0:
    print(b // a)

elif a > b :
    print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

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

d1 = input_data[0]
d2 = input_data[1]
d3 = input_data[2]
total = 0

d4 = int(d2 / d1)
if d4 > d3:
    total = d3

print(total)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

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

d1 = input_data[0]
d2 = input_data[1]
d3 = input_data[2]
total = 0

d4 = int(d2 / d1)
if d4 > d3:
    total += 1

print(total)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

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

d1 = input_data[0]
d2 = input_data[1]
d3 = input_data[2]
total = 0

d4 = d2 / d1
if d4 > d3:
    total += 1

print(total)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

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

d1 = input_data[0]
d2 = input_data[1]
d3 = input_data[2]
total = 0

d4 = d2 % d1
if d4 > d3:
    total += 1

print(total)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

count = a // b

if count < c:
  print(count)
else:
  print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
b = input()
if b == 'A':
    print('T')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
else:
    print('A')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a * c > b:
    for i in range(c,1,-1):
        if i * a <= b:
            if ans < i: 
                ans = i
    print(ans)
else:
    print(c)

Submission status: Wrong Answer

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

if a * c >= b:
  ans = b
else:
  ans = b // a

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if __name__ == '__main__':

    ABC_120_A()

Submission status: Wrong Answer

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

if __name__ == '__main__':

    ABC_120_A()

Submission status: Wrong Answer

Solution code:
#K番目に"大きいもの"なのでおおきいものから調べないといけない

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

ans = 1
counter = 0

for i in range(min(A,B), 0 , -1):
    if A % i == 0 and B % i == 0:
        counter += 1
        ans = i
    
    if counter == K:
        break

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = list(input())
 
cnt0 = S.count("0")
cnt1 = S.count("1")
 
print(min(cnt0, cnt1) * 2)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
for i in range(0, 99):
    if a > b or i == c:
        print(i)
        break
    b = b - a

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
for i in range(0, 100):
    if a > b or i == c:
        print(i)
        break
    b = b - a

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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(max(a, b), 0, -1):
    if a % i == 0 and b % i == 0:
        k -= 1
        if k == 0:
             print(i)
"""

#C

s = list(input())
an0 = 0
an1 = 0
for i in s:
    if i == "1":
        an1 += 1
    if i == "0":
        an0 += 1
print(min(an0, an1)*2)
"""
"""
#D

n, m = map(int, input().split())
ab = []
for i in range(m):
    ab.append(list(map(int, input().split())))

ab = ab[-1::-1]
size = [1 for _ in range(n)]
height = [1 for _ in range(n)]
par = [i for i in range(n)]
def find(x):
    if par[x] == x:
        return x
    else:
        par[x] = find(par[x])
        return par[x]
def union(x, y):
    s1 = find(x)
    s2 = find(y)
    if s1 != s2:
        if height[s1] < height[s2]:
            par[s1] = s2
            size[s2] += size[s1]
            size[s1] = 0
        else:
            par[s2] = s1
            size[s1] += size[s2]
            size[s2] = 0
            if height[s1] == height[s2]:
                height[s1] += 1
 

ans = [0 for i in range(m)]
ans[0] = n * (n - 1) // 2
for num, i in enumerate(ab):
    if num == m-1:
        break
    a = i[0] - 1
    b = i[1] - 1
    sizea = size[find(a)]
    sizeb = size[find(b)]
    if find(a) == find(b):
        ans[num + 1] = ans[num]
    else:
        ans[num + 1] = ans[num] - (sizea * sizeb)
    union(a,b)
    
    
ans = ans[-1::-1]
for i in ans:
    print(i)
"""

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

d=a//b

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

Submission status: Wrong Answer

Solution code:
A,B,K=map(int,input().split())
cnt=0
num=1
for i in range((min(A,B)),0,-1):
    if A%i==0 and B%i==0:
            cnt+=1
            num=i
    if cnt==K:
        break
print(num)

Submission status: Wrong Answer

Solution code:
A,B,K=map(int,input().split())
cnt=0
num=1
for i in range((min(A,B)),0,-1):
    if cnt<K:
        if A%i==0 and B%i==0:
            cnt+=1
            num=i
    else:
        break
print(num)

Submission status: Wrong Answer

Solution code:
A,B,K=map(int,input().split())
cnt=0
num=1
for i in range(100,1,-1):
    if cnt<K:
        if A%i==0 and B%i==0:
            cnt+=1
            num=i
    else:
        break
print(num)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import deque
 
s=input()
sd=deque(s)
d=deque()
while(len(sd)>0):
  crr = sd.popleft()
  if(len(d)<1):
    d.append(crr)
    continue
  if(len(d)>=1 and d[-1]!=crr):
    d.pop()
  else:
    d.append(crr)
print(len(s)-len(d))

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a, b,c = map(int, input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

if a*c<=b:
  print(c)
else:
  print(math.floor(b/3))

Submission status: Wrong Answer

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

if B/A>C:
    print(C)
elif B/A<C:
    print(math.floor(B/A))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if round(b/a) > c:
    print(c)
elif b >= a:
    print(round(b/a))
else:
    print('0')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

S = input().strip()
#-----

num_red = S.count("0")
num_blue = len(S) - num_red

print( min(num_red,num_blue) * 2 )

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if B > A * C:
  print(C)
elif A * C > B and B > A:
  print(A)
else:
  print(0)

Submission status: Wrong Answer

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

if B > A * C:
  print(A * C)
elif A * C > B and B > A:
  print(A)
else:
  print(0)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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


# Generated by 1.1.6 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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
 
stdin = sys.stdin

mod = 1000000007
inf = 1 << 60
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()
nas = lambda: stdin.readline().split()

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

Submission status: Wrong Answer

Solution code:
"""
author : halo2halo
date : 16, Jan, 2020
"""

import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

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

Submission status: Wrong Answer

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

print(r)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
zero = 0
one = 0
 
for i in range(len(s)):
    if s[i]=="0":
        zero += 1
    else:
        one += 1
else:
    ans = min(zero,one)*2
 
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
def print_ans(A, B, C):
    """Test Case
    >>> print_ans(2, 11, 4)
    4
    >>> print_ans(3, 9, 5)
    3
    >>> print_ans(100, 1, 10)
    0
    """
    print(max(C, B // A))


if __name__ == '__main__':
    A, B, C = map(int, input().rstrip().split())
    print_ans(A, B, C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, K = list(map(int, input().split()))
ans = []
for i in range(min(A, B), 0, -1):
    if A % i == 0 and B % i == 0:
        ans.append(i)
    if len(ans) == K:
        break
print(ans[-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


B_A = (B//A)

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

Submission status: Wrong Answer

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


B_A = B//A

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

Submission status: Wrong Answer

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


B_A = B//A

print(B_A)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a <= b:
    ans = b/a
    if ans >= c:
        print(c)
    else:
        print(ans)
else:
    print("0")

Submission status: Wrong Answer

Solution code:
S = input()

s = S
index = 0
ans = 0
while index < len(s)-1:
    c = s[index]
    next_c = s[index+1]
    if c != next_c:
        s = s[:index] + s[index+2:]
        index = 0
        ans += 2
    else:
        index += 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 2019-11-12 21:58:02(JST)
import sys
# import collections
# import math
# from string import ascii_lowercase, ascii_uppercase, digits
# from bisect import bisect_left as bi_l, bisect_right as bi_r
# import itertools
# from functools import reduce
# import operator as op
# from scipy.misc import comb # float
# import numpy as np 

def main():
    a, b, c = [int(x) for x in sys.stdin.readline().split()]
    if b >= a * c:
        ans = c
    else:
        ans = b % a
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

sum = 1
count = 0

if B > A:
  for i in range(1, C):
    sum *= A
    if sum > B:
      count = i
      break
  print(count)

else:
  print('0')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


min(int(B/A),C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, k = map(int, input().split())
ct = 0
for i in range(1, 101):
    if a % i == 0 and b % i == 0:
        ct += 1
    if ct == k:
        print(i)
        break

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
   
a,b,c=map(int,input().split())
print(min((-((-b)//a)),c))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

cost = 0
ans = 0
isContinue = True
while True:
  cost += a
  ans += 1
  if(cost>=b):
    break
print(max(ans-1,c))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,k=map(int,input().split())
 
count=0
 
for i in range(1,min(a,b)+1)[::-1]:
  if a%i==0 and b%i==0:
    count+=1
  if count==k:
    num=i
    break
print(i)

Submission status: Wrong Answer

Solution code:
a,b,k=map(int,input().split())
 
count=0
 
for i in range(1,min(a,b)+1)[::-1]:
  if a%i==0 and b%i==0:
    count+=1
  if count==k:
    print(i)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
count = 0

while s.find("01") != -1 or s.find("10") != -1:
    count += 2 * s.count("10") +  2 * s.count("01")
    s = s.replace("01", "").replace("10", "")
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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