Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
S_list = [input() for i in range(2)]
S_list_1 = S_list[1].split()

for i in S_list_1:   
    if int(i) % 2 == 0 :
        if i % 3 !=0 and i % 5 !=0 :
            result="DENIED"
            break
    else:
        result="APPROVED"        
print(result)

Fixed submission:
S_list = [input() for i in range(2)]
S_list_1 = list(map(int,S_list[1].split()))

for i in S_list_1:   
    if i % 2 == 0 :
        if i % 3 !=0 and i % 5 !=0 :
            result="DENIED"
            break
    else:
        result="APPROVED"        
print(result)

Buggy python submission (verdict: Runtime Error):
S_list = [input() for i in range(2)]
S_list_1 = S_list[1].split()
even_list = []
for i in S_list_1:   
    if int(i) % 2 == 0:
        even_list.append(int(i))
for i in even_list:
    if i % 3 ==0 or i % 5 ==0 :
        result="APPROVED"
    else:
        result="DENIED"
        break
print(result)

Fixed submission:
S_list = [input() for i in range(2)]
S_list_1 = list(map(int,S_list[1].split()))

for i in S_list_1:   
    if i % 2 == 0 :
        if i % 3 !=0 and i % 5 !=0 :
            result="DENIED"
            break
    else:
        result="APPROVED"        
print(result)
Buggy python submission (verdict: Runtime Error):
import sympy
S = int(input("入力："))

divisors = sympy.divisors(S)
#print(divisors)
n = len(divisors)

for i in range(int(n / 2+n % 2)):
    #print(divisors[i])
    if S // divisors[i] <= 9:
        result ="Yes"
    else:
        result ="No"
print(result)

Fixed submission:
S = int(input())

for i in range(9) :
    i = i + 1
           
    if S % i == 0 and S // i <= 9:
        result = "Yes"
        break
    else :
        result = "No"
print(result)

Buggy python submission (verdict: Runtime Error):
import sympy
S = int(input())

divisors = sympy.divisors(S)
#print(divisors)
n = len(divisors)
for i in range(n):
    if S // divisors[i-1] <=9:
        result ="Yes"
    else:
        result ="No"
print(result)

Fixed submission:
S = int(input())

for i in range(9) :
    i = i + 1
           
    if S % i == 0 and S // i <= 9:
        result = "Yes"
        break
    else :
        result = "No"
