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

Submission status: Wrong Answer

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

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

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:
S = str(input())
cube = list(S)
count0 = 0
count1 = 0

for string in cube:
    if string == '0':
        count0 = count0 + 1
    else:
        count1 = count1 + 1

print(min(count0,count1) * 2)

Submission status: Wrong Answer

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

for _ in range(10000):
        s=s.replace('01','')
        s=s.replace('10','')
print(c-len(s))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

Tmp = -(-B//A)
if A > C:
  print(C)
else:
  print(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())
x=0
if b>a*c:
  x=c
else:
  x=b//c
print(x)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(B//A,C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np

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

Submission status: Wrong Answer

Solution code:
from fractions import*
a,b,k=map(int,input().split());c=0
for i in range(a,0,-1):
  c+=(gcd(a,b)%i==0)
  if c==k:print(i)

Submission status: Wrong Answer

Solution code:
"""
# 標準入力取得
## 文字列
 = sys.stdin.readline().rstrip()
 = list(sys.stdin.readline().rstrip())

## 数値
 = int(sys.stdin.readline())
 = map(int, sys.stdin.readline().split())
 = list(map(int, sys.stdin.readline().split()))
 = [list(map(int,list(sys.stdin.readline().split()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき

# 0埋め, 小数点出力桁指定時のときの出力
a = 100
b = 0.987654321
print("{0:06d}-{1:6f}".format(a,b))
000100-0.987654

# 文字列をリストに格納
char_list = list("abcd") # ["a","b","c","d"]
"""

import math
import sys
import itertools
import queue
from fractions import gcd

def lcm(a, b):
    return a * b // gcd(a, b)

mod = 1000000007

if __name__ == "__main__":
    A,B,C = map(int, sys.stdin.readline().split())

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, K = map(int, input().split())
index = 0
for i in range(100, 0, -1):
  if int(A / i) == 0 and int(B / i) == 0:
    index += 1
    if(K == index):
      print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = list(input())
s_len = len(s)
ctr = 0

for i in range(s_len - 1):
    if s[i] == s[i + 1]:
        if s[i] == '0':
            s[i + 1] = '1'
        else:
            s[i + 1] = '0'
        ctr += 1
print(ctr)

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

Submission status: Wrong Answer

Solution code:
S = input()

s_list=[]
for i in range(len(S)):
    s_list.append(S[i])

num=0
judge=1
N=len(s_list)
while judge==1:
    judge=0
    for i in range(N):
        if i+1 < len(s_list):
            if s_list[i] != s_list[i+1]:
                #print(i,len(s_list),s_list,s_list[i],s_list[i+1])
                del s_list[i:i+2]
                num+=2
                judge=1
        else:
            break
    N = len(s_list)
print(num)

Submission status: Wrong Answer

Solution code:
def main():
    A,B,K=list(map(int, input().split()))
    divisors=[]
    count = 0
    for i in range(1,min(A,B)+1):
        if min(A,B)%i==0:
            divisors.append(i)
    for divisor in divisors:
        if max(A,B)%divisor==0:
            count+=1
            if count==K:
                print(divisor)
if __name__ =='__main__':
    main()

Submission status: Wrong Answer

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
print("")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
S = S.split()
howMuch = S[0]
Ihave = S[1]
sutis = S[2]
 
ans = int(Ihave)/int(howMuch)
ans2 = int(sutis) * int(howMuch)
if ans < ans2 and ans2 < int(Ihave):
    print(int(sutis))
else:
    print(int(ans))

Submission status: Wrong Answer

Solution code:
S = input()
S = S.split()
howMuch = S[0]
Ihave = S[1]
sutis = S[2]
 
ans = int(Ihave)/int(howMuch)
ans2 = int(sutis) * int(howMuch)
if ans < ans2:
    print(int(sutis))
else:
    print(int(ans))

Submission status: Wrong Answer

Solution code:
S = input()
S = S.split()
howMuch = S[0]
Ihave = S[1]
sutis = S[2]

ans = int(Ihave)/int(howMuch)
print(int(ans))

Submission status: Wrong Answer

Solution code:
price, wallet, m = map(int, input().split())
if wallet // price >= m:
  print(price*m)
else:
  print(wallet // price)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

Solution code:
# 一回A円
# B円持っている
# C回聞くと満足する
A,B,C = map(int, input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#Coding: Utf-8
N=input()

A=N.count("1")
B=N.count("0")
if A==0 or B==0:
  print(0)
  exit()

print(min(A,B)*2)

Submission status: Wrong Answer

Solution code:
# abc120_a
A, B, C = map(int, input().split())
for i in range(C):
 if A*i <= B:
  print(i)
  exit(0)
print(C)

Submission status: Wrong Answer

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

ans = min(B/ A,C)

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
from itertools import chain
import sys
sys.setrecursionlimit(99999)

s = input().rstrip()

def f(s):
    l = s.split('01')
    for i in range(len(l)):
        l[i] = l[i].split('10')
    l = list(chain.from_iterable(l))
    if len(l) == 1:
        return 0
    else:
        r = (len(l) - 1) * 2
        return r + f(''.join(l))

print(f(s))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

if b/a :
  print(c)

else:
  print(math.floor(b/a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(1, 100):
	if a == b:
		print('1')
	elif abs(a-b) % i == 0:
		# print(i)
		if a % (abs(a-b)/i) == 0:
			n -= 1
			if n == 0:
				print(int(abs(a-b)/i))

Submission status: Wrong Answer

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

K = A // B

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

k=x//a

print(max(k,c))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    s = input()
    print (min(s.count("0"), s.count("1")) * 2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

def gcd(a,b):
  if b>a:
    a,b=b,a

  if a%b==0:
    return b
  else:
    return(gcd(b,a%b))

first=gcd(A,B)
if first==1:
  print(1)
else:
  k=1
  if K==1:
    print(first)
  else:
    for i in reversed(range(1,first)):
      if A%i==0:
        if B%i==0:
          k=k+1
          if k==K:
            print(i)
            break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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

x = max(b // a, c)
print(x)

Submission status: Wrong Answer

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

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

result = 0
if A > B:
    print(result)
    exit(0)

result +=1
while result * A <= B :
    #print(result)
    if result * A == B:
        break
    result +=1

print(result)

Submission status: Wrong Answer

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

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

result = 0
if A > B:
    print(result)
    exit(0)

result +=1
while result * A <= B :
    result +=1

print(result)

Submission status: Wrong Answer

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

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

result = 0
if A > B:
    print(result)
    exit(0)

while result * A <= B :
    result +=1

print(result)

Submission status: Wrong Answer

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

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

result = 0
if A > B:
    print(result)
    exit(0)

result +=1
while result * A < B :
    result +=1

print(result)

Submission status: Wrong Answer

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

if A * C < B:
    print(C)
    exit(0)

result = 0
if A > B:
    print(result)
    exit(0)

result +=1
while result * A <= B :
    result +=1

print(result)

Submission status: Wrong Answer

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

if A * C < B:
    print(C)
    exit(0)

result = 0
if A > B:
    print(result)
    exit(0)

result +=1
while result * A < B :
    result +=1

print(result)

Submission status: Wrong Answer

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

if A * C < B:
    print(C)
    exit(0)

result = 0
if A > B:
    print(result)
    exit(0)

while result * A < B :
    result +=1

print(result)

Submission status: Wrong Answer

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

min(C,B // A)

Submission status: Wrong Answer

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

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

main()

Submission status: Wrong Answer

Solution code:
from sys import stdin

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

if A == 0 or B == 0 or C == 0 or B < A:
  print('0')
elif B/A > C:
  print(C)
else:
  print(round(B/A))

Submission status: Wrong Answer

Solution code:
from sys import stdin

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

if A == 0 or B == 0 or C == 0:
  print('0')
elif B/A > C:
  print(C)
else:
  print(round(B/A))

Submission status: Wrong Answer

Solution code:
from sys import stdin

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

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

Submission status: Wrong Answer

Solution code:
from __future__ import print_function
import sys

def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)

cnt=0
S=list(input())
# eprint(S)

L=list()
L.append(S.pop())
while len(S)!=0:
    if S[-1]==L[-1]: # SのfrontとLのfrontが0と0とか一致しちゃった時だから，消せない．次のSのfrontを見よう 
        L.append( S.pop() )
        # eprint("S: " + str(S))
        # eprint("L: " + str(L))
    else: # SのfrontとLのfrontが0と1となっている場合．消す．
        S.pop()
        L.pop()
        if L==[] and S!=[]:
            L.append(S.pop())
        cnt=cnt+2
        # eprint("S: " + str(S))
        # eprint("L: " + str(L))

print(cnt)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

intInput = [int(i) for i in input]

result = 0

#満足してしまうとき
if(intInput[0]*intInput[2] <= intInput[1]):
	print(intInput[0]*intInput[2])
#一回も聞けないとき
elif(intInput[0]>intInput[1]):
	print(0)
#満足できないとき
else:
	for i in range(intInput[2]):
		result = result + intInput[0]
		if(intInput[1] - result < intInput[0]):
			print(i+1)
			break

Submission status: Wrong Answer

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

if C <= B / A:
    print(C)
else:
    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:
# coding: utf-8
from sys import stdin
A,B,C = map(int,stdin.readline().rstrip().split())
if B/A > C:
    print(C)
else:
    print(B/A)

Submission status: Wrong Answer

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

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

if b / a < c:
  print(b/ a)
else:
  print(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(min(A/B,C))

Submission status: Wrong Answer

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

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

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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(B / A)
  else:
    print(0)

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

Submission status: Wrong Answer

Solution code:
A,B,C=3,9,5
cnt=0
for i in range(C):
    B-=A
    if B>=0:
        cnt+=1
    else:
        break
print(cnt)

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
cnt=0
for i in range(C):
    tmp=B-A
    if tmp>=0:
        cnt+=1
    else:
        break
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin:
    print(line.strip().split())

Submission status: Wrong Answer

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

a = A
b = B
count = 0
if a > b:
    print(0)

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

print(count)

Submission status: Wrong Answer

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

x = 0
y = 0

while x < C:
    if A > B:
        break
    if y >= B:
        break
    y += A
    x += 1

print(x)

Submission status: Wrong Answer

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

x = 0
y = 0

while x <= C:
    if A > B:
        break
    if y >= B:
        break
    y += A
    x += 1

print(x)

Submission status: Wrong Answer

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

a=int(A)
b=int(B)
c=int(C)

d=b/a
e=b%a
f=b-e

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

Submission status: Wrong Answer

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:
    print(math.floor(D))
elif c > D:
    print(c)
else:
    pass

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 = str(input())
x = a.count("0")
y = a.count("1")
print(2 * min(int(x), int(y)))

Submission status: Wrong Answer

Solution code:
import math
A, B, C = map(int, input().split())
D = B / A
if B < A:
    D = 0
    print(D)
elif C == D:
    print(C)
elif C > D:
    try:
        print(math.ceil(D))
    except:
        print(D)
else:
    print(C)

Submission status: Wrong Answer

Solution code:
import math
A, B, C = map(int, input().split())
D = B / A
if D < 1:
    D = 0
    print(D)
elif C == D:
    print(C)
elif C > D:
    try:
        print(math.ceil(D))
    except:
        print(D)
else:
    print(C)

Submission status: Wrong Answer

Solution code:
import math
A, B, C = map(int, input().split())
D = B / A
if D < 1:
    D = 0
    print(D)
elif C > D:
    try:
        print(math.ceil(D))
    except:
        print(D)
else:
    print(C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
A, B, C = (int(x) for x in input().split())
total_fee, total_time = 0, 0
if B < A:
    print(total_time)
    sys.exit()
while True:
    total_fee += A
    total_time += 1
    if total_fee >= B or total_time == C:
        break
print(total_time)

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

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

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

Solution code:
a=list(input().split())
b=int(a[0])
c=int(a[1])
d=int(a[2])
e=c/b
if e>d:
  print(d)
elif d>e:
  print(e)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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()]
l = list(sdi)
l.reverse()
start = len(l)
i = 0
while len(l) - 1 >= i + 1:
    if l[i] != l[i + 1]:
        l.pop(i + 1)
        l.pop(i)
        i = max(i - 2, 0)
        continue
    i += 1
print(start - len(l))

Submission status: Wrong Answer

Solution code:
S=input()

c0=0

for i in range(len(S)):
    if S[i]=='0':
        c0+=1

if len(S)>c0*2:
    print(2*c0)
else:
    print((len(S)-c0)*2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

count = 0

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

count = B / A

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

Submission status: Wrong Answer

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


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

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())
n = int(a/b)
if n < c:
  print(n)
else:
  print(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 = list(map(int,input().split()))
for i in range(0,c):
    if (a*i) > b:
        c = i - 1
        break
if c == -1:
    c = 0
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def solve(s):
    odd = 0
    even = 0
    for c in s:
        if c == "0":
            even += 1
        else:
            odd += 1
    return 2*min(even, odd)

assert solve("0011") == 4
assert solve("11011010001011") == 12
assert solve("0") == 0

s = input()
print(solve(s))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

r = B%A
s = (B-r)/A

List = [C,s]
print(min(List))

Submission status: Wrong Answer

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

r = B%A
s = (B-r)/A

List = [C,s]
print(np.min(List))

Submission status: Wrong Answer

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

r = B%A
s = (B-r)/A

if C==s:
    print(C)
else:
    print(min(C,s))

Submission status: Wrong Answer

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

r = B%A
s = (B-r)/A

print(min(C,s))

Submission status: Wrong Answer

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

r = B%A
s = (B-r)/A

print(C,s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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