Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
A=input()
B=input()
C=input()
D=input()

int_A=int(A)
int_B=int(B)
int_C=int(C)
int_D=int(D)

while True:
    int_C-=int_B
    int_A-=int_D
    if int_C<=0:
        result="Yes"
        break
    if int_A<=0:
        result="No"
        break

print(result)

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

while True:
    C -= B
    A -= D

    if C <= 0:
        result = "Yes"
        break
    if A <= 0:
        result = "No"
        break

print(result)

Buggy python submission (verdict: Runtime Error):
A=input("高橋君のHP:")
B=input("高橋君のATK:")
C=input("青木君のHP:")
D=input("青木君のATK:")

int_A=int(A)
int_B=int(B)
int_C=int(C)
int_D=int(D)

while True:
    int_C-=int_B
    int_A-=int_D
    if int_C<=0:
        result="Yes"
        break
    if int_A<=0:
        result="No"
        break

print(result)

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

while True:
    C -= B
    A -= D

    if C <= 0:
        result = "Yes"
        break
    if A <= 0:
        result = "No"
        break

print(result)

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

int_A=int(A)
int_B=int(B)
int_C=int(C)
int_D=int(D)

while True:
    int_C-=int_B
    int_A-=int_D
    if int_C<=0:
        result="YES"
        break
    if int_A<=0:
        result="NO"
        break

print(result)


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

while True:
    C -= B
    A -= D

    if C <= 0:
        result = "Yes"
        break
    if A <= 0:
        result = "No"
        break

print(result)

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

int_A=int(A)
int_B=int(B)
int_C=int(C)
int_D=int(D)

while True:
    int_C-=int_B
    int_A-=int_D
    if int_C<=0:
        result="YES"
        break
    if int_A<=0:
        result="NO"
        break

print(result)


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

while True:
    C -= B
    A -= D

    if C <= 0:
        result = "Yes"
        break
    if A <= 0:
        result = "No"
        break

print(result)

Buggy python submission (verdict: Runtime Error):
A=input("高橋君のHP:")
B=input("高橋君のATK:")
C=input("青木君のHP:")
D=input("青木君のATK:")

int_A=int(A)
int_B=int(B)
int_C=int(C)
int_D=int(D)

while True:
    int_C-=int_B
    int_A-=int_D
    if int_C<=0:
        result="YES"
        break
    if int_A<=0:
        result="NO"
        break

print(result)


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

while True:
    C -= B
    A -= D

    if C <= 0:
        result = "Yes"
        break
    if A <= 0:
        result = "No"
        break

print(result)
Buggy python submission (verdict: Runtime Error):
A,B=int(input())
if A*B<=81:
    print("A*B")
else:
    print("-1")

Fixed submission:
A, B = map(int, input().split())
if A <= 9 and B <= 9:
    print(A * B)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
A,B=map(int,input(),split())
if A<=9 and B<=9:
    print(A*B)
else:
    print(-1)


Fixed submission:
A, B = map(int, input().split())
if A <= 9 and B <= 9:
    print(A * B)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
A,B=map(int,input(),split())
if 1<=A<=9 and 1<=B<=9:
    print(A*B)
else:
    print(-1)


Fixed submission:
A, B = map(int, input().split())
if A <= 9 and B <= 9:
    print(A * B)
else:
    print(-1)
Buggy python submission (verdict: Runtime Error):
b=input()

if b=='A':
    print('T')
elif b=='C':
    print('G')
elif b==('G')
    print('C')
else:
    print('A')

Fixed submission:
b=input()

if b=='A':
    print('T')
elif b=='C':
    print('G')
elif b=='G':
    print('C')
else:
    print('A')
Buggy python submission (verdict: Runtime Error):
name=input()
if name<=999:
    print('ABC')
elif name>=1000:
    print('ABD')
else:
    print()


Fixed submission:
name=int(input())
if name>=1000:
    print('ABD')
else:
    print('ABC')
Buggy python submission (verdict: Runtime Error):
if d >= abs(a - c) or (d >= abs(a - b) and d >= abs(b - c)):
    print('Yes')
else:
    print('No')

Fixed submission:
a, b, c, d = map(int, input().split())
if d >= abs(a - c) or (d >= abs(a - b) and d >= abs(b - c)):
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
a,b=input(int())
if (a*b)%2==0:
    print("偶数")