print(result)
Buggy python submission (verdict: Runtime Error):
S_list = list(map(int,input().split()))
n,a,b = S_list
print(min(n * a ,b)

Fixed submission:
S_list = list(map(int,input().split()))
n,a,b = S_list
print(min(n * a ,b))
Buggy python submission (verdict: Runtime Error):
S_list = list(map(int,input().split()))
 
r, g, b = S_list
if (ｒ ＋ g + b) % 4 == 0 :
    result = "YES"
else:
    result = "NO"
print(result)

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

r, g, b = S_list[0], S_list[1], S_list[2]
if (100 * r + 10 * g + b) % 4 == 0 :
    result = "YES"
else:
    result = "NO"
print(result)
Buggy python submission (verdict: Runtime Error):
S_list = list(map(int,input().split()))

if  (S_list[1] - S_list[0] ) / (S_list[2] - S_list[1]) == 1:
    result = "YES"
else:
    result = "NO"
print(result)


Fixed submission:
S_list = list(map(int,input().split()))
 
if  S_list[1] - S_list[0] == S_list[2] - S_list[1]:
    result = "YES"
else:
    result = "NO"
print(result)

Buggy python submission (verdict: Runtime Error):
S_list = list(map(int,input().split()))

if  (S_list[1] - S_list[0] ) / (S_list[2] - S_list[1]) == 1:
    result = "YES"
else:
    result = "No"
print(result)


Fixed submission:
S_list = list(map(int,input().split()))
 
if  S_list[1] - S_list[0] == S_list[2] - S_list[1]:
    result = "YES"
else:
    result = "NO"
print(result)

Buggy python submission (verdict: Runtime Error):
S_list = list(map(int,input("入力：").split()))

if  (S_list[1] - S_list[0] ) / (S_list[2] - S_list[1]) == 1:
    result = "YES"
else:
    result = "No"
print(result)


Fixed submission:
S_list = list(map(int,input().split()))
 
if  S_list[1] - S_list[0] == S_list[2] - S_list[1]:
    result = "YES"
else:
    result = "NO"
print(result)
Buggy python submission (verdict: Runtime Error):
# 1 <= N <= 1000000
N = int(input())

total = []

# N項目までに含まれる->N項目は含まない。だからN項目は+1で外す。
for x in range(1, N+1):
    if x % 15 == 0:
        "FizzBuzz"
    elif x % 5 == 0:
        "Buzz"
    elif x % 3 == 0:
        "Fizz"
    else:
        print(total)
        total.append(x) #リストに加える
print(sum(total))

Fixed submission:
# 1 <= N <= 1000000
N = int(input())

total = []

# N項目までに含まれる->N項目は含まない。だからN項目は+1で外す。
for x in range(1, N+1):
    if x % 15 == 0:
        "FizzBuzz"
    elif x % 5 == 0:
        "Buzz"
    elif x % 3 == 0:
        "Fizz"
    else:
        total.append(x) #リストに加える
print(sum(total))

Buggy python submission (verdict: Runtime Error):
# 1 <= N <= 1000000
N = int(input())

total = []

# N項目までに含まれる->N項目は含まない。だからN項目は+1で外す。
for x in range(1, N+1):
    if x % 15 == 0:
        "FizzBuzz"
    elif x % 5 == 0:
        "Buzz"
    elif x % 3 == 0:
        "Fizz"
    else:
        print(total)
        total.append(x) #リストに加える
print(sum(total))


Fixed submission:
# 1 <= N <= 1000000
N = int(input())

total = []

# N項目までに含まれる->N項目は含まない。だからN項目は+1で外す。
for x in range(1, N+1):
    if x % 15 == 0:
        "FizzBuzz"
    elif x % 5 == 0:
        "Buzz"
    elif x % 3 == 0:
        "Fizz"
    else:
        total.append(x) #リストに加える
print(sum(total))
Buggy python submission (verdict: Runtime Error):
# Sunny -> Cloudy -> Rainy -> Sunny ...
# 標準入力NはSunny Cloudy Rainyのいずれか

N = input()

if N == "Sunny":
    print("Cloudy"):
elif N == "Cloudy":
    print("Rainy"):
elif N == "Rainy":
    print("Sunny")

Fixed submission:
# Sunny -> Cloudy -> Rainy -> Sunny ...
# 標準入力はSunny Cloudy Rainyのいずれか

S = input()

if S == "Sunny":
    print("Cloudy")
elif S == "Cloudy":
    print("Rainy")
elif S == "Rainy":
    print("Sunny")
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())

X = a*b
if X%2 ==1:
    print('Odd')
else:
    print('Even')

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

X = a*b
if X%2 ==1:
    print('Odd')
else:
    print('Even')
Buggy python submission (verdict: Runtime Error):
if "9" == N[0] or "9" == N[1]:
        print( "YES" )
else:
    print( "NO" )

Fixed submission:
N = input()

if "9" in N:
    print( "Yes" )
else:
    print( "No" )
Buggy python submission (verdict: Time Limit Exceeded):
S = list(input())
ls = len(S)
odd_list = []
result = ""

while ls > 0:
    ls -= 1
    if ls % 2 == 0:
        odd_list.append(ls)
        odd_list = sorted(odd_list)

for i in odd_list:
    result = result + S[i]
print(result)

Fixed submission:
S = str(input())
ls = len(S)
odd_list = []
result = ""

while ls > 0:
    ls -= 1
    if ls % 2 == 0:
        odd_list.append(ls)
odd_list = sorted(odd_list)
# print(odd_list)

for i in odd_list:
    result = result + S[i]
print(result)
Buggy python submission (verdict: Runtime Error):
if ( a + b == c ) or ( a + c == b ) or ( b + c == a ) :
    print ( "Yes" )
