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

Fixed submission:
import math
X = int(input())
b = math.floor((X / 11))*2
if((X % 11) > 0 and (X % 11) < 7):
    print(b + 1)
elif((X % 11) > 0 and X % 11 < 11):
    print(b + 2)
else:
    print(b)

Buggy submission (verdict: Runtime Error):
import math
X = int(input())
if ( x < 7):
    print(1)
elif (x < 12):
    print(3)
else:
    print(math.ceil((X / 11) * 2))

Buggy submission (verdict: Runtime Error):
import math
X = int(input())
print( math.cecil((X / 11) * 2))
Problem p03816 (python)

Fixed submission:
N = int(input())
A = input()
list_A = A.split()
set_A = set(list_A)
i = 0

for a in list_A:
    if a in set_A:
        i += 1
        
i = i - len(set_A)
if i % 2 == 0:
    print(N - i)
else:
    print(N - (i +1))

Buggy submission (verdict: Runtime Error):
    N = int(input())
    A = input()
    list_A = A.split()
    set_A = set(list_A)
    i = 0

    for a in list_A:
        if a in set_A:
            i += 1
    i = i - len(set_A)
    if i % 2 == 0:
        print(N - i)
    else:
        print(N - (i +1))

Buggy submission (verdict: Runtime Error):
N = int(input())
A = input()
list_A = A.split()
set_A = set(list_A)
 i = 0
for a in list_A:
  if a in set_A:
    i += 1
  i = i - len(set_A)
  if i % 2 == 0:
    print(N - i)
  else:
    print(N - (i +1))
Problem p02909 (python)

Fixed submission:
a = input()
if a == "Sunny":
    print("Cloudy")
elif a == "Cloudy":
    print("Rainy")
else :
    print("Sunny")

Buggy submission (verdict: Runtime Error):
a = input("日本語で文を入力してください -> ")
b = input("調べたい文字は -> ")
print(a.find(b))

Buggy submission (verdict: Runtime Error):
a = int(input("aを入力:"))
if a == 0:
    print("zero")
else:
    print("non zero")

Buggy submission (verdict: Runtime Error):
if weather == "Sunny":
    print("Cloudy")
elif weather == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Buggy submission (verdict: Runtime Error):
weather = input()
if: weather == "Sunny":
    print("Cloudy")
elif weather == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Buggy submission (verdict: Runtime Error):
weather = input()
if: weather == "Sunny"
    print("Cloudy")
elif: weather == "Cloudy"
    print("Rainy")
else:
    print("Sunny")
Problem p02921 (python)

Fixed submission:
s = list(input())
t = list(input())

cnt = 0
for i in range(len(s)):
    if s[i] == t[i]:
        cnt += 1
        continue
print(cnt)

Buggy submission (verdict: Runtime Error):
s = list(input())
t = list(input())

cnt = 0
for i in range(2):
    if s[i]==s[t]:
        cnt =+1
print(cnt)

Buggy submission (verdict: Runtime Error):
s = list(input())
t = list(input())

cnt = 0
for i in range(2)
    if s[i]==s[t]:
        cnt =+1
print(cnt)
Problem p02993 (python)

Fixed submission:
s = list(map(int,input()))

result = "True"
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        result = "bad"
        break
if result == "bad":
    print("Bad")
else:
    print("Good")

Buggy submission (verdict: Runtime Error):
s = list(map(int,input()))

result = True
for i in range(len(s)-1):
    if a[i] == a[i+1]:
        result = bad
        break
if result == "bad":
    print("Bad")
else:
    print("Good")
Problem p03035 (python)

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

if 13 <= A:
    print(B)
