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())
answer = 0
if A <= B:
    while B > 0:
        B -= A
        C -= 1
        answer += 1
        if C == 0:
            break
print(answer)

Submission status: Wrong Answer

Solution code:
A, B, K = map(int, input().split())
#A, B, K = 12, 8, 2


if A > B:
	tmp = B
	B = A
	A = tmp
	#print(A,B)

count = 0
ans = 0

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

while B > A and C != ans:
    B -= A
    ans += 1
print(ans)

Submission status: Wrong Answer

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

while B > 0 and C != ans:
    B -= A
    ans += 1
print(ans)

Submission status: Wrong Answer

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

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:
sound = input()
A, B, C =sound.split()

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

else:
        print (C)

Submission status: Wrong Answer

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

# 入力された文字列
string = input()

# 最大処理数。100000以下なら文字列長。
max = min(len(string), 100000)

# 削除した文字数
del_count = 0

# 削除があった場合True
del_flg = True

# 削除文字がなくなるまでループする
while del_flg:
    del_flg = False

    # 
    for idx in range(max):
        if idx == max or idx > max:
            break
            
        # 照合対象の文字を切り出す
        target = string[idx : idx + 2]
        
        if target == "01" or target == "10":
            # 削除文字に一致した場合、元の文字列からそれを削除しカウントを進め、
            # 削除フラグを立てる
            string = string[:idx] + string[idx + 2:]
            del_count += 2
            max -= 2
            del_flg = True

print(del_count)

Submission status: Wrong Answer

Solution code:
import sys
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip() # ignore trailing spaces

a,b,c = na()
d = 0
e = 0
while(1):
  if e == c:
    break
  if d > b:
    e -= 1
    break
  d += a
  e += 1
  
print(e)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = (int(x) for x in input().split())
for i in range(100,1,-1):
    if a % i == 0 and b % i == 0:
        c -= 1
        if c == 0:
            print(i)

Submission status: Wrong Answer

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

counter = 0

string = input()

num_0 = string.count("0")
num_1 = string.count("1")

print(min(num_0, num_1)*2)

Submission status: Wrong Answer

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

for i in range(min(a, b), 1, -1):
    if a % i == 0 and b % i == 0:
        k -= 1
        if k == 0:
            print(i)

Submission status: Wrong Answer

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

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