else:
    print ( "No" )

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

if ( a + b == c ) or ( a + c == b ) or ( b + c == a ) :
    print ( "Yes" )
else:
    print ( "No" )
Buggy python submission (verdict: Runtime Error):
SUN = 7
MON = 1
TUE = 2
WED = 3
THU = 4
FRI = 5
SAT = 6

A =  input()


print(7 - A)

Fixed submission:
#変b数のまとめの入力についてsplitとインデックスで価を特定させる

youbi = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
a = input()
print(7 - youbi.index(a))
Buggy python submission (verdict: Runtime Error):
n,a,b = map(int,input().split())

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

Fixed submission:
N, A, B = map(int, input().split())
print(min(N * A, B))
Buggy python submission (verdict: Runtime Error):
#配列の準備
＃インプット分を数値型に変換後、スプリットで各変数に持たせる

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

＃abs関数で引数を絶対値とする。
if abs(c-a)>d:  
  if abs(a-b)>d or abs(b-c)>d:  
    print("No")  
  else:  
    print("Yes")  
else:  
  print("Yes")  

Fixed submission:
#配列の準備
# ンプット分を数値型に変換後、スプリットで各変数に持たせる

a,b,c,d=map(int,input().split())
# abs関数で引数を絶対値とする。

if abs(c-a)>d:
  if abs(a-b)>d or abs(b-c)>d:
    print("No")
  else:
    print("Yes")
else:
  print("Yes")
Buggy python submission (verdict: Runtime Error):
N = int(input())
M = int(input())
list =[]
homework = 0

for A in range(0, M):
    list.append(int(input()))
    homework = homework + list[A]

play = N - homework

if play < 0:
    print(-1)
else:
    print(play)

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

for i in range(M):
    homework += a[i]

play = N - homework

if play < 0:
    print(-1)
else:
    print(play)
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = int(input())
d = int(input())

if abs(a - c) <= d:
    print("Yes")
elif (abs(a - b) <= d) and (abs(b - c) <= d):
    print("Yes")
else:
    print("No")

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

if abs(a - c) <= d:
    print("Yes")
elif (abs(a - b) <= d) and (abs(b - c) <= d):
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = int(input())
d = int(input())

if abs(a - c) <= d:
    print("Yes")
elif (abs(a - b) <= d) and (abs(b - c) <= d):
    print("Yes")
else:
    print("No")

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

if abs(a - c) <= d:
    print("Yes")
elif (abs(a - b) <= d) and (abs(b - c) <= d):
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
a = int (input())
b = int (input())

if a*b % 2 == 0:
    print('Even')
else:
    print('Odd')

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

if a*b % 2 == 0:
    print('Even')
else:
    print('Odd')

Buggy python submission (verdict: Runtime Error):
a = int (input())
b = int (input())

if a*b%2 == 0:
    print('Even')
else:
    print('Odd')

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

if a*b % 2 == 0:
    print('Even')
else:
    print('Odd')
Buggy python submission (verdict: Runtime Error):
K = input()
S = int(input())

if len(K) <= S:
    print(K)
else:
    print(K[:S]+"...")


Fixed submission:
K = int(input())
S = input()
if len(str(S)) <= K:
    print(S)
else:
    print(S[:K]+'...')

Buggy python submission (verdict: Runtime Error):
K = input()
S = int(input())

if len(K) <= S:
    print(K)
else:
    print(K[:S] + "...")


Fixed submission:
K = int(input())
S = input()
if len(str(S)) <= K:
    print(S)
else:
    print(S[:K]+'...')

Buggy python submission (verdict: Runtime Error):
K = input()

S = int(input())

if len(K) <= S:
    print(K)


else:
    print(K[:S] + "...")


Fixed submission:
K = int(input())
S = input()
if len(str(S)) <= K:
    print(S)
else:
    print(S[:K]+'...')

Buggy python submission (verdict: Runtime Error):
K = input()

S = int(input())

if len(K) <= S:
    print(K)

