TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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?

Submission attempts (in order):
A,B,K = map(int,input().split())
hoge=[]

for i in range(1,101):
  if (A%i == 0 and B%i ==0):
    hoge.append(i)

print(hoge[K-1])


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

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A, B, C = map(int,input().split())
if C >= A // B:
  print(A // B)
else:
  print(C)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c=map(int,input());print(min(b//a,c))

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a, b, c = list(map(int, input().split()))
n = b % a
if a * c >= b:
  print(c)
else:
  print(int((b - n) / a))

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c = map(int,input().split())
print(b//a)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A,B,C=[int(i) for i in input().split()]
if A*C <B:
  print C
else:
  print B % A

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
info = input().split(' ')
num_one = int(info[0])
num_two = int(info[1])
num_class = int(info[2])
one_list = [i for i in range(1,num_one + 1) if num_one % i == 0]
two_list = [i for i in range(1,num_two + 1) if num_one % i == 0]
one_set = set(one_list)
two_set = set(two_list)
match_set = one_set & two_set
match_list = list(match_set)
match_list.sort()
print(match_list[num_class-1])

info = input().split(' ')
price = int(info[0])
money = int(info[1])
max_time = int(info[2])
times = money // price
if times <= max_time:
  print(times)
else:
  print(max_time)

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A,B,C = map(int, input().split())

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

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

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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A, B, C = map(int, input().split())

a = int(B/A)

if a >= C:
  print(C)
elif:
  print(a)

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

a = int(B/A)

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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A, B, C = map(int(),input().split())
print(min(B//A,C))

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

Verdicts: Runtime Error

Accepted
Problem: 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?

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

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

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

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c = int(input().split())
if b//a <= c:
    print(b//a)
else:
    print(c)

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c = map(int,input().split())
print(b // a)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
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)


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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A,B,C=map(int,input().split())
if A//B<C:
    print(A//B)
else :
    print(C)    


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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
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))

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)

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A, B, C = map(int, input().split())

num = B // A
print(num)


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

num = B // A

if num >= C:
    num == C

print(num)


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

num = B // A

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


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
import sys

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

O = int(B / A)

print(O)

import sys

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

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

print(O)

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b, c =map(int, input().split())
print(max(b//a, c))

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c=map(int,input().split())
print(max(c,b//a))

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A, B, K = map(int, input().split())
num = max(A, B)
a = [1]
cnt = 1
for i in range(1,num):
  if A % i == 0 and B % i == 0:
    cnt += 1
    a.append(i)
a.sort(reverse=True)
print(a[K])



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

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A,B,C = map(int, input().split())
if B//A > C
    print(C)
else:
    print(B//A)

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

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A, B, C = map(int, input().split())

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

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

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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c=map(int,input().split(' '))
if c<b//a:
    print(b//a)
else:
    print(c)


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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
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)

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)

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)

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A, B, C = map(int, input().split())
print(int(B/A)) if B/A <= C else(C)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
return math.min(math.floor(A/B), C)

A,B,C = input().split()
result = min(int(int(B)/int(A)), int(C))
print(result)


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A,B,C = input().split(' ')
d = int(A/B)
if d > C:
    print(C)
else:
    print(d)

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

Verdicts: Runtime Error

Accepted
Problem: 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?

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b, c = map(int, input().split())
print(min(a*c, b))

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

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

out = int(b / a)

if out > c:
    out = c

print(out)

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

from sys import stdin


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


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

out = int(b / a)

if out > c:
    out = c

print(out)

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c=map(int,input().split())
print(max(b//a,c))

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
[A,B,C]=list(map(int,input().sprit))

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

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c = map(int,input().split())
def w(a,b):
    li=[]
    d = max(a,b)
    for i in range(1,d//2+1):
        if a%(i) == 0 and b%(i)==0:
            li.append(i)
    #print(li)
    print(li[-c])
w(a,b)

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c = map(int,input().split())
if(a/b >=c):
    print(c)
else:
    print(int(a/b))


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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c = map(int,input().split())
i = int(0)
l = list()
if a > b:
    maxim = a
else:
    maxim = b
for i in range(1,100):
        if ((a % i) == 0) and ((b % i) == 0):
            l.append(i)
        elif maxim < i:
            break

n = int(len(l))
if c == 1:
    n = n
else:
    n -= c
print(l[n])

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

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
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

inp = list(map(int,input().split(" ")))
print(min(int(inp[1]/inp[0]),inp[2]))

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
# coding: utf-8

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

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

# coding: utf-8

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

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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A,B,C = map(int,input().split())
N = B//A
print(max(N,C))

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b, k = map(int, input().split())
divisers = []

for i in range(1, max(a, b) + 1):
    if a % i == 0 and b % i == 0:
        divisers.append(i)

print(divisers[-k])


a, b, k = map(int, input().split())
divisers = []

for i in range(1, min(a, b) + 1):
    if a % i == 0 and b % i == 0:
        divisers.append(i)

print(divisers[-k])


a, b, k = map(int, input().split())
divisers = []

for i in range(1, max(a, b) + 1):
    if a % i == 0 and b % i == 0:
        divisers.append(i)

print(divisers[-k])


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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c=map(int,input().split())
print(min(b%a,c))


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

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


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b, c = map(int, input().sprit())
print(min(c, b//a))

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a=list(map(int, input().split().split()))

if a[1]//a[0]>=a[2]:
    print(a[2])
else:
    print(a[1]//a[0])


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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a, b, c = map(int, input().split())

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

print(ans)


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

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

print(ans)


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A, B, K = map(int, input().split())

def divlist(x):
  numbers = []
  divX = []
  try:
    for i in range(1,x+1):
      numbers.append(i)
      if x % i == 0:
        divX.append(i)
    divX = set(divX)
    return divX
  except ZeroDivisionError:
      print("ZeroDivisionError!!")

divA = divlist(A)
divB = divlist(B)
common = sorted(list(divA & divB))

#print("divA:", divA)

#print("divC:", common)
print(common[K-1])

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

answer = 0

if B//A < C:
  answer = B//A
else:
  answer = C

print(answer)

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
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))



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



Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b,k = map(int,input().split())
lst = []
for i in range(1,101):
  if a%i==0 and b%i==0:
    lst.append(i)
print(sorted(lst)[len(lst)-k])

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A,B,C=list(map(int,input().split()))
print(max(B//A,C))

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
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)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b,c=map(int,input().split())
print(min(a//b,c))

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b, k = map(int, input().split())
i = a + 1 if a <= b else b + 1
count = 0
while count < k:
    i -= 1
    if a % i == 0 and b % i == 0:
        count += 1
print(i)

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a, b, c = list(map(int, input().split()))
print(min(b // a, c)

#include <bits/stdc++.h>
using namespace std;
#define incant() cin.tie(0), ios::sync_with_stdio(false)

#define uint unsigned long long

using str = string;
template <class T> using vec = vector<T>;
template <class T> using vvec = vec<vec<T>>;
template <class T> using que = queue<T>;
template <class T> using pque = priority_queue<T>;
template <class... T> using tup = tuple<T...>;
using vint = vec<int>;
using vvint = vvec<int>;
using vstr = vec<str>;
using pint = pair<int, int>;
using vp = vec<pint>;
using tll = tup<int, int, int>;
using vt = vec<tll>;
using mint = map<int, int>;
using dict = map<str, int>;
using qint = que<int>;
using qp = que<pint>;
using pqint = pque<int>;
using pqp = pque<pint>;
#define pb push_back
#define pob pop_back
#define pf push_front
#define pof pop_front

#define mt make_tuple
#define lb lower_bound






#define all(x) begin(x), end(x)

#define ms(v, x) memset(v, x, sizeof(v))
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)

#define rep(...) _overload3(__VA_ARGS__, repi, _rep,)(__VA_ARGS__)
#define _rev(i, n) revi(i, n, 0)

#define rev(...) _overload3(__VA_ARGS__, revi, _rev,)(__VA_ARGS__)
#define each(i, n) for(auto&& i: n)
#define out(x) cout << (x)
#define space() cout << " "
#define indent() cout << '\n'
#define print(x) out(x), indent()

#define YN(x) print((x) ? "YES" : "NO")
#define Yn(x) print((x) ? "Yes" : "No")
#define yn(x) print((x) ? "yes" : "no")
#define POS(x) print((x) ? "POSSIBLE" : "IMPOSSIBLE")
#define Pos(x) print((x) ? "Possible" : "Impossible")
#define pos(x) print((x) ? "possible" : "impossible")
const int INF = LLONG_MAX - INT_MAX, MOD = 1e9 + 7, LIMIT = 100001;
const int dx[] = {-1, 0, 1, 0}, dy[] = {0, -1, 0, 1};
// const int dx[] = {-1, 0, 1, -1, 1, -1, 0, 1}, dy[] = {-1, -1, -1, 0, 0, 1, 1, 1};
const double EPS = 1e-9;
int gcd(int a, int b){return b == 0 ? a : gcd(b, a % b);}
int lcm(int a, int b){return a / gcd(a, b) * b;}
int factorial(int a){return a < 2 ? 1 : factorial(a - 1) * a;}
int summation(int a){return a < 1 ? 0 : (a * a + a) / 2;}
int combination(int n, int r){int res = 1; rep(i, 1, r + 1) res *= n--, res /= i; return res;}
const str alphabet = "abcdefghijklmnopqrstuvwxyz";
int a, b, c, k, n, m, x, y, z, w, h;
str s, t;

signed main(){
    incant();
    while(cin >> a >> b >> c){
        int res = 0, cnt = 0, sum = 0, mx = -INF, mn = INF;
        bool flag = true;
        print(min(c, b / a));
    }
}


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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):

class UnionFind():
    def __init__(self, N):
        self.par = [i for i in range(N)]
        self.size = [1] * N
        self.N = N

    
    def root(self, x):
        if self.par[x] == x:
            return x
        else: 
            self.par[x] = self.root(self.par[x])
            return self.root(self.par[x])

    
    def same(self, x, y):
        rx = self.root(x)
        ry = self.root(y)
        return rx == ry

    
    def unite(self, x, y):
        rx = self.root(x)
        ry = self.root(y)
        if self.size[rx] < self.size[ry]:
            self.par[rx] = ry
            self.size[ry] += self.size[rx]
        else:
            self.par[ry] = rx
            self.size[rx] += self.size[ry]

n, m = (int(i) for i in input().split())
input_arr = [[int(i) for i in input().split()] for i in range(m)] 

uf = UnionFind(n)
#input_arr = [[1,2],[3,4],[1,3],[2,3],[1,4]]


result = [n*(n-1)/2]
for i in input_arr[::-1]:
    a = i[0]-1
    b = i[1]-1
    if not uf.same(a,b):
        x = uf.size[uf.root(a)] * uf.size[uf.root(b)]
        uf.unite(a,b)
        result.append(result[-1]-x)
    else:
        result.append(result[-1])

for i in result[::-1][1:]:
    print(i)




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

result = b / a
result = int(min(result, c))
print(result)

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
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)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
MOD = 10 ** 5
n, m = map(int, input().split())
kyori = [int(input()) for _ in range(n - 1)]
a = [int(input()) for _ in range(m)]
rui = [0] * n
for i in range(n - 1):
    rui[i + 1] = rui[i] + kyori[i]

ans = 0
tmp = 0
for i in range(m):
    ans += abs(rui[tmp] - rui[tmp + a[i]])
    tmp += a[i]

print(ans % MOD)

MOD = 10 ** 5
n, m = map(int, input().split())
kyori = [int(input()) for _ in range(n - 1)]
a = [int(input()) for _ in range(m)]
rui = [0] * n
for i in range(n - 1):
    rui[i + 1] = rui[i] + kyori[i]

ans = 0
tmp = 0
for i in range(m):
    ans += abs(rui[tmp] - rui[tmp + a[i]]) % MOD
    tmp += a[i]

print(ans % MOD)

MOD = 10 ** 5
n, m = map(int, input().split())
kyori = [int(input()) for _ in range(n - 1)]
a = [int(input()) for _ in range(m)]
rui = [0] * n
for i in range(n - 1):
    rui[i + 1] = rui[i] + kyori[i]

ans = 0
tmp = 0
for i in range(m):
    ans += abs(rui[tmp] - rui[tmp + a[i]])
    tmp += a[i] % MOD

print(ans % MOD)

MOD = 10 ** 5
n, m = map(int, input().split())
kyori = [int(input()) for _ in range(n - 1)]
a = [int(input()) for _ in range(m)]
rui = [0] * n
for i in range(n - 1):
    rui[i + 1] = rui[i] + kyori[i]

ans = 0
tmp = 0
for i in range(m):
    ans += abs(rui[tmp] - rui[tmp + a[i]]) % MOD
    tmp += a[i]

print(ans % MOD)

inData = input().split(' ')

ans = 0
count = 0
maxCount = int(inData[2])
many = int(inData[1])
nedan = int(inData[0])

for i in range(0, maxCount):
    if nedan <= many:
        if count < maxCount:
            ans += 1
            many -= nedan
        else:
            break
    else:
        break

print(ans)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A,B,C = map(int,input())
print(max(B//A,C))


A,B,C = map(int,input())
print(B//A,C)

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


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


Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
N, M = list(map(int, input().split()))
AB = [list(map(int, input().split())) for _ in range(M)]

roots = [(i,1) for i in range(N+1)] # root, num_islands_in_group

inconveniences = [0]*(M+1)
inconveniences[-1] = N*(N-1)//2 

def find_root(a, roots=roots):
  if roots[a][0] == a:
    return roots[a]
  else:
    roots[a] = find_root(roots[a][0])
  return roots[a]

def reduce_inconvenience_with_unite(a, b, roots=roots):
  root_a, n_a = find_root(a)
  root_b, n_b = find_root(b)
  if root_a == root_b:
    return 0
  else:
    if n_a > n_b:
      roots[root_a] = (root_a, n_a + n_b)
      roots[root_b] = (root_a, n_a + n_b)
    else:
      roots[root_a] = (root_b, n_a + n_b) 
      roots[root_b] = (root_b, n_a + n_b)
    return n_a * n_b

for i, ab in enumerate(AB[:0:-1]): 
  a, b = ab
  inconveniences[M-1-i] = inconveniences[M-i] - reduce_inconvenience_with_unite(a,b)

for inc in inconveniences[1:]:
  print(inc)


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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
#!/usr/bin/env python3


#!/usr/bin/env python3
a,b,c = map(int,input().split())
print(min(b//a,c))


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
def main():
    A=int(input())
    B=int(input())
    C=int(input())
    if (A/B) < C:
        print(int(B/A))
    else:
        print(C)

main()

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

main()

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A, B, C = list(map(int, input().split()))
ans = min(C, A//B)
print(ans)


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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
def main():
  A, B, C = input().split(" ")
  count = B // A
  return min(count, C)
  
if __name__ == '__main__':
  main()

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

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
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))


N = list(map(int,input().split()))
#print(N)
ans = int(N[1]/N[0])
print(min(ans,N[2]))

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A=int(input())
B=int(input())
C=int(input())
while A<1 or A>100 or B<1 or B>100 or C<1 or C>100:
	A=int(input())
    B=int(input())
    C=int(input())
D=B//A-C
if D>0:
  print(C)
else:
  print(B//A)


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)

A=int(input())
B=int(input())
C=int(input())
while A<1 or A>100 or B<1 or B>100 or C<1 or C>100:
 A=int(input()),B=int(put()),C=int(input())
D=B//A-C
if D>0:
  print(C)
else:
  print(B//A)

A=int(input()),B=int(put()),C=int(input())
while A<1 or A>100 or B<1 or B>100 or C<1 or C>100:
 A=int(input()),B=int(put()),C=int(input())
D=B//A-C
if D>0:
  print(C)
else:
  print(B//A)

A=int(input())
B=int(input())
C=int(input())
while A<1 or A>100 or B<1 or B>100 or C<1 or C>100:
	A=int(input())
    B=int(input())
    C=int(input())
D=B//A-C
if D>0:
  print(C)
else:
  print(B//A)

A=int(input())
B=int(input())
C=int(input())
D=B//A-C
if D>0:
  print(C)
else:
  print(B//A)

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A,B,C=map(int,input().split())


min(int(B/A),C)

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


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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b, c=map(int, input().split())
if a-b*c>=0:
  print(c)
else:
  print(b//a)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
str = int(input()).split()
a = str[0]
b = str[1]
c = str[2]

if b / a > c:
	print(c)

else:
	print(int(b / a))

str = input().split()
a = int(str[0])
b = int(str[1])
c = int(str[2])
 
if b // a > c:
	print(c)
else:
	print(b // a)

Verdicts: Runtime Error

Accepted