Harryxun/GPT-100-sft-dataset huggingface dataset:
Problem p03485 (python)

Fixed submission:
import math

def solv():
    a, b = map(int, input().split())
    x = (a + b)/2
    if (math.floor(x * 10) % 10 >= 5):
        print(math.floor(x)+1)
    else:
        print(math.floor(x))

if __name__ == '__main__':
    solv()

Buggy submission (verdict: Runtime Error):
def solv():
    s = sorted(input())
    t = sorted(input(),reverse=True)

    if(s<t):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    solv()

Buggy submission (verdict: Runtime Error):
def solv():
    s = ''.join(sorted(input()))
    t = ''.join(sorted(input(),reverse=True))

    if(s<t):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    solv()

Buggy submission (verdict: Runtime Error):
def solv():
    s = ''.join(sorted(input()))
    t = ''.join(reversed(sorted(input())))

    if(s<t):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    solv()

Buggy submission (verdict: Runtime Error):
def solv():
    s = ''.join(sorted(input()))
    t = ''.join(sorted(input()))[::-1]

    if(s<t):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    solv()

Buggy submission (verdict: Runtime Error):
def solv():
    s = ''.join(sorted(input()))
    t = ''.join(sorted(input()))[::-1]

    if(s<t):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    solv()
Problem p03544 (python)

Fixed submission:
N = int(input())
# N = 86


def f(n):
    if n == 0:
        return 2
    elif n == 1:
        return 1
    elif n == 2:
        return 3
    return 2 * f(n - 2) + f(n - 3)


def g(n):
    L = [0] * (n + 1)
    L[0] = 2
    L[1] = 1
    for i in range(2, n + 1):
        L[i] = L[i - 1] + L[i - 2]

    return L[-1]


print(g(N))

Buggy submission (verdict: Runtime Error):
N = input()
# N = 86


def f(n):
    if n == 0:
        return 2
    elif n == 1:
        return 1
    elif n == 2:
        return 3
    return 2 * f(n - 2) + f(n - 3)


def g(n):
    L = [0] * (n + 1)
    L[0] = 2
    L[1] = 1
    for i in range(2, n + 1):
        L[i] = L[i - 1] + L[i - 2]

    return L[-1]


print(g(N))
Problem p03493 (python)

Fixed submission:
snuke=input()
num=0
for i in snuke:
  if i=='1':
    num += 1
print(str(num))

Buggy submission (verdict: Runtime Error):
snuke=input()
num=0
for i in list(snuke):
  if i=='1':
    num++
print(str(num))
Problem p03494 (python)

Fixed submission:
n=int(input())
i=0
num=input().split()
t=True
while t==True:
  for j in range(n):
    if int(num[j])%2==1:
      t=False
      break
    else:
      num[j]=int(num[j])/2
  i += 1
print(i-1)

Buggy submission (verdict: Runtime Error):
n=int(input())
num=[]
i=0
while n>0
  num.add(int(input()))
  n -= 1
while True:
  for j in num:
    if j%2==1:
      print(i)
      break
    else:
      j=j/2
  i += 1
Problem p03485 (python)

Fixed submission:
a, b = map(int, input().split())
V = (a+b)/2
if (a+b)%2==0:
    print(int(V))