#[:●]で文字の数の始点をできる
else:
    print(K[:S] + "...")


Fixed submission:
K = int(input())
S = input()
if len(str(S)) <= K:
    print(S)
else:
    print(S[:K]+'...')

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

K = int(input())

if len(S) <= K:
    print(S)

#[:●]で文字の数の始点をできる
else:
    print(S[:K] + "...")


Fixed submission:
K = int(input())
S = input()
if len(str(S)) <= K:
    print(S)
else:
    print(S[:K]+'...')
Buggy python submission (verdict: Runtime Error):
# map関数:map(関数,リスト) リストのすべての要素に関数を適用する
# split関数:変数名.split() 変数を区切る
# split関数は文字列型の為、数字に認識させるためにintを入れる
answer = a * b

print(answer)

Fixed submission:
# 169A
# A * B を整数として出力せよ

# 1.　入力をプログラムで扱えるように受け取ること
a, b = map(int, input().split())
# print(a, b)

# 2.　受け取った入力値を使って、適切に処理（計算）すること
answer = a * b

# 3.　計算した結果を出力する
print(answer)

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

answer = A * B
print(answer)


Fixed submission:
# 169A
# A * B を整数として出力せよ

# 1.　入力をプログラムで扱えるように受け取ること
a, b = map(int, input().split())
# print(a, b)

# 2.　受け取った入力値を使って、適切に処理（計算）すること
answer = a * b

# 3.　計算した結果を出力する
print(answer)
Buggy python submission (verdict: Runtime Error):
product = []

for i in range(1,10):
    for j in range(1,10):
        product.append(i * j)

if N in product:
    result = 'Yes'
else:
    result = 'No'

print(result)


Fixed submission:
N = int(input())

product = []

for i in range(1,10):
    for j in range(1,10):
        product.append(i * j)

if N in product:
    result = 'Yes'
else:
    result = 'No'

print(result)
Buggy python submission (verdict: Runtime Error):
a , b = map(int,input().spilit())

x =  a * b 

if x % 2 == 0:
    print("Even")
else:
    print("odd")



Fixed submission:
a, b = map(int, input().split())
answer = a * b
if answer % 2 == 0:
    print('Even')
else:
    print('Odd')

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

answer = ( a * b )

if answer % 2 == 0:
    print("Even")
else:
    print("odd")



Fixed submission:
a, b = map(int, input().split())
answer = a * b
if answer % 2 == 0:
    print('Even')
else:
    print('Odd')

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

x = ( a * b )

if x % 2 == 0:
    print("Even")
else:
    print("odd")



Fixed submission:
a, b = map(int, input().split())
answer = a * b
if answer % 2 == 0:
    print('Even')
else:
    print('Odd')

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())

x = ( a * b )

if x % 2 == 0:
    print("Even")
else:
    print("odd")

Fixed submission:
a, b = map(int, input().split())
answer = a * b
if answer % 2 == 0:
    print('Even')
else:
    print('Odd')

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())

x = ( a * b )

if x % 2 == 0:
    print("Even")
elif x % 2 != 0:
    print("odd")



Fixed submission:
a, b = map(int, input().split())
answer = a * b
if answer % 2 == 0:
    print('Even')
else:
    print('Odd')

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())

x = ( a * b )

if x % 2 == 0:
    print("Even")
if x % 2 != 0:
    print("odd")



Fixed submission:
a, b = map(int, input().split())
answer = a * b
if answer % 2 == 0:
    print('Even')
else:
    print('Odd')

Buggy python submission (verdict: Runtime Error):
x = ( a * b )

if x % 2 == 0:
    print("Even")
if x % 2 != 0:
    print("odd")


Fixed submission:
a, b = map(int, input().split())
answer = a * b
if answer % 2 == 0:
    print('Even')
else:
    print('Odd')