else:
    print("奇数")

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):
ef to_fizzbuzz(number):
    if number % 15 == 0:
        return 'FizzBuzz'

    if number % 3 == 0:
        return 'Fizz'

    if number % 5 == 0:
        return 'Buzz'

    else:
        return str(number)
        # return i

def main():
    N = int(input())
    # FizzBuzz含む文字列
    fblist = []
    for number in range(1, 10**6):
        result = to_fizzbuzz(number)
        fblist.append(result)

        # print(fblist)

    # Ｎ項目までの数列
    n_list = fblist[0:N]
    # Ｎ項まで　かつ　数字のみの数列

    n_numlist = []

    for s in n_list:
        if s.isdigit() == True:
            n_numlist.append(int(s))

    print(sum(n_numlist))

main()

Fixed submission:
def to_fizzbuzz(number):
    if number % 15 == 0:
        return 'FizzBuzz'

    if number % 3 == 0:
        return 'Fizz'

    if number % 5 == 0:
        return 'Buzz'

    else:
        return str(number)
        # return i

def main():
    N = int(input())
    # this list concludes "FizzBuzz", "Fizz" or "Buzz"
    fblist = []
    for number in range(1, 10**6):
        result = to_fizzbuzz(number)
        fblist.append(result)

    # the list up to N
    n_list = fblist[0:N]
    # this list contains only numbers and up to N

    n_numlist = []

    for s in n_list:
        if s.isdigit() == True:
            n_numlist.append(int(s))

    print(sum(n_numlist))


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

if S == 'SUN':
    print('7')
elif S == 'MON':
    print('6')
elif S == 'TUE':
    print('5')
elif S == 'WED':
    print('4')
elif S == 'THU':
    print('3')
elif S == 'FRI':
    print('2')
elif S == 'SAT':
    print('1')