print(b//a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# S = input()
# print('Heisei' if S <= '2019/04/30' else 'TBD')

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

Submission status: Wrong Answer

Solution code:
A,B,K=map(int,input().split())
i=1
j=2
if A%j==0 and B%j==0 and i<K:
  i+=1
  j+=1
print(j)

Submission status: Wrong Answer

Solution code:
S = input()
A = S.count('0')
B = S.count('1')
print(2*min(A,B))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

strings = str(input())
strings_list = []
for s in strings:
    strings_list.append(s)



flag = 1
num = 0
while flag == 1:
    flag = 0
    for i in range(len(strings_list) - 1):
        if strings_list[i] != strings_list[i + 1]:
            del strings_list[i+1], strings_list[i]
            num += 2
            flag = 1
            break

print(num)

Submission status: Wrong Answer

Solution code:
import sys

strings = str(input())
strings_list = []
for s in strings:
    strings_list.append(s)



flag = 1
num = 0
middle = 0
while flag == 1:
    flag = 0
    for i in range(middle, len(strings_list) - 1):
        if strings_list[i] != strings_list[i + 1]:
            del strings_list[i+1], strings_list[i]
            num += 2
            flag = 1
            break

print(num)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

temp = 0
temp1 = 0
divisor = []
counter = 0

if A >= B:
  temp = A
  temp1 = B

else:
  temp = B
  temp1 = A

for i in range(1,temp1):
  if temp1 % i == 0 and i != temp1:
    divisor.append(i)

print(divisor)
for j in (reversed(divisor)):
  if temp % j ==0:
    counter += 1
    if counter == times:
      print(j)
      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 = [int(x) for x in input().split()]
print(min(a//b, c))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
string = input()
one = 0
zero = 0
for s in string:
    if s == '1':
        one += 1
    else:
        zero += 1

print(2*min(one, zero))

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:
class Solution:
  def solve(self, A, B, C):
    count = 0
    spent = 0
    while B >= 0:
      B -= A
      count += 1
      if count == C:
        return C
    return count

def main():
  inputs = input()
  inputs = inputs.split()
  inputs = [int(e) for e in inputs]
  A, B, C = inputs
  print(Solution().solve(A, B, C))
        
if __name__ == "__main__":
   main()

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import deque
S =input()
counter = 0
S = list(S)
q = deque([])
for i in range(len(S)):
    q.append(S[i])
for i in range(1000000):
    if q:
        s1 = q.pop()
    else:
        break
    if q:
        s2 = q.pop()
    else:
        break
    if(s1 != s2):
        counter+=2
    else:
        q.appendleft(s1)
        q.append(s2)
print(counter)

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import queue
counter = 0
S = input()
S = list(S)
q = queue.Queue()
flg = 1
for i in range(len(S)):
  q.put(S[i])
for i in range(10000):
  if(q.empty()):
    break
  else:
    if (flg == 1):
      s1 = q.get()
    s2 = q.get()
    if (s1 != s2):
      counter+=2
      flg = 1
    else:
      s1 = s2
      flg = 0
print(counter)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Solution code:
from collections import Counter
cnt=Counter(raw_input())
print 2*min(cnt['0'],cnt['1'])

Submission status: Wrong Answer

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

if a%b > c:
    print(c)
else:
    print(a%b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, C = [int(i) for i in "1 2 3".split()]
ans = min(B//A, C)
print(ans)

Submission status: Wrong Answer

Solution code:
S = []
ans = 0
for c in input():
    if (len(S) > 0) and (c != S[-1]):
        S.pop()
        ans += 2
    else:
        S.append(c)
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

count = 0
index = -1

print(2 * min(S.count("0"), S.count("1")))

Submission status: Wrong Answer

Solution code:
s=str(input())
print(min(s.count('0'),s.count('1'))*2)

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l = raw_input().split()
s = l[0]

def get_removals(s):
    ret = []
    for i in range(len(s) - 1):
        if int(s[i]) + int(s[i + 1]) == 1:
            ret.append(i)
    return ret

def remove(s, index):
    if index == 0:
        return s[2:]
    if index == (len(s) - 1):
        return s[:index-1]
    return  s[0:index] + s[index + 2:]

num_removals = []

ones = 0
zeros = 0
for num in s:
    if num == '0':
        ones += 1
    if num == '1':
        zeros += 1
max_candidate = min(ones, zeros) * 2

def process(s, count):
    removals = get_removals(s)
    if len(removals) == 0:
        num_removals.append(count)
        if count == max_candidate:
            print(max_candidate)
            exit()
        return
    count += 2
    max_remove = 0
    ss = []
    for removal in removals:
        s1 = remove(s, removal)
        ss.append(s1)
        num_removes = len(get_removals(s1))
        if max_remove < num_removes:
            max_remove = num_removes
    for s1 in set(ss):
        if len(get_removals(s1)) == max_remove:
            process(s1, count)

# process(s, 0)
print(max_candidate)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())
count0= 0
count1 = 0
for i in range(len(list(s))):
    if s[i] == '0':
        count0 += 1
    else:
        count1 += 1
print(min(count1,count0)*2)

Submission status: Wrong Answer

Solution code:
import re

si = input()

def count_zeroone(s, c):
  f_l = s.count('01')
  if(f_l > 0):
    s = re.sub('01','',s)
  f_r = s.count('10')
  if(f_r > 0):
    s = re.sub('10','',s)
  if(f_l > 0 or f_r > 0):  
    return count_zeroone(s, (c+f_l+f_r))
  else:
    return (c)
print( (count_zeroone(si, 0) * 2 ) )

Submission status: Wrong Answer

Solution code:
s = input()
count = 0

for i in range(5):
    if not(("01" in s) | ("10" in s)):
        break
    if "01" in s:
        count += 2 * s.count("01")
        s = s.replace("01", "")
    elif "10" in s :
        count += 2 * s.count("10")
        s = s.replace("10", "")

print(count)

Submission status: Wrong Answer

Solution code:
s = input()
count = 0

for i in range(1000):
    if not(("01" in s) | ("10" in s)):
        break
    if "01" in s:
        count += 2 * s.count("01")
        s = s.replace("01", "")
    else :
        count += 2 * s.count("10")
        s = s.replace("10", "")

print(count)

Submission status: Wrong Answer

Solution code:
import re

si = input()

def count_zeroone(s, c):
  if(s.count('01') > 0 or s.count('10') > 0):
    f_r = s.count('10')
    s = re.sub('10','',s)
    f_l = s.count('01')
    s = re.sub('01','',s)
    return count_zeroone(s, (c+f_l+f_r))
  else:
    return (c)
print( (count_zeroone(si, 0) * 2 ) )

Submission status: Wrong Answer

Solution code:
x = input()
cnt1 = 0
cnt2 = 0
for i in x:
  if i == '1':
    cnt1 += 1
  else:
    cnt2 += 1
print(min(cnt1, cnt2)*2)

Submission status: Wrong Answer

Solution code:
import re

si = input()

def count_zeroone(s, c):
  f_l = s.count('01')
  if(f_l > 0 or s.count('10') > 0):
    s = re.sub('01','',s)
    f_r = s.count('10')
    s = re.sub('10','',s)
    return count_zeroone(s, (c+f_l+f_r))
  else:
    return (c)
print( (count_zeroone(si, 0) * 2 ) )

Submission status: Wrong Answer

Solution code:
S = list(input())
N = len(S)

c=0
i=0
f=0
while(1):
    if S[i] != S[i+1]:
        del S[i:i+2]
        c+=2
        N-=2
        i-=1
        f=1
    if N<2:
        break
    i+=1
    if i+1 == N:
        i=0
        if f==0:
            break
        f=0
    print(i,N,S,f)
print(c)

Submission status: Wrong Answer

Solution code:
a,b,k = map(int,input().split())
j=0
for i in range(100,0):
  A=a%i
  B=b%i
  if A==0:
    if B==0:
      j+=1
      print(i)
  if j==k:
    print(i)
    break

Submission status: Wrong Answer

Solution code:
in_s = input().rstrip()
lst = list(in_s)
cur=0
while True:
    if cur+1 >= len(lst):
        break
    if lst[cur]!=lst[cur+1]:
        del lst[cur+1]
        del lst[cur]
        cur = max(0,cur-1)
    else:
        cur+=1

print(len(in_s) - len(lst))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
S = list(S)
count = 0


previousCount = 0
while(1) :
    if len(S) < 2:
        break
    
    if S[0] != S[1] :
        S.pop(0)
        S.pop(0)
        count+=2
    
    for i in range(1,len(S)-2) :
        if S[i] != S[i+1] :
            if S[i-1] != S[i+2] :
                S.pop(i)
                S.pop(i)
                count +=2
                break
    if previousCount == count :
        break
    previousCount = count
            
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
N = len(S)
 
for _ in range(N):
    S = S.replace('01', '').replace('10', '')
 
print(N - len(S))

Submission status: Wrong Answer

Solution code:
# 時差で出れんかったww

Submission status: Wrong Answer

Solution code:
s = str(input())
ss = s
for i in range(int(100000/2+1)):
	ss = ss.replace('01', '')
	ss = ss.replace('10', '')

print(len(s)-len(ss))

Submission status: Wrong Answer

Solution code:
s = input()
length=len(s)
l = int(len(s)/2)
def erase_01_10(moji):
  moji = moji.replace('01','').replace('0011','').replace('000111','')
  moji = moji.replace('10','').replace('1100','').replace('111000','')
  return moji
for i in range(l):
  if s == erase_01_10(s):
    break
  s = erase_01_10(s)
print(length-len(s))

Submission status: Wrong Answer

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(times_A)
    else:
        print(yen[2])

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:
import re
s=input()
m=0
for i in range(len(s)//2):
  dst = re.sub(r'01|10', "", s)
  dst = re.sub(r'0000000000011111111111|1111111111100000000000', "", dst)
  if dst == s:
    break
  m += len(s) - len(dst)
  s=dst
print(m)

Submission status: Wrong Answer

Solution code:
S = input()
S_list = list(S)

count0 = S_list.count("0")
count1 = S_list.count("1")

print(len(S_list) - abs(count0-count1))

Submission status: Wrong Answer

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

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

Solution code:
S=input()
count=0
while True:
    D=S.replace("10","").replace("01","")
    a=abs(len(S)-len(D))
    count+=a
    if a==0:
        print(count)
        break
    S=D

Submission status: Wrong Answer

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

AC = A * C
BA = B / A

if AC <= B:
  print(C)
elif AC > B:
  print(round(BA))

Submission status: Wrong Answer

Solution code:
s=input()
a=0
b=0
for i in range(len(s)):
    if s[i]=='0':
        a=a+1
    else:
        b=b+1

if a>b:
    print(2*b)
else:
    print(2*a)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
cnt=0

for i in range(len(s)//2):
    if '10' in s:
        cnt+=2 * s.count('10')
        s=s.replace('10', '') 
    elif '01' in s:
        cnt+=2 * s.count('01')
        s=s.replace('01', '') 
print(cnt)

Submission status: Wrong Answer

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

while (b > a * count):
    if c <= count:
    	break
    else:
        count += 1
print(count)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys

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

O = int(B / A)

print(O)

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= 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)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
inp = list(map(int,input().split(" ")))
i = min(inp[0],inp[1])
k_=0
for k in range(1,i+1):
  if inp[0]%k ==0:
    if inp[1]%k==0:
    	k_+=1
  if k_ == inp[2]:
    print(int(i/k))
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
a=len(s)
b=10**5+1
while True:
#    print(a,b)
    b=len(s)
    s=s.replace("10","")
    s=s.replace("01","")
    c=len(s)
    if c==b:
        break
print(a-c)

Submission status: Wrong Answer

Solution code:
A,B,K=(int(x) for x in input().split())
count=0
result=0
for i in reversed(range(1,min([A,B])+1)):
  if A%i==0 and B%i==0:
    count+=1
  if count==K:
    result=i
print(result)

Submission status: Wrong Answer

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

for i in range(10000):
    if B > A:
        B-A*i
        continue
    if B < A:
        print(i)
        break

Submission status: Wrong Answer

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]):
        if l[0] * i > l[1]:
            break
    print(i-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def sol(a, b, c):
  return max(int(b/a), c)

Submission status: Wrong Answer

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

AC = A * C
BA = B / A

if AC < B:
  print(C)
elif AC >= B:
  print(round(BA))

Submission status: Wrong Answer

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

a=0
for i in range(C+1):

    B=B-A
    a+=1
    if B<=0:
        break
print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
  A, B, C = map(int, input().split(" "))
  count = B // A
  return min(count, C)
  
if __name__ == '__main__':
  main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A, B, C = [int(s) for s in input().split(" ")]
for i in range(C):
  B -= A
  if B<0:
    i += 1
    break
print(i)

Submission status: Wrong Answer

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

ans = 0

if (b < a):
    ans = 0
elif (b / a < c):
    ans = b / a
else:
    ans = c

print(ans)

Submission status: Wrong Answer

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

num = a // b

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

Submission status: Wrong Answer

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

a=0
for i in range(C):

    B=B-A
    a+=1
    if B<0:
        break
print(a)

Submission status: Wrong Answer

Solution code:
from sys import stdin


def a(input_string):
    print(input_string)
    favorite_sound_fee ,my_money, count = [int(x) for x in input_string.split()]
    hear_count = 0
    while(hear_count < count and my_money >= favorite_sound_fee):
        my_money -= favorite_sound_fee
        hear_count += 1
    return hear_count


def main():
    input_line = stdin.readline().rstrip()
    answer = a(input_line)
    print(answer)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

AC = A * C
BA = B / A

if AC < B:
  print(C)
elif AC >= B:
  if BA >= 1:
    print(round(B / A))
  elif BA < 1:
    print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

num = 11 // 2

if num <= c:
  print(num)
else:
  print(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())

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

Submission status: Wrong Answer

Solution code:
A, B, C = [int(s) for s in input().split(" ")]
for i in range(C):
  B -= A
  if B<0:
    break
print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A, B, C = [int(s) for s in input().split(" ")]
for i in range(C):
  B -= A
  if B<0:
    break
print(i+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

main()

Submission status: Wrong Answer

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

AC = A * C
BA = B / A

if AC <= B:
  print(C)
elif AC > B:
  if BA >= 1:
    print(round(B / A))
  elif BA < 1:
    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:
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())

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = 0

if ( b / a < 1 ):
    ans = 0
elif (b / a < c):
    ans = c
else:
    ans = b / a

Submission status: Wrong Answer

Solution code:
a, b, c = [int(x) for x in input().split()]
if 0 in [a, b, c]:
    print(0)
elif a*c <= b:
    print('{0:.0f}'.format(c))
else:
    print('{0:.0f}'.format(b/a))

Submission status: Wrong Answer

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

num = B // A

if num >= C:
    num == C

print(num)

Submission status: Wrong Answer

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

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