Buggy python submission (verdict: Runtime Error):
# 166A
# 問題文
# AtCoder 社は、毎週土曜日にコンテストを開催しています。
# コンテストには ABC と ARC の
# 2つの種類があり、毎週どちらか一方が開催されます。
# ABC が開催された次の週には ARC が開催され、ARC が行われた次の週には ABC が開催されます。
# 先週開催されたコンテストを表す文字列 Sが与えられるので、
# 今週開催されるコンテストを表す文字列を出力してください。
#
# 制約: Sは ABC または ARC
# 入力: 入力は以下の形式で標準入力から与えられる。
#  S
# 出力: 今週開催されるコンテストを表す文字列を出力せよ。

# ABC or ARC
S = input()

if S == 'ABC':
    answer = 'ARC'
elif S == 'ARC':
    answer = 'ABC'

print(answer)

Fixed submission:
# 今日の曜日を表す文字列 S が与えられます。
# Sは SUN,MON,TUE,WED,THU,FRI,SAT のいずれかであり、
# それぞれ日曜日、月曜日、火曜日、水曜日、木曜日、金曜日、土曜日を表します。
# 次の日曜日 (あす以降) が何日後か求めてください。

# 入力: 入力は以下の形式で標準入力から与えられる。
# S
# 出力: 次の日曜日が何日後か出力せよ。

week = input()
if week == 'SAT':
    result = 1
elif week == 'FRI':
    result = 2
elif week == 'THU':
    result = 3
elif week == 'WED':
    result = 4
elif week == 'TUE':
    result = 5
elif week == 'MON':
    result = 6
elif week == 'SUN':
    result = 7

print(result)

Buggy python submission (verdict: Runtime Error):
# 今日の曜日を表す文字列 S が与えられます。
# Sは SUN,MON,TUE,WED,THU,FRI,SAT のいずれかであり、
# それぞれ日曜日、月曜日、火曜日、水曜日、木曜日、金曜日、土曜日を表します。
# 次の日曜日 (あす以降) が何日後か求めてください。

# 入力: 入力は以下の形式で標準入力から与えられる。
# S
# 出力: 次の日曜日が何日後か出力せよ。

week = input()
if week == 'SAT':
    result = 1
elif week == 'FRI':
    result = 2
elif week == 'THU':
    result = 3
elif week == 'WED':
    result = 4
elif week == 'TUS':
    result = 5
elif week == 'MON':
    result = 6
elif week == 'SUN':
    result = 7

print(result)

Fixed submission:
# 今日の曜日を表す文字列 S が与えられます。
# Sは SUN,MON,TUE,WED,THU,FRI,SAT のいずれかであり、
# それぞれ日曜日、月曜日、火曜日、水曜日、木曜日、金曜日、土曜日を表します。
# 次の日曜日 (あす以降) が何日後か求めてください。

# 入力: 入力は以下の形式で標準入力から与えられる。
# S
# 出力: 次の日曜日が何日後か出力せよ。

week = input()
if week == 'SAT':
    result = 1
elif week == 'FRI':
    result = 2
elif week == 'THU':
    result = 3
elif week == 'WED':
    result = 4
elif week == 'TUE':
    result = 5
elif week == 'MON':
    result = 6
elif week == 'SUN':
    result = 7

print(result)
Buggy python submission (verdict: Runtime Error):
AB, BC, CA = map(int, input().split())
if (1 <= AB & AB <= 100) & (1 <= BC & BC <= 100) & (1 <= CA & CA <= 100)
    S = int(AB * BC / 2)
    print(S)


Fixed submission:
AB, BC, CA = map(int, input().split())
if (1 <= AB & AB <= 100) & (1 <= BC & BC <= 100) & (1 <= CA & CA <= 100):
    S = int(AB * BC / 2)
    print(S)
Buggy python submission (verdict: Runtime Error):
# 060_a
A, B, C = input().split()

if (1<=len(A) and len(A)<=10 and A.islower()) and (1<=len(B) and len(B)<=10 and B.islower())\
        and (1<=len(C) and len(C)<=10 and C.islower()):
    if (A[len(A) - 1] == B[0]) and (B[0] == C[len(B) - 1]):
        print('YES')
    else:
        print('NO')


Fixed submission:
# 060_a
A, B, C = input().split()