else:
    print('Error'

Fixed submission:
S = input()

if S == 'SUN':
    print('7')
elif S == 'MON':
    print('6')
elif S == 'TUE':
    print('5')
elif S == 'WED':
    print('4')
elif S == 'THU':
    print('3')
elif S == 'FRI':
    print('2')
elif S == 'SAT':
    print('1')
else:
    print('Error')
Buggy python submission (verdict: Runtime Error):
for i in range(1, N + 1):
    if (i % 3 == 0) and (i % 5 == 0):
        print('FizzBuzz')
    elif i % 3 == 0:
        print('Fizz')
    elif i % 5 == 0:
        print('Buzz')
    else:
        print(str(number))



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

Fixed submission:
import math

N=int(input())

x=800*N
y=(math.floor(N/15))*200

print(x-y)
Buggy python submission (verdict: Runtime Error):
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 = map(int, 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):
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 = map(int, 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 c - a <= d:
    print("Yes")
elif b - a <= d and c - b <= d:
    print("Yes")
else:
    print("No")

Fixed submission:
a,b,c,d = map(int,input().split())
 
if abs(a - c) <= d or abs(b - a) <= d and abs(c - b) <= 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 c - a <= d:
    print("Yes")
elif b - a <= d and c - b <= d:
    print("Yes")
else:
    print("No"

Fixed submission:
a,b,c,d = map(int,input().split())
 
if abs(a - c) <= d or abs(b - a) <= d and abs(c - b) <= d:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
s = input()
for i in range(0, len(s), 2):
  print(s[i], end = '')
s = input()
for i in range(0, len(s), 2):
  print(s[i], end = '')


Fixed submission:
s = str(input())
 
for i in range(len(s)):
    if i % 2 == 0:
        print(s[i], end = '')
Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
A = list(map(int, input().split()))

product = 1
for num in A:
    product = product * num
    if product > 10 ** 18:
        product = -1
    if 0 in A:
        product = 0

print(product)

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


def ans():
    if 0 in A:
        return print(0)
    product = 1
    for num in A:
        product = product * num
        if product > 10 ** 18:
            return print(-1)

    print(product)


ans()

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
A = list(map(int, input().split()))

product = 1
for num in A:
    product = product * num
if product > 10 ** 18:
    print('-1')
else:
    print(product)

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


def ans():
    if 0 in A:
        return print(0)
    product = 1
    for num in A:
        product = product * num
        if product > 10 ** 18:
            return print(-1)

    print(product)


ans()
Buggy python submission (verdict: Runtime Error):
# 入力
A, B = map(int,input().split())

# 処理
if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
else:

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

# 処理
if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
else:
    print('Bob')
Buggy python submission (verdict: Runtime Error):
S = input()

if S = 'MON':
    print("6")

elif S = 'TUE':
    print("5")

elif S = 'WED':
    print("4")

elif S = 'THU':
    print("3")

elif S = 'FRI':
    print("2")

elif S = 'SAT':
    print("1")

elif S = 'SUN':
    print("7")

Fixed submission:
S = input()

if S == 'MON':
    print("6")

elif S == 'TUE':
    print("5")

elif S == 'WED':
    print("4")

elif S == 'THU':
    print("3")

elif S == 'FRI':
    print("2")

elif S == 'SAT':
    print("1")

elif S == 'SUN':
    print("7")
Buggy python submission (verdict: Runtime Error):
today_weather = int()
 
if today_weather = ‘Sunny’:
    tomorrow_weather = "Cloudy"
 
elif today_weather = ‘Cloudy’:
    tomorrow_weather = "Rainy"
 
elif today_weather = ‘Rainy’:
    tomorrow_weather = "Suuny"
 
print(tomorrow_weather)

Fixed submission:
S = input()

if S == 'Sunny':
    print("Cloudy")

elif S == 'Cloudy':
    print("Rainy")

elif S == 'Rainy':
    print("Sunny")

Buggy python submission (verdict: Runtime Error):
today_weather = int()

if today_weather = ‘Sunny’:
    tomorrow_weather = ‘Cloudy’

elif today_weather = ‘Cloudy’:
    tomorrow_weather = ‘Rainy’

elif today_weather = ‘Rainy’:
    tomorrow_weather = ‘Suuny’

print(tomorrow_weather)

Fixed submission:
S = input()

if S == 'Sunny':
    print("Cloudy")

elif S == 'Cloudy':
    print("Rainy")

elif S == 'Rainy':
    print("Sunny")
Buggy python submission (verdict: Runtime Error):
N = int(input())
L = list((int,input().split()))

if max(L) - (sum(L) - max(L)) < 0:
    print('Yes')
else:
    print('No')

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

if max(L) < (sum(L) - max(L)):
    print('Yes')
else:
    print('No')

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

if max(L) - (sum(L) - max(L)) < 0:
    print('Yes')
else:
    print('No')

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

if max(L) < (sum(L) - max(L)):
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
https://atcoder.jp/contests/abc076/submissions/16272116

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

print(2 * G - R)

# 高橋君が取るべきレーティングをXと置くと　(R + X) / 2 = G となる。
# 式を変形すると　X = 2 * G - R となる。これが高橋君が取るべきレーティング。
Buggy python submission (verdict: Runtime Error):
N = int(input())
Print (N * (N + 1) // 2)

Fixed submission:
N = int(input())

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

print(answer)
Buggy python submission (verdict: Runtime Error):
s=input()

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

Fixed submission:
s=input()

if (s=='ABC'):
    print('ARC')
else:
    print('ABC')
Buggy python submission (verdict: Runtime Error):
S

Fixed submission:
S=input()

if S=='Sunny':
    print('Cloudy')
elif S=='Cloudy':
    print('Rainy')
else:
    print('Sunny')
Buggy python submission (verdict: Runtime Error):
N=int(input())
1<=N<=1988

if N<=999:
    print('ABC')
else N>=1000:
    print('ABD')

Fixed submission:
N=int(input())
if N>=1000:
    print('ABD')
else:
    print('ABC')
Buggy python submission (verdict: Runtime Error):
N= map(int,input().split())

if N=

Fixed submission:
N= int(input())

print(N//3)
Buggy python submission (verdict: Runtime Error):
int main (){
int a ,b;
cin >>a > >b;
int c = a * b ;
if ( c %2 == 0) puts (" Even ");
else puts (" Odd ");
return 0;


Fixed submission:
a, b = map(int,input().split())
if a * b % 2 == 0:
  print("Even")
else:
  print("Odd")
Buggy python submission (verdict: Time Limit Exceeded):
a, b, c, d = map(int, input().split())

t_hp = a
a_hp = c

while t_hp > 0 and a_hp > 0:
    t_hp = a - d
    a_hp = c - b

if a_hp <= 0:
    print('Yes')
else:
    print('No')

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

while a > 0 and c > 0:
    a = a - d
    c = c - b

if c <= 0:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
N, M = map(int,input().sprit())
A = list(map(int,input().sprit()))

enjoy = N - sum(A)

if N >= sum(A):
    print(enjoy)

else:
    print('-1')

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

enjoy = N - sum(A)

if N >= sum(A):
    print(enjoy)

else:
    print('-1')
Buggy python submission (verdict: Runtime Error):
n = int(input())

for x in range(1, 9 + 1):
    for y in range(1, 9 + 1):
        if x * y == n:
            a = True

if a:
    print('Yes')
else:
    print('No')

Fixed submission:
n = int(input())
a = 0
for x in range(1, 9 + 1):
    for y in range(1, 9 + 1):
        if x * y == n:
            a = True

if a:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
a = range(1, 8 + 1)
    b = range(1, 8 + 1)
    c = range(1, 8 + 1)
    d = range(1, 8 + 1)

    if a == b or b == c or c == d:
        return ('Bad')
    else:
        return ('Good')

Fixed submission:
s = list(input())

if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
    print('Bad')
else:
    print('Good')
Buggy python submission (verdict: Runtime Error):
s = input()

if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
    print('No')
else:
    print('Yes')

Fixed submission:
s = list(input())
s.sort()
if s == ['a', 'b', 'c']:
    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())
a >= 1
b = int(input())
b <= 10000

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())
a >= 1
b = int(input())
b <= 10000

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):
a = input()
s = input()

if a >= 3200:
    print(s)
else:
    print('red')

Fixed submission:
a = input()
s = input()

if int(a) >= 3200:
    print(s)
else:
    print('red')
Buggy python submission (verdict: Runtime Error):
N = int(input())

if N>=3:  　　　　　   #生徒数が３人以上が必須条件
    print(int(N/3))　 #生徒数を最低条件の３人で割る
else:
    print(0)

Fixed submission:
N = int(input())

x=N//3              #生徒の人数で割ったものがグループ数
                    #//で小数点以下を削除している
print(x)
Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split())
# intは入力に対しての関数、出力ではない

if (a+b)%3 => 0:
    print("Possible")
elif a%3 => 0:
    print("Possible")
elif b%3 => 0:
    print("Possible")
else:
    print("Impossible")

Fixed submission:
a, b = map(int, input().split())
# intは入力に対しての関数、出力ではない

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

if a>b and b!=1 or a==1:
    print("Alice")
elif a==b:
    print("Draw")
else
    print("Bob")

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

if A == B:
    print('Draw')
elif B != 1 and A > B or A == 1:
    print('Alice')
else:
    print('Bob')

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

if a>b and b!=1 or a==1:
    print("Alice")
elif a==b:
    print("Draw")
else
    print("Bob")

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

if A == B:
    print('Draw')
elif B != 1 and A > B or A == 1:
    print('Alice')
else:
    print('Bob')

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

if a>b and b!=1 or a==1:
    print("Alice")
elif a==b:
    print("Draw")
else
    print("Bob")

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

if A == B:
    print('Draw')
elif B != 1 and A > B or A == 1:
    print('Alice')
else:
    print('Bob')
Buggy python submission (verdict: Runtime Error):
a=input()
b=int(a)
c=b%1000
if c=0:
  print(0)
  else print(c)

Fixed submission:
N=int(input())
if  N % 1000 == 0:
  print(0)
else:
    print(1000 - N % 1000)

Buggy python submission (verdict: Runtime Error):
if N%1000=0:
  print(0)
  else:
    print(1000-N%1000)

Fixed submission:
N=int(input())
if  N % 1000 == 0:
  print(0)
else:
    print(1000 - N % 1000)

Buggy python submission (verdict: Runtime Error):
y= N%1000
print(y)

Fixed submission:
N=int(input())
if  N % 1000 == 0:
  print(0)
else:
    print(1000 - N % 1000)

Buggy python submission (verdict: Runtime Error):
y= N%%1000
print(y)

Fixed submission:
N=int(input())
if  N % 1000 == 0:
  print(0)
else:
    print(1000 - N % 1000)
Buggy python submission (verdict: Runtime Error):
a = input()

if a >= 3200:
    print('pink')

elif a < 3200:
    print('red')

Fixed submission:
a = int(input())
s = input()

if a < 3200:
    print('red')

else:
    print(s)
Buggy python submission (verdict: Runtime Error):
if abs(a-c) <= d:
    print('Yes')

elif abs(b - c) <= d and abs(a - b):
    print('Yes')

else:
    print('No')

Fixed submission:
# abc097_a
# 絶対値abs

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

if abs(a-c) <= d:
    print('Yes')

elif abs(b - c) <= d and abs(a - b) <= d:
    print('Yes')

else:
    print('No')
Buggy python submission (verdict: Runtime Error):
N = int(input())
if N%1000==0;
	print(0)
else;
	print(1000*(N//1000+1)-N)

Fixed submission:
N = int(input())
if N%1000==0:
	print(0)
else:
	print(1000*(N//1000+1)-N)
Buggy python submission (verdict: Runtime Error):
N,K = map(int,input().split())
p = list(map(int,input().split()))
print(sum(sorted(p)[:K]))

Fixed submission:
Alp = input()
if Alp.isupper() == True :
  print('A')
else:
  print('a')

Buggy python submission (verdict: Runtime Error):
Alp=input()
if Alp.isupper() = True :
	print('A')
  else:
	print('a')

Fixed submission:
Alp = input()
if Alp.isupper() == True :
  print('A')
else:
  print('a')
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
LeftEnd = [0 for i in range(n)]
Center = [0 for i in range(n)]
RightEnd = [0 for i in range(n)]
for i in range(n):
  robot, arm = map(int, input().split())
  LeftEnd[i] = robot - arm
  Center[i] = robot
  RightEnd[i] = robot + arm

now_rightend = min(RightEnd)

for counter in range(n):
  next_candidates = [RightEnd[i] for i, v in enumerate(LeftEnd) if v >= now_rightend]
  if not next_candidates:
    break
  now_rightend = min(next_candidates)

print(counter+1)

Fixed submission:
n = int(input())
List = [[0 for i in range(3)] for j in range(n)]
for i in range(n):
    robot, arm = map(int, input().split())
    List[i][0] = robot - arm # LeftEnd
    List[i][1] = robot # Center
    List[i][2] = robot + arm # RightEnd

sorted_List = sorted(List, key=lambda x: x[2])

now_rightend = sorted_List[0][2]
counter = 1

for i in range(n):
    if sorted_List[i][0] >= now_rightend:
        now_rightend = sorted_List[i][2]
        counter += 1

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

if s == "SUN":
  print("7")
elif s == "MON":
  print("6")
elif s == "TUE":
  print("5")
elif s == "WED":
  print("4")
elif s == "THU":
  print("3")
elif s == "FRY":
  print("2")
elif s == "SAT":
  print("1")

Fixed submission:
s = str(input())
 
if s == "SUN":
  print("7")
elif s == "MON":
  print("6")
elif s == "TUE":
  print("5")
elif s == "WED":
  print("4")
elif s == "THU":
  print("3")
elif s == "FRI":
  print("2")
elif s == "SAT":
  print("1")
Buggy python submission (verdict: Time Limit Exceeded):
from math import factorial

x, y = map(int, input().split())
if y > x:
  x, y = y, x

a = (x+y)/3
b = (2*y-x)/3
if (x+y)%3 == 0 and (2*y-x)%3 == 0 and a*b >= 0:
  answer = factorial(a) // factorial(b) // factorial(a - b)
  print(answer % (10**9+7))
else:
  print(0)

Fixed submission:
x, y = map(int, input().split())
if y > x:
  x, y = y, x

def cmb(n, r, p):
  if (r < 0) or (n < r):
    return 0
  r = min(r, n - r)
  return fact[n] * factinv[r] * factinv[n-r] % p

p = 10 ** 9 + 7
N = 10 ** 6
fact = [1, 1]
factinv = [1, 1]
inv = [0, 1]
 
for i in range(2, N + 1):
    fact.append((fact[-1] * i) % p)
    inv.append((-inv[p % i] * (p // i)) % p)
    factinv.append((factinv[-1] * inv[-1]) % p)

a = (x+y)//3
b = (2*y-x)//3
if (x+y)%3 == 0 and (2*y-x)%3 == 0 and a*b >= 0:
  print(cmb(a, b, p))
else:
  print(0)
Buggy python submission (verdict: Runtime Error):
a, b = map(int, input(),split())

print(max(0, a-2*b))

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