else:
    v =int((a + b)/2 + (1 - ((a + b)/2 - int((a + b)/2))))
    print(v)

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
V = (a+b)/2
if (a+b)%2==0:
    print(int(V)
else:
    v =int((a + b)/2 + (1 - ((a + b)/2 - int((a + b)/2))))
    print(v)
Problem p03501 (python)

Fixed submission:
N, A, B = map(int, input().split())

NA = N * A
if NA > B:
    print(B)
else:
    print(NA)

Buggy submission (verdict: Runtime Error):
N = input()
S = len(N)
f = 0
if int(N)==0:
    print("No")
else:
    for i in range(S) :
        f = f + int(N[i])

if int(N)%f==0:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
N = input()
S = len(N)
sen = int(N) / 1000
hyaku =( int(N) - sen*1000 ) / 100
zyuu = (int(N) - sen*1000- hyaku*100) / 10
iti = int(N) - sen*1000- hyaku*100- zyuu*10

f = sen + hyaku + zyuu + iti

if int(N)%f==0:
    print("Yes")
else:
    print("No")
Problem p03609 (python)

Fixed submission:
X ,t=map(int,input().split())

if X-t>0:
    print(X-t)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
X = int(input())
t = int(input())

if X-t>0:
    print(X-t)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
X = int(input())
t = int(input())

print(max(X - t, 0))
Problem p03489 (python)

Fixed submission:
length = input()
nums = input().split(" ")

numdict = {}
for i, num in enumerate(nums):
	if num not in numdict:
		numdict[str(num)] = 1
	else:
		numdict[str(num)] += 1

ret = 0
for k,v in numdict.items():
	if int(k) > int(v):
		ret += int(v) 
	else:
		ret += int(v) - int(k)

print(ret)

Buggy submission (verdict: Runtime Error):

length = raw_input()
nums = raw_input().split(" ")

numdict = {}
for i, num in enumerate(nums):
	if num not in dic:
		dic[num] = 1
	else:
		dic[num]++

ret = 0
for k,v in numdict.iteritems():
	if k > v:
		 += k - v 
	else:
		ret += v - k

print(ret)
Problem p03609 (python)

Fixed submission:
inputArr = input().split(" ")
X =  inputArr[0]
t =  inputArr[1]
remain_sand = int(X) - int(t)
if remain_sand > 0 :
  print(remain_sand)
else :
  print(0)

Buggy submission (verdict: Runtime Error):
inputArr = input().split(" ")
X =  inputArr[0]
t =  inputArr[1]
remain_sand = int(X - t)
if remain_sand > 0 :
  print(remain_sand)
else :
  print(0)
Problem p03605 (python)

Fixed submission:
a = list(input())
if "9" in a:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
n = int(input())
a = []
ans = 0
for i in range(n):
    a.append(int(input()))
set_a = set(a)
for i in set_a:
    ans += a.count(i) % 2
print(ans)
Problem p03624 (python)

Fixed submission:
import string
s = list(input())
a = list(string.ascii_lowercase)
l = []
for index, i in enumerate(a):
    if i not in s:
        print(i)
        break
else:
    print(None)

Buggy submission (verdict: Runtime Error):
import string
s = list(input())
a = list(string.ascii_lowercase)
l = []
s.sort()
if s == a:
    print("None")
else:
    for index, i in enumerate(a):
        if i not in s:
            l.append(i)
    print(min(l))

Buggy submission (verdict: Runtime Error):
import string
s = list(input())
a = list(string.ascii_lowercase)
l = []
s.sort()
if s == a:
    print("None")
else:
    for index, i in enumerate(a):
        if i not in s:
            l.append(i)
    print(min(l))
Problem p03657 (python)

Fixed submission:
a, b = map(int, input().split())
print("Possible" if (a+b)%3==0 or a%3==0 or b%3==0 else "Impossible")

Buggy submission (verdict: Runtime Error):
a, b = map(int, input())
print("Possible" if (a+b)%3==0 or a%3==0 or b%3==0 else "Impossible")
Problem p03493 (python)

Fixed submission:
a= input()
ans = 0
if (a[0] == '1'):
    ans = ans+1
if (a[1] == '1'):
    ans = ans+1
if (a[2] == '1'):
    ans = ans+1
print(ans)

Buggy submission (verdict: Runtime Error):
b = list(map(int, input().split()))
a = str(b)
ans = 0
if (a[1] == '1'):
    ans = ans+1
if (a[2] == '1'):
    ans = ans+1
if (a[3] == '1'):
    ans = ans+1
print(ans)
Problem p03494 (python)

Fixed submission:
N = int(input())
a = list(map(int, input().split()))

ans=0
flag=0
while True:
    for i in range(N):
        if(a[i]%2 == 1):
            flag=1
    if flag == 1:
        break
    ans = ans+1

    for i in range(N):
        a[i] = a[i]/2

print(ans)

Buggy submission (verdict: Runtime Error):
N = int(input())
a = []
a.append(list(map(int, input().split())))

ans=0
while True:
    for i in range(N):
        if(a[i]%2 == 1):
            break:
    ans = ans+1

    for i in range(N):
        a[i] = a[i]/2

print(ans)
Problem p03493 (python)

Fixed submission:
a = list(input())
count = 0
for i in a:
    if i == "1": count += 1
print(count)

Buggy submission (verdict: Runtime Error):
a = list(input())
count = 0
for i in a:
  if a[i] == 1: count += 1
print(count)
Problem p03597 (python)

Fixed submission:
x=int(input())
y=int(input())
print(x**2-y)

Buggy submission (verdict: Runtime Error):
x=int(input())
y=int(input())
Print(x*x-y)
Problem p03493 (python)

Fixed submission:
print(input().count("1"))

Buggy submission (verdict: Runtime Error):
s1, s2, s3 = map(int,input().split())
list = [s1,s2,s3]
a = list.count(1)
print(a)

Buggy submission (verdict: Runtime Error):
s1, s2, s3 = map(int,input().split())
list = [s1,s2,s3]
a = list.count(1)
print(a)

Buggy submission (verdict: Runtime Error):
s1 s2 s3 = map(int,input().split())
list = [s1,s2,s3]
print(list.count[1])
Problem p03493 (python)

Fixed submission:
# 番号入力
s = int(input())
# 百の位
a = s//100
# 十の位
b = (s%100)//10
# 一の位
c = s%10
# 1の数を出力
n = a + b + c
print(n)

Buggy submission (verdict: Runtime Error):
a, b = input().split()
if (int(a)*int(b))%2 == 0:
    print ("Even")
else:
    print ("Odd")
Problem p03493 (python)

Fixed submission:
s = input()
count = 0


if s[0] == '1':
  count += 1
  
if s[1] == '1':
  count += 1
  
if s[2] == '1':
  count += 1
  
print(count)

Buggy submission (verdict: Runtime Error):
s1, s2, s3 = map(int, input().split())
count = 0
if s1 == 1:
  count++
if s2 == 1:
  count++
if s3 == 1:
  count++
print(count)

Buggy submission (verdict: Runtime Error):
s1, s2, s3 = input().split()
count = 0
if s1 == 1:
  count++
if s2 == 1:
  count++
if s3 == 1:
  count++
print(count)
Problem p03493 (python)

Fixed submission:
s=input()
print(s.count('1'))

Buggy submission (verdict: Runtime Error):
S=input()
print(s.count('1'))
Problem p03597 (python)

Fixed submission:
# N,A = map(int, input().split())
N = int(input())
A = int(input())
B = N * N - A
print(B)

Buggy submission (verdict: Runtime Error):
N, A = int(input().split())
B = N * N - A
print(B)

Buggy submission (verdict: Runtime Error):
N, A = map(int, input().split())
B = N * N - A
print(B)

Buggy submission (verdict: Runtime Error):
N,A = map(int, input().split())
B = N * N - A
print(B)

Buggy submission (verdict: Runtime Error):
N,A = int(input().split())
B = N * N - A
print(B)
Problem p03657 (python)

Fixed submission:
A,B = map(int, input().split())
print('Possible' if (A % 3 == 0) or (B % 3 == 0) or ((A + B) % 3 == 0) else 'Impossible')

Buggy submission (verdict: Runtime Error):
A,B = map(int, input().split())
print('Possible' if 0 in (A % 3 or B % 3 or (A + B) % 3) else 'Impossible')

Buggy submission (verdict: Runtime Error):
A,B = map(int, input().split())
print('Possible' if (A % 3 or B % 3 or (A + B) % 3) in 0 else 'Impossible')

Buggy submission (verdict: Runtime Error):
A,B = map(int, input().split())
print('Possible' if 0 in (A % 3 or B % 3 or (A + B) % 3) else 'Impossible')

Buggy submission (verdict: Runtime Error):
A,B = map(int, input().split())
print('Possible' if (A % 3 = 0) or (B % 3 = 0) or ((A + B) % 3 = 0) else 'Impossible')

Buggy submission (verdict: Runtime Error):
A,B = map(int, input().split())
print('Possible' if A % 3 = 0 or B % 3 = 0 or (A + B) % 3 = 0 else 'Impossible')

Buggy submission (verdict: Runtime Error):
A,B = map(int, input().split())
print('Possible' if (A % 3 or B % 3 or (A + B) % 3) = 0 else 'Impossible')

Buggy submission (verdict: Runtime Error):
A,B = map(int, input().split())
print('Possible' if (A or B or A + B) % 3 = 0 else 'Impossible')
Problem p03777 (python)

Fixed submission:
a, b = input().split()
print('H') if a == b else print('D')

Buggy submission (verdict: Runtime Error):
# a, b = map(int, input().split())
a = input()
b = input()

if b is 'H':
  print('H') if a is 'H' else print('D')
else:
  print('D') if a is 'H' else print('H')

Buggy submission (verdict: Runtime Error):
# a, b = map(int, input().split())
a = input()
b = input()

if b == 'H':
  print('H') if a == 'H' else print('D')
else:
  print('D') if a == 'H' else print('H')

Buggy submission (verdict: Runtime Error):
# a, b = map(int, input().split())
a = int(input())
b = int(input())

if b == 'H':
  print('H') if a == 'H' else print('D')
else:
  print('D') if a == 'H' else print('H')

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
if b == 'H':
  print('H') if a == 'H' else print('D')
else:
  print('D') if a == 'H' else print('H')
Problem p03795 (python)

Fixed submission:
N = int(input())
print(N * 800 - N //15 * 200)

Buggy submission (verdict: Runtime Error):
N = input()
x = N * 800
y = N / 15 * 200
print(x - y)

Buggy submission (verdict: Runtime Error):
x = 800 * N
y = N / 15 * 200
price = x - y
print(price)
Problem p03826 (python)

Fixed submission:
A,B,C,D = map(int, input().split())
print(max(A*B,C*D))

Buggy submission (verdict: Runtime Error):
# A,B,C,D = int(input()) for i in range(4)
A = int(input())
B = int(input())
C = int(input())
D = int(input())
AB = A * B
CD = C * D

if AB > CD:
  print(AB)
elif CD > AB:
  print(CD)
else:
  print(AB)

Buggy submission (verdict: Runtime Error):
# A,B,C,D = int(input()) for i in range(4)
A = int(input())
B = int(input())
C = int(input())
D = int(input())
AB = A * B
CD = C * D

if AB == CD:
  print(AB)
else:
  print(AB) if AB > CD else print(CD)

Buggy submission (verdict: Runtime Error):
A,B,C,D = int(input()) for i in range(4)
AB = A * B
CD = C * D

if AB == CD:
  print(AB)
else:
  print(AB) if AB > CD else print(CD)
Problem p03962 (python)

Fixed submission:
print(len(set(input().split())))

Buggy submission (verdict: Runtime Error):
print(list(set(int(input().split()))))

Buggy submission (verdict: Runtime Error):
colors = []

for i in range(3):
  colors.append(int(input()))
unique_colors = list(set(colors))
print(len(unique_colors))
Problem p04011 (python)

Fixed submission:
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if(N<=K):
  print(X*N)
else:
  print(X*K+(N-K)*Y)

Buggy submission (verdict: Runtime Error):
N,K,X,Y=map(int, input().split())

result = 0
if N > K:
  result = K * X + (N - K) * Y
else:
  result = N * X

print(result)

Buggy submission (verdict: Runtime Error):
N,K,X,Y = map(int,input().split())

result = 0
if N > K:
  result = K * X + (N - K) * Y
else:
  result = N * X

print(result)

Buggy submission (verdict: Runtime Error):
N,K,X,Y = map(int, input().split())

result = 0
if N > K:
  result = K * X + (N - K) * Y
else:
  result = N * X

print(result)

Buggy submission (verdict: Runtime Error):
N,K,X,Y = map(int, input().split())

result = 0
if N > K:
  result = K * X + (N - K) * Y
else:
  result = N * X

print(result)

Buggy submission (verdict: Runtime Error):
N,K,X,Y = map(int, input().split())
if(N<=K):
  print(X*N)
else:
  print(X*K+(N-K)*Y)

Buggy submission (verdict: Runtime Error):
n,k,x,y = map(int, input().split)
print((k * x) + ((n - k) * y))
Problem p04029 (python)

Fixed submission:
N = int(input())
cnt = 0
for i in range(N+1):
    cnt += i
print(cnt)

Buggy submission (verdict: Runtime Error):
N = int(input())
result = 0
for i in (N+1):
  result += i
print(result)

Buggy submission (verdict: Runtime Error):
n = int(input())
for i in range(n+1):
  num += i
print(num)

Buggy submission (verdict: Runtime Error):
n = int(input())
for n in range(n+1):
  num += n
print(num)
Problem p03493 (python)

Fixed submission:
print(input().count("1"))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-

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

print str(a+b+c)
Problem p03693 (python)

Fixed submission:
r,g,b=tuple(map(lambda x: int(x), raw_input().split()))
ans = "YES" if (100*r+10*g+b) % 4 == 0 else "NO"
print ans

Buggy submission (verdict: Runtime Error):
n = input()
houses = map(lambda x: int(x), raw_input().split())
houses = sorted(list(set(houses)))
print houses[-1] - houses[0]
Problem p03694 (python)

Fixed submission:
n = input()
houses = map(lambda x: int(x), raw_input().split())
houses = sorted(list(set(houses)))
print houses[-1] - houses[0]

Buggy submission (verdict: Runtime Error):
n = input()
houses = raw_input().split()
houses = sorted(list(set(houses)))

print houses[-1] - houses[0]
Problem p03502 (python)

Fixed submission:
n = input()
fx = 0
for i in range(len(n)):
  fx += int(n[i])
if int(n)%fx == 0:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
n = input()
fx = 0
for i in range(len(n)):
  fx += n[i]
if int(n)%fx == 0:
  print('Yes')
else:
  print('No')
Problem p03587 (python)

Fixed submission:
s = input()
count = 0
for i in range(6):
    if s[i] == "1":
        count += 1
print(count)

Buggy submission (verdict: Runtime Error):
s = input()
count = 0
for x in s:
    if x == "1" 
        count += 1
print(count)
Problem p03697 (python)

Fixed submission:
x = list(map(int, input().split()))
if x[0]+x[1]<10:
    print(x[0]+x[1])
else:
    print('error')

Buggy submission (verdict: Runtime Error):
testSNs = raw_input().split()
SCORE=int(0)
for x in range(testSNs[0]):
    if not testSNs[x]%10 is 0:
        SCORE += testSNs[x]
    else:
        continue
print(SCORE)
Problem p03852 (python)

Fixed submission:
c = {input()}
vowels = {'a', 'i', 'u', 'e', 'o'}
if c < vowels:
    print('vowel')
else:
    print('consonant')

Buggy submission (verdict: Runtime Error):
if input()== 'a':
    print('vowel')
elif input()=='i':
    print('vowel')
elif input()=='u':
    print('vowel')
elif input()=='e':
    print('vowel')
elif input()=='o':
    print('vowel')
else:
    print('consonant')

Buggy submission (verdict: Runtime Error):
if input()== 'a' or input()=='i' or input()=='u' or input()=='e' or input()=='o':
    print('vowel')
else:
    print('consonant')
Problem p03997 (python)

Fixed submission:
a = int(input())
b = int(input())
h = int(input())
S = (a+b)*h/2
print(int(S))

Buggy submission (verdict: Runtime Error):
a, b, h = map(int, input().split())

S = (a + b) * h / 2
print(int(S))

Buggy submission (verdict: Runtime Error):
numsstr = input().split()
nums = []
for i in range(3):
    nums.append(int(numsstr[i]))
S = (nums[0] + nums[1]) * nums[2] / 2
print(int(S))
Problem p03493 (python)

Fixed submission:
# cook your dish here
s = input()
count=0
for c in s:
    if c=='1':
        count+=1
print(count)

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(map(int,input().split()))
b=1
count=0
for i in range(n):
    if(a[i]%2!=0):
        print(count)
        b=0
count=1
while b==1:
    for i in range(n):
        if(a[i]%2!=0):
            print(count)
            b=0
        a[i]/=2
    count+=1
Problem p03609 (python)

Fixed submission:
X,t = map(int, input().split())
if X-t<0:
    print(str(0))
else:
    print(str(X-t))

Buggy submission (verdict: Runtime Error):
alphabet="abcdefghijklmnopqrstuvwxyz"
st=input()
s=""
for i in range(0,len(st)):
    if alphabet.index(st[i]) % 2 == 0:
        s+=str(st[i])
    else:
        pass
print(s)

Buggy submission (verdict: Runtime Error):
alphabet="abcdefghijklmnopqrstuvwxyz"
st=input()
s=""
for i in range(0,len(st)):
    if alphabet.index(st[i]) % 2 == 0:
        s+=str(st[i])
    else:
        pass

Buggy submission (verdict: Runtime Error):
X,t =map(int, split())
if X-t <0:
    print(str(0))
else:
    print(str(X-t))
Problem p03494 (python)

Fixed submission:
import fractions
from functools import reduce


def factorize(n):
    fct = []  # prime factor
    b, e = 2, 0  # base, exponent
    while b * b <= n:
        while n % b == 0:
            n = n // b
            e = e + 1
        if e > 0:
            fct.append((b, e))
        b, e = b + 1, 0
    if n > 1:
        fct.append((n, 1))
    return fct


def reduce_gcd(numbers):
    return reduce(fractions.gcd, numbers)


def main():
    N = int(input())
    A_N = list(map(int, input().rstrip().split()))
    gcd = reduce_gcd(A_N)
    factorized = factorize(gcd)
    if factorized:
        print(factorized[0][1])
    else:
        print('0')


if __name__ == '__main__':
    main()

Buggy submission (verdict: Runtime Error):
import fraction
from functools import reduce

def factorize(n):
    fct = []  # prime factor
    b, e = 2, 0  # base, exponent
    while b * b <= n:
        while n % b == 0:
            n = n // b
            e = e + 1
        if e > 0:
            fct.append((b, e))
        b, e = b + 1, 0
    if n > 1:
        fct.append((n, 1))
    return fct


def reduce_gcd(numbers):
    return reduce(fraction.gcd, numbers)


def main():
    N = int(input())
    A_N = list(map(int, input().rstrip().split()))
    gcd = reduce_gcd(A_N)
    factorized = factorize(gcd)
    if factorized:
        print(factorized[0][1])
    else:
        print('0')


if __name__ == '__main__':
    main()
Problem p03501 (python)

Fixed submission:
a,t,i=input().split()
a=int(a)
t=int(t)
x=a*t
i=int(i)
c=min(x,i)
print(c)

Buggy submission (verdict: Runtime Error):
a,t,i=input().split()
a=int(a)
t=int(t)
x=a*t
i=int(input(i))
c=min(x,i)

Buggy submission (verdict: Runtime Error):
a,t=input().split()
a=int(a)
t=int(t)
x=a*t
i=int(i)
c=min(x,i)

Buggy submission (verdict: Runtime Error):
a,t,i=input().split()
a=int(a)
t=int(t)
x=a*t
i=int(input(i))
c=min(x,i)

Buggy submission (verdict: Runtime Error):
a,t,x=input().split()
a=int(a)
t=int(t)
x=a*t
i=int(i)
c=min(x,i)

Buggy submission (verdict: Runtime Error):
a,t,x=input().split()
a=int(a)
t=int(t)
x=a*t
i=int(input())
c=min(x,i)

Buggy submission (verdict: Runtime Error):
a,t,x=input().split()
a=int(a)
t=int(t)
x=a*t
i=int(input(i))
c=min(x,i)

Buggy submission (verdict: Runtime Error):
a,t=input().split()
a=int(a)
t=int(t)
x=a*t
i=int(input(i))
c=min(x,i)

Buggy submission (verdict: Runtime Error):
a,t=input().split()
a=int(a)
t=int(t)
x = a * t
i=int(input(i))
c=min(x,i)

Buggy submission (verdict: Runtime Error):
a,t=input().split()
a=int(a)
t=int(t)
x = a * t
i=int(i)
c=min(x.i)

Buggy submission (verdict: Runtime Error):
a,t=input().split()
a=int(a)
t=int(t)
x = a * t
i=int(i)
c=min(x,i)
Problem p03501 (python)

Fixed submission:
n, a, b = (int(i) for i in input().split())

print(min(n*a, b))

Buggy submission (verdict: Runtime Error):
n, a, b = (int(i) for i in input().split())

print(min(n*a, b)
Problem p03501 (python)

Fixed submission:
T,A,B = map(int, input().split())
if T * A <= B:
    print(T*A)
else:
    print(B)

Buggy submission (verdict: Runtime Error):
X = int(input())
a = X
b = 0
while (a>10):
    b += (a % 10) + (X / 10)
if X % b == 0:
    print("Yes")
else:
    print("No")
Problem p03501 (python)

Fixed submission:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 18 17:04:29 2017

@author: goto
"""

int1,int2,int3=map(int, input().split())

t=int1*int2

if t<int3:
    minmoji=t
else:
    minmoji=int3
    

print(minmoji)

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 18 17:04:29 2017

@author: goto
"""

moji=map(int, input().split())

t=moji[0]*moji[1]
if t<moji[2]:
    minmoji=t
else:
    minmoji=moji[2]
    

print(minmoji)
Problem p03635 (python)

Fixed submission:
n,m=map(int,input().split())

print((n-1)*(m-1))

Buggy submission (verdict: Runtime Error):
n,m=int,input().split()

print((n-1)*(m-1))

Buggy submission (verdict: Runtime Error):
n,m=int,input().split()

print((n-1)*(m-1))
Problem p03729 (python)

Fixed submission:

s,y,j=input().split()

ss=len(s)
yy=len(y)
jj=len(j)
nyan=0
if s[ss-1:ss]==y[0:1]:
    nyan+=1
    
if y[yy-1:yy]==j[0:1]:
    nyan+=1
    
    
if nyan==2:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):

s,y,j=input().split()
sss=len(s)
yyy=len(y)
jjj=len(j)

ss=s[0:1]
ssss=s[sss-1:sss]
yy=y[0:1]
yyyy=y[yyy-1:yyy]
jj=j[0:1]
jjjj=j[jjj-1:jjj]

if ssss==yy:
    nyan=1
    
if yyyy==jj:
    nyan+=1
    
if nyan==2:
    print('YES')
else:   
    print('NO')
Problem p03503 (python)

Fixed submission:
n = int(input())

f = [int(input().replace(" ", ""), 2) for _ in range(n)]
p = [list(map(int, input().split())) for _ in range(n)]

ans = float('-inf')

for i in range(1, 1024):
    price = 0
    for j in range(n):
        price += p[j][bin(i & f[j]).count('1')]
    ans = max(ans, price)

print(ans)

Buggy submission (verdict: Runtime Error):
    n = int(input())
     
    f = [int(input().replace(" ", ""), 2) for _ in range(n)]
    p = [list(map(int, input().split())) for _ in range(n)]
     
    ans = float('-inf')
     
    for i in range(1, 1024):
        price = 0
        for j in range(n):
            price += p[j][bin(i & f[j]).count('1')]
        ans = max(ans, price)
     
    print(ans)