if (1<=len(A) and len(A)<=10 and A.islower()) and (1<=len(B) and len(B)<=10 and B.islower())\
        and (1<=len(C) and len(C)<=10 and C.islower()):
    if (A[len(A) - 1] == B[0]) and (B[len(B) - 1] == C[0]):
        print('YES')
    else:
        print('NO')
Buggy python submission (verdict: Runtime Error):
s = input()
odd_num = list()

for i in range(len(s)):

    if i % 2 == 0:
        odd_num.append(s[i])

answer = ''.join(odd_num)
print(answer)



s = input()
print(s[::2])


Fixed submission:
S = str(input())

print(S[::2])

Buggy python submission (verdict: Runtime Error):
OddString

Fixed submission:
S = str(input())

print(S[::2])
Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())

print(A * B)

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

Buggy python submission (verdict: Runtime Error):
print(a)
print(b)

answer = a * b

print(answer)

Fixed submission:
a, b = map(int, input().split())
 
answer = a * b
 
print(answer)
Buggy python submission (verdict: Runtime Error):
# ABC が開催された次の週には ARC が開催され、ARC が行われた次の週には ABC が開催
# 先週開催されたコンテストを表す文字列Sが与えられる
# 制約: S は ABC または ARC
# S = 'ABC'

if S == 'ABC':
    print('ARC')
else:
    print('ABC')

Fixed submission:
# ABC が開催された次の週には ARC が開催され、ARC が行われた次の週には ABC が開催
# 先週開催されたコンテストを表す文字列Sが与えられる
# 制約: S は ABC または ARC
# S = 'ABC'

S = input()

if S == 'ABC':
    print('ARC')
else:
    print('ABC')
Buggy python submission (verdict: Runtime Error):
day, assignment = map(int, input().split())
assignment_time = map(int, input().split())
if sum(assignment_time) > N:
    print(-1)
else:
    print(N - sum(assignment_time))

Fixed submission:
N, M = map(int, input().split())
A = map(int, input().split())
print(max(N - sum(A), -1))
Buggy python submission (verdict: Runtime Error):
N = int(input())
l = i for i in range(1, int(input()) + 1) if i % 3 != 0 and i % 5 != 0
s = sum(l)
print(s)

Fixed submission:
N = int(input())
sum=0
for i in range(1, N+1):
    if i%3!=0 and i%5!=0:
        sum += i
print(sum)

Buggy python submission (verdict: Runtime Error):
N = int(input())
l = [i for i in range(1, int(input()) + 1) if i % 3 != 0 and i % 5 != 0]
s = sum(l)
print(s)

Fixed submission:
N = int(input())
sum=0
for i in range(1, N+1):
    if i%3!=0 and i%5!=0:
        sum += i
print(sum)

Buggy python submission (verdict: Runtime Error):
term = int(input())
sum = 0
for i in range(1, N + 1):
    if i % 3 != 0 and i % 5 != 0:
        sum += i
print(sum)

Fixed submission:
N = int(input())
sum=0
for i in range(1, N+1):
    if i%3!=0 and i%5!=0:
        sum += i
print(sum)
Buggy python submission (verdict: Runtime Error):
print(('Yes', 'No')[input() in 'AAA' or 'BBB'])

Fixed submission:
S = input()
print('No' if S == 'AAA' or S == 'BBB' else 'Yes')
Buggy python submission (verdict: Runtime Error):
if input() == 'SUN':
    print(7)
elif input() == 'MON':
    print(6)
elif input() == 'TUE':
    print(5)
elif input() == 'WED':
    print(4)
elif input() == 'THU':
    print(3)
elif input() == 'FRI':
    print(2)
else:
    print(1)

Fixed submission:
print(['SAT','FRI','THU','WED','TUE','MON','SUN'].index(input()) + 1)
Buggy python submission (verdict: Runtime Error):
A, B, K = map(int, input().split())
print((i for i in range(1, 101) if A % i + B % i < 1)[-K])