elif (6 <= A) and (A<=12):
    print(B//2)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
if 13 <= A:
    print(B)
elif (6 <= A) and (A<=12):
    print(B/2)
else:
    print(0)
Problem p03071 (python)

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

C = 0

if A > B:
   C = A+A-1
   print(C)

if B > A:
   C = B+B-1
   print(C)

if B == A:
   C = B+A
   print(C)

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

int sum = 0

if A > B:
   sum = A+A-1
   print(sum)

if B > A:
   sum = B+B-1
   print(sum)

if B == A:
   sum = B+A
   print(sum)
Problem p03192 (python)

Fixed submission:
n = list(input())

cnt = 0

for i in range(len(n)):
    if n[i] == "2":
        cnt += 1
print(cnt)

Buggy submission (verdict: Runtime Error):
n = list(int(input())

cnt = 0

for i in range(len(n)):
    if n[i] == 2:
        cnt += 1
print(cnt)
Problem p03206 (python)

Fixed submission:
d = int(input())

if d == 25:
    print("Christmas")
elif d == 24:
    print("Christmas Eve")
elif d == 23:
    print("Christmas Eve Eve")
elif d == 22:
    print("Christmas Eve Eve Eve")

Buggy submission (verdict: Runtime Error):
d = int(input())

if d == 25
    print("Christmas")
elif d == 24
    print("Christmas Eve")
elif d == 23
    print("Christmas Eve Eve")
elif d == 23
    print("Christmas Eve Eve")
Problem p03385 (python)

Fixed submission:
S = str(input())

new_S = sorted(S)
new_S = ''.join(new_S)

if new_S == "abc":
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
S = list(input())

new_S = sorted(s)

if new_S =="abc":
    print("Yes")
else:
    print("No")
Problem p03399 (python)

Fixed submission:
A = int(input())
B = int(input())
C = int(input())
D = int(input())


print(min(A,B)+min(C,D))

Buggy submission (verdict: Runtime Error):
A = int(input())
B = int(input())
C = int(input())
D = int(input())


print(min(A+B)+min(C+D))
Problem p03407 (python)

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

if A+B >= C:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
A,B,C = map(int,input().split())

if A+B <= C
    print("Yes")
else:
    print("No")
Problem p03493 (python)

Fixed submission:
s = list(input())

j = []
for ss in s:
     j.append(int(ss))
print(sum(j))

Buggy submission (verdict: Runtime Error):
s = list(input())

for i ==2:
   sum+=s[i]
print(sum)
Problem p03563 (python)

Fixed submission:
R = int(input())
G = int(input())

print(2*G-R)

Buggy submission (verdict: Runtime Error):
R = int(input())
G = int(input())

print(2G-R)

Buggy submission (verdict: Runtime Error):
R = int(input())
G = int(input())

input(2G-R)
Problem p03567 (python)

Fixed submission:
s = input()

for i in range(len(s)-1):
    if s[i] == "A" and s[i+1] == "C":
        print("Yes")
        exit()
print("No")

Buggy submission (verdict: Runtime Error):
s = input()

for i in range(len(s)-1):
if s[i] == "A" and s[i+1] == "C":
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
s = input()

for i in range(len(s)-1):
if s[i][i+1] == "AC":
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
s = input()

for i in range(len(s)-1)
if s[i][i+1] == "AC":
    print("Yes")
else:
    print("No")
Problem p03577 (python)

Fixed submission:
S = input()

print(S[:-8])

Buggy submission (verdict: Runtime Error):
S = input()

print(s[:-8])
Problem p03591 (python)

Fixed submission:
S = input()

if S[:4] == "YAKI":
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
S = input()

if S[0] == "Y" and S[1] == "A" and S[2] == "K" and S[3] == "I":
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
S = list(input())

if S[0] == "Y" and S[1] == "A" and S[2] == "K" and S[3] == "I":
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
S = list(input())

if S[0] == "Y" and S[1] == "A" and S[2] == "K" and S[3] == "I":
    print("Yes")
else:
    print("No")
Problem p03605 (python)

Fixed submission:
N = str(input())

if N[0] == "9" or N[1] == "9":
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
N = list(int(input()))

if N[0] == 9 or N[1] == 9:
    print("Yes")
else:
    print("No")
Problem p03623 (python)

Fixed submission:
x,a,b = map(int,input().split())

if abs(x-a) < abs(x-b):
    print("A")
else:
    print("B")

Buggy submission (verdict: Runtime Error):
s = str(input())
alphabet = ["a","b","c","d","e","f"
,"g","h","i","j","k","l","m","n",
"o","p","q","r","s","t","u","v","w","x","y","z"]

for i in s:
    if i in alphabet:
        alphabet.remove(i)
if len(alphabet)!=:
    print(alphabet[0])
else:
    print("Nome")
Problem p03737 (python)

Fixed submission:
s,t,u = input().split()

print(s[0].upper()+t[0].upper()+u[0].upper())

Buggy submission (verdict: Runtime Error):
s,t,u = input().spilt()

print(s[0].upper()+t[0].upper()+u[0].upper())

Buggy submission (verdict: Runtime Error):
s,t,u = map(str,input().spilt())

print(s[0].upper()+t[0].upper()+u[0].upper())

Buggy submission (verdict: Runtime Error):
s,t,u = map(str,input().spilt())

print(str.upper(s[0])+str.upper(t[0])+str.upper(u[0]))

Buggy submission (verdict: Runtime Error):
s,t,u = map(str,input().spilt())

print(str.upper(s[0]+str.upper(t[0]+str.upper(u[0]))
Problem p03759 (python)

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

if b-a == c-b:
    print("YES")
else:
    print("NO")

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

if b-a == c-b:
    print("YES")
else:
    print("NO")
Problem p03773 (python)

Fixed submission:
#A時ちょうどで、
#コンテストがちょうどB時間後に始まる。

#コンテスト開始時間は24時間表記で何時ちょうどでしょうか？

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

if a+b < 24:
    print(a+b)
else:
    print(a+b-24)

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

if a+b>24
    print(a+b-24)
else:
    print(a+b)
Problem p03777 (python)

Fixed submission:
#AtCoDeerくん
#a = 'H'のとき正直者
#a = 'D'のとき嘘つき
#AtCoDeerくん
#b = 'H'のとき、「TopCoDeerくんは正直者だ」と発言する
#b = 'D'のとき、「TopCoDeerくんは嘘つきだ」と発言する

#TopCoDeerくんが正直者かどうか判定してください。
#a = H b = H →H
#a = H b = D →D
#a = D b = H →D
#a = D b = D →H

a,b = map(str,input().split())

if a == "H" and b == "H":
    print("H")
if a == "H" and b == "D":
    print("D")
if a == "D" and b == "H":
    print("D")
if a == "D" and b == "D":
    print("H")

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

if a == "H" and b == "H":
    print("H")
elif a == "H" and b == "D":
    print("D")
elif a == "D" and b == "H":
    print("D")
else a == "D" and b == "D":
    print("H")

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

if a == "H" and b == "H":
    print("H")
elif a == "H" and b == "D":
    print("D")
elif a == "D" and b == "H":
    print("D")
else: a == "D" and b == "D":
    print("H")

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

if a == "H" and b == "H":
    print("H")
elif a == "H" and b == "D":
    print("D")
elif a == "D" and b == "H":
    print("D")
else: a == "D" and b == "D":
    print("H")

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

if a == "H" and b == "H":
    print("H")
elif a == "H" and b == "D":
    print("D")
elif a == "D" and b == "H":
    print("D")
else: a == "D" and b == "D":
    print("H")
Problem p03826 (python)

Fixed submission:
#二つの長方形
#縦A、横B A*B
#縦C、横D C*D

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

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

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

if a*b == c*d:
    print(a*b)
if a*b =< c*d:
    print(c*d)
if a*b >= c*d:
    print(a*b)
Problem p03844 (python)

Fixed submission:
a,b,c= input().split()

if b == "+":
    print(int(a)+int(c))
else:
    print(int(a)-int(c))

Buggy submission (verdict: Runtime Error):
a,b,c= input().list()

if b == "+":
    print(int(a)+int(c))
else:
    print(int(a)-int(c))

Buggy submission (verdict: Runtime Error):
a,b,c= input().list()

if b == "+":
    print(ing(a)+int(c))
else:
    print(int(a)-int(c))

Buggy submission (verdict: Runtime Error):
a,b,c= input().list()

if b == "+":
    print(a+c)
else:
    print(a-c)

Buggy submission (verdict: Runtime Error):
int a,str b,int c = input().list()

if b == "+":
    print(a+c)
else:
    print(a-c)

Buggy submission (verdict: Runtime Error):
a,b,c = int(input().list())

if b == "+":
    print(a+c)
else:
    print(a-c)
Problem p03852 (python)

Fixed submission:
c = input()

if c == "a" or c == "e" or c == "i" or c == "o" or c == "u":
    print("vowel")
else:
    print("consonant")

Buggy submission (verdict: Runtime Error):
c = input()

if c == a or c == e or c == i or c == o or c == u:
    print("vowel")
else:
    print("consonant")
Problem p03860 (python)

Fixed submission:
a,b,c = input().split()

print(a[0]+b[0]+c[0])

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

#if a > x or b < x:
#    print("0")
elif a%x == 0:
    print(b//x-a//x+1)
else:
    print(b//x-a//x)

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

if a > x or b < x:
    print("0")
elif a%x == 0:
    print(b//x-a//x+1)
else:
    print(b//x-a//x)

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

if a > x or b < x:
    print("0")
elif a%xx == 0:
    print(b//x-a//x+1)
else:
    print(b//x-a//x)
Problem p03943 (python)

Fixed submission:

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

#list 並び替え→最初と最後足して == 真ん中　ならばYES!!!

can.sort()

if can[0]+can[1] == can[2]:
    print("Yes")
else:
    print("No")

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

if a+b =c:
    print("Yes")
else:
    print("No")

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

if a+b =c:
    print("Yes")
else:
    print("No")

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

int T = 0

if a+b == c:
    T = 1
elif b+c == a:
    T = 1
elif a+c == b:
    T = 1

if T == 1:
    print('YES')
else:
    print('NO')

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

int T = 0

if a+b == c:
    T = 1
elif b+c == a:
    T = 1
elif a+c == b:
    T = 1

if T == 1:
    print('YES')
else:
    print('NO')

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

int T = 0

if a+b == c:
    T = 1
elif b+c == a:
    T = 1
elif a+c == b:
    T = 1

if T == 1:
    print("YES")
else:
    print('NO')

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

T = 0

if a+b = c:
    T = 1
elif b+c = a:
    T = 1
elif a+c = b:
    T = 1

if T = 1:
    print("YES")
else:
    print("NO")

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

if ((a+b+c)%3 == 0):
    print("Yes")
else
    print("No")

Buggy submission (verdict: Runtime Error):

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

#list 並び替え→最初と最後足して == 真ん中　ならばYES!!!

can = can.sort()

if can[0]+can[2] == can[1]:
    print("Yes")
else:
    print("No")
Problem p03962 (python)

Fixed submission:
import collections

pen = list(map(str,input().split()))

print(len(collections.Counter(pen)))

Buggy submission (verdict: Runtime Error):
a,b,c = input().split()

int(sum) = 1
if a == b:
    sum +=1
if a == c:
    sum +=1
if b == c:
    sum += 1
print(sum)

Buggy submission (verdict: Runtime Error):
pen = list(map(str,input().split()))

print(len(collections.Counter(pen)))

Buggy submission (verdict: Runtime Error):
pen = list(map(str,input().split()))

print(collections.Counter(pen))
Problem p03963 (python)

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


print(k*(k-1)**(n-1))

Buggy submission (verdict: Runtime Error):
n = int(input())
k = int(input())

print(k*(k-1)**(n-1))
Problem p03970 (python)

Fixed submission:
S = list(input())

C = list("CODEFESTIVAL2016")

cnt = 0
for i in range(len(C)):
    if S[i] != C[i]:
        cnt += 1
print(cnt)

Buggy submission (verdict: Runtime Error):
S = list(input())

C = list(CODEFESTIVAL2016)

cnt = 0
for i in range(len(C)):
    if S[i] != C[i]:
        cnt += 1
print(cnt)
Problem p03997 (python)

Fixed submission:
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h//2)

Buggy submission (verdict: Runtime Error):
sa = [s for s in input()]
sb = [s fir s in input()]
sc = [s for s in input()]

next_turn = "a"
flag = True

while flag:
    if next_turn == "a":
        if len(sa) == 0:
            print("A")
            flag = False
        else:
            next_turn = sa.pop(0)
    elif next_tunr == "b":
        if len(sb) == 0:
            print("B")
            flag = false
        else:
            next_turn = sb.pop(0)
    elif next_turn == "c":
        if len(sc) ==0:
            print("C")
            flag = False
        else:
            next_turn = sc.pop(0)
Problem p03998 (python)

Fixed submission:
sa = list(input())
sb = list(input())
sc = list(input())

turn = "a"

while True:
    if turn == "a":
        if len(sa) != 0:
            turn = sa.pop(0)
        else:
            print("A")
            exit()
    elif turn == "b":
        if len(sb) != 0:
            turn = sb.pop(0)
        else:
            print("B")
            exit()
    else:
        if len(sc) != 0:
            turn = sc.pop(0)
        else:
            print("C")
            exit()

Buggy submission (verdict: Runtime Error):
sa = [s for s in input()]
sb = [s fir s in input()]
sc = [s for s in input()]

next_turn = "a"
flag = True

while flag:
    if next_turn == "a":
        if len(sa) == 0:
            print("A")
            flag = False
        else:
            next_turn = sa.pop(0)
    elif next_turn == "b":
        if len(sb) == 0:
            print("B")
            flag = False
        else:
            next_turn = sb.pop(0)
    elif next_turn == "c":
        if len(sc) ==0:
            print("C")
            flag = False
        else:
            next_turn = sc.pop(0)

Buggy submission (verdict: Runtime Error):
sa = [s for s in input()]
sb = [s fir s in input()]
sc = [s for s in input()]

next_turn = "a"
flag = True

while flag:
    if next_turn == "a":
        if len(sa) == 0:
            print("A")
            flag = False
        else:
            next_turn = sa.pop(0)
    elif next_tunr == "b":
        if len(sb) == 0:
            print("B")
            flag = false
        else:
            next_turn = sb.pop(0)
    elif next_turn == "c":
        if len(sc) ==0:
            print("C")
            flag = False
        else:
            next_turn = sc.pop(0)

Buggy submission (verdict: Runtime Error):
sa = list(input())
sb = list(input())
sc = list(input())

turn = "a"

while True:
    if turn == "a":
        if len(sa) != 0:
            turn = sa.pop(0)
        else:
            print("A")
            exit()
    elif turn == "b":
        if len(sb) != 0:
            turn = sb.pop(0)
        else:
            print("B")
            exit()
    else:
        if len(sc) != "c"
            turn = sc.pop(0)
        else:
            print("C")
            exit()
Problem p04029 (python)

Fixed submission:
N = int(input())

S = N*(N+1)//2

print(S)

Buggy submission (verdict: Runtime Error):
N = int(input())

int S = N*(N+1)/2

print(S)

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

S = N*(N+1)/2

print(S)

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

S = N * (N+1) /2

print(S)
Problem p04030 (python)

Fixed submission:
s = list(input())

S = []
for i in range(len(s)):
    if s[i] == "0":
        S += s[i]
    elif s[i] == "1":
        S += s[i]
    elif len(S) == 0:
        pass
    else:
        del S[-1]
print("".join(S))

Buggy submission (verdict: Runtime Error):
chars = input()

ans = []
for c in chars:
    if c in ['0','1']:
        ans.append(c)
    elif len(ans) != 0:
        ans.pop(-1)
        
        
p;rint(''.join(ans))
Problem p03671 (python)

Fixed submission:
a,b,c = map(int, input().split())
sum_ab = a + b
sum_bc = b + c
sum_ac = a + c
print(min(sum_ab, min(sum_bc, sum_ac)))

Buggy submission (verdict: Runtime Error):
a,b,c = map(int, input().split())
sum.ab = a + b
sum.bc = b + c
sum.ac = a + c
print(min(sum.ab, min(sum.bc, sum.ac)))
Problem p03759 (python)

Fixed submission:
a, b, c = map(int, input().split())
if b - a == c - b :
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
if b − a == c − b:
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
if b−a == c−b:
    print("YES")
else:
    print("NO")
Problem p02909 (python)

Fixed submission:
S=input()
if S == "Sunny" :
    print("Cloudy")
elif S =="Cloudy":
    print("Rainy")
else:
    print("Sunny")

Buggy submission (verdict: Runtime Error):
S=input()
if S == "Sunny" :
    print("Cloudy")
else if S =="Cloudy":
    print("Rainy")
else
    print("Sunny")
Problem p02945 (python)

Fixed submission:
a,b=map(int,input().split())
print(max(a + b,a - b,a * b))

Buggy submission (verdict: Runtime Error):
a,b=map(int(),input().sprit())
print(max(a + b,a - b,a * b))

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
c=a+b
d=a-b
e=a*b
print(max(c,d,e))

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
print(max(a+b,a-b,a*b))

Buggy submission (verdict: Runtime Error):
a,b=input().split()
print(max(a+b,a-b,a*b))

Buggy submission (verdict: Runtime Error):
a,b=input()
print(max(a+b,a-b,a*b))
Problem p02969 (python)

Fixed submission:
r = int(input())
print(3*r*r)

Buggy submission (verdict: Runtime Error):
a = int(input())
2a = 3 * (a ** a)
 
print (2a)

Buggy submission (verdict: Runtime Error):
a = input()
b = 3 * (a ** a)
 
print (b)

Buggy submission (verdict: Runtime Error):
a = input()
2a = 3 * (a ** a)

print (2a)

Buggy submission (verdict: Runtime Error):
r = input()
print(3*r**2)
Problem p02981 (python)

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

A = A * N

if (A < B):
	print(A)
else:
	print(B)

Buggy submission (verdict: Runtime Error):
N,A,B = map(int(),input().strip())

A = A * N

if (A < B):
	print(A)
else:
	print(B)

Buggy submission (verdict: Runtime Error):
N,A,B = map(int().input().strip())

A = A * N

if (A < B):
	print(A)
else:
	print(B)

Buggy submission (verdict: Runtime Error):
N,A,B = map(int(),input(),strip())

A = A * N

if (A < B):
	print(A)
else:
	print(B)
Problem p02982 (python)

Fixed submission:
import math
N, D = [int(i) for i in input().split()]
X = [[int(i) for i in input().split()] for _ in range(N)]
 
ans = 0
for i in range(N):
    for j in range(i+1, N):
        yz = [abs((y - z)**2) for y, z in zip(X[i], X[j])]
        v = math.sqrt(sum(yz))
        if v == int(v):
            ans += 1
            
print(ans)

Buggy submission (verdict: Runtime Error):
N, D = [int(i) for i in input().split()]
X = [[int(i) for i in input().split()] for _ in range(N)]
 
ans = 0
for i in range(N):
    for j in range(i+1, N):
        yz = [abs((y - z)**2) for y, z in zip(X[i], X[j])]
        v = math.sqrt(sum(yz))
        if v == int(v):
            ans += 1
            
print(ans)

Buggy submission (verdict: Runtime Error):
N, D = [int(i) for i in input().split()]
X = [[int(i) for i in input().split()] for _ in range(N)]
 
ans = 0
for i in range(N):
    for j in range(i+1, N):
        yz = [abs((y - z)**2) for y, z in zip(X[i], X[j])]
        v = math.sqrt(sum(yz))
        if v == int(v):
            ans += 1
            
print(ans)
Problem p03085 (python)

Fixed submission:
b=input()
if "A" == b:
  print("T")
elif b == "T":
  print("A")
elif b == "G":
  print("C")
elif b == "C":
  print("G")

Buggy submission (verdict: Runtime Error):
b=input()
if "A" = b:
  print("T")
elif b = "T":
  print("A")
elif b = "G":
  print("C")
elif b = "C":
  print("G")
Problem p03407 (python)

Fixed submission:
A, B, C=map(int,input().split())
if A+B >= C:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
A, B, C=map(int,input().split())
if A+B >= C:
  ptint('Yes')
else:
  print('No')
Problem p03408 (python)

Fixed submission:
N=int(input())
s=[input() for i in range(N)]
M=int(input())
t=[input() for j in range(M)]
score = []
lst_s_t=list(set(s)|set(t))
for k in lst_s_t:
  score.append(s.count(k)-t.count(k))
if max(score)>0:
  print(max(score))
else:
  print(0)

Buggy submission (verdict: Runtime Error):
N=int(input())
s=[input() for i in range(N)]
M=int(input())
t=[input() for j in range(M)]
score = []
set_s_t=set(s)&set(t)
lst_s_t=list(set_s_t)
for k in lst_s_t:
  b=s.count(k)
  r=t.count(k)
  score.append(b-r)
if max(score)>0:
  print(max(score))
else:
  print(0)

Buggy submission (verdict: Runtime Error):
N=int(input())
s=[input() for i in range(N)]
M=int(input())
t=[input() for j in range(M)]
score = []
set_s_t=set(s)&set(t)
lst_s_t=list(set_s_t)
for k in lst_s_t:
  b=s.count(k)
  r=t.count(k)
  score.append(b-r)
print(max(score))