Fixed submission:
integer1, integer2, term = map(int, input().split())
term_value = max(integer1, integer2)
largest_term = 0
while term_value <= 100:
    if integer1 % term_value == 0 and integer2 % term_value == 0:
        largest_term += 1
    if term == largest_term:
        break
    term_value -= 1
print(term_value)
Buggy python submission (verdict: Runtime Error):
length1, length2, length3 = map(int, input().split())
area = AB * BC / 2
print(int(area))

Fixed submission:
AB, BC, CA = map(int, input().split())
print(int(AB * BC / 2))
Buggy python submission (verdict: Runtime Error):
total_item = int(input())
item_cost = []
for i in range(total_item):
    item_cost.append(int(input()))
print(sum(item_cost) - max(item_cost) // 2)v

Fixed submission:
total_item = int(input())
item_cost = []
for i in range(total_item):
    item_cost.append(int(input()))
print(sum(item_cost) - max(item_cost) // 2)
Buggy python submission (verdict: Runtime Error):
X, A, B = map(int, input().split())
print((X - A) % B)

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

Fixed submission:
N, A, B = map(int, input().split())
print(min(N * A, B))
Buggy python submission (verdict: Runtime Error):
a, b = input().split()
if a[0] == b[2] and a[1] == b[1] and a[2] == b[0]:
    print("YES")
else:
    print("NO")


Fixed submission:
print(('NO', 'YES')[input() == input()[::-1]])
Buggy python submission (verdict: Runtime Error):
print(-input() + input() * 2)

Fixed submission:
R, G = (int(input()) for i in range(2))
print(G * 2 - R)
Buggy python submission (verdict: Runtime Error):
A, B, C = map(int, input().split())
print('YES' if a <= c <= b else 'NO')

Fixed submission:
A, B, C = map(int, input().split())
print('Yes' if A <= C <= B else 'No')
Buggy python submission (verdict: Runtime Error):
A, op, B = input().split()
A, B = int(A), int(B)
if op == '+'
    print(A + B)
else:
    print(A - B)

Fixed submission:
print(eval(input()))
Buggy python submission (verdict: Runtime Error):
total_stay = int(input())
normal_stay = int(input())
normal_cost = int(input())
discounted_cost = int(input())
if total_stay <= normal_stay:
  total_cost = total_stay * normal_cost
else:
  total_cost = normal_stay * normal_cost + (total_stay - normal_stay) * discounted_cost
print(P)

Fixed submission:
N, K, X, Y = (int(input()) for i in range(4))
print(K * X + (N - K) * Y if N > K else N * X)
Buggy python submission (verdict: Runtime Error):
a、b  =  map（int、input（）。split（））
印刷（a  *  b）

Fixed submission:
# 入力
S = input()

# 処理&出力
if S == 'ABC':
    print('ARC')
elif S == 'ARC':
    print('ABC')
else:
    print('IDK')

Buggy python submission (verdict: Runtime Error):
#include <iostream>
2 using namespace std;
3 int main(){
4 string s;
5 cin >> s;
6 if(s == "ABC"){
7 cout << "ARC" << endl;
8 }else{
9 cout << "ABC" << endl;
10 }
11 }

Fixed submission:
# 入力
S = input()

# 処理&出力
if S == 'ABC':
    print('ARC')
elif S == 'ARC':
    print('ABC')
else:
    print('IDK')
Buggy python submission (verdict: Runtime Error):
result = 0

for h in heights:
    if h >= K:
        result += 1
print(result)

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

result = 0

for h in heights:
    if h >= K:
        result += 1
print(result)
Buggy python submission (verdict: Runtime Error):
a = input()

if a[2] == "+":
    answer = int(a[0]) + int(a[4])
elif a[2] == "-":
    answer = int(a[0]) - int(a[4])
else:
    print('該当しない')

print(answer)

Fixed submission:
a = eval(input())
print(a)

Buggy python submission (verdict: Runtime Error):
a = input()

if a[2] == "+":
    answer = int(a[0]) + int(a[4])
elif a[2] == "-":
    answer = int(a[0]) - int(a[4])

print(answer)

Fixed submission:
a = eval(input())
print(a)