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

Fixed submission:
a, b, c = map(int, input().split())
ab = a + b
bc = b + c
ac = a + c
if ab < ac and ab < bc:
  print(ab)
elif bc < ab and bc < ac:
  print(bc)
else:
  print(ac)

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
ab = a + b
bc = b + c
ac = a + c
if ab > ac, bc:
  print(ab)
elif bc > ab, ac:
  print(bc)
else:
  print(ac)
Problem p03679 (python)

Fixed submission:
x, a, b = map(int, input().split())
if a >= b:
    print('delicious')
elif a + x >= b:
    print('safe')
else:
    print('dangerous')

Buggy submission (verdict: Runtime Error):
x, a, b = map(int, input().split())
if x < b - a:
  print("dangerous")
elif x <= b - a and 0 < x - (a - b):
  primt("safe")
elif 0 >= b - a:
  print("delicious")

Buggy submission (verdict: Runtime Error):
x, a, b = map(int, input().split())
if x < b - a:
  print("dangerous")
elif x == b - a:
  primt("safe")
elif x <= b - a and 0 <= a - b:
  print("delicious")

Buggy submission (verdict: Runtime Error):
x, a, b = map(int, input().split())
if x < b - a:
  print("dangerous")
elif x == b - a:
  primt("safe")
elif x <= b - a:
  print("delicious")

Buggy submission (verdict: Runtime Error):
x, a, b = map(int, input().split())
if x < b - a:
  print("dangerous")
elif x <= b - a:
  print("delicious")
else:
  primt("safe")
Problem p03697 (python)

Fixed submission:
a, b = map(int, input().split())
if a + b >= 10:
  print("error")
else:
  print(a + b)

Buggy submission (verdict: Runtime Error):
a, b = int(input().split())
if a + b >= 10:
  print("error")
else:
  print(a + b)

Buggy submission (verdict: Runtime Error):
a, b = int(input().split())
if a + b >= 10:
  print("error")
else:
  print(a + B)
Problem p03711 (python)

Fixed submission:
a, b = map(int, input().split())
g1 = [1, 3, 5, 7, 8, 10, 12]
g2 = [4, 6, 9, 11]
g3 = [2]
if a in g1  and b in g1:
  print("Yes")
elif a in g2  and b in g2:
  print("Yes")
elif a in g3  and b in g3:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
g1 = [1, 3, 5, 7, 8, 10, 12]
g2 = [4, 6, 9, 11]
g3 = [2]
if g1 in a and g1 in b:
  print("Yes")
elif g2 in a and g2 in b:
  print("Yes")
elif g3 in a and g3 in b:
  print("Yes")
else:
  print("No")
Problem p03737 (python)

Fixed submission:
a, b, c = input().split()
print((a[0] + b[0] + c[0]).upper())

Buggy submission (verdict: Runtime Error):
a, b, c = input().split().upper()
print((a[0], b[0], c[0]).sep())

Buggy submission (verdict: Runtime Error):
a, b, c = input().split()
print((a[0], b[0], c[0]).sep())

Buggy submission (verdict: Runtime Error):
a, b, c = map(str, input().split().upper())
print(a[0] + b[0] + c[0])

Buggy submission (verdict: Runtime Error):
a, b, c = map(str, input().split().upper())
print(a[0] + b[0] + c[0])
Problem p03773 (python)

Fixed submission:
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:
a, t = input().split()
if a == t:
  print("H")
else:
  print("D")

Buggy submission (verdict: Runtime Error):
a = input()
t = input()
if a == "H" and t == "H":
  print("H")
elif a == "H" and t == "D":
  print("D")
elif a == "D" and t == "H":
  print("D")
elif a == "D" and t == "D"
  print("H")
else:
  pass

Buggy submission (verdict: Runtime Error):
a = input()
t = input()
if a == "H" and t == "H":
  print("H")
elif a == "H" and t == "D":
  print("D")
elif a == "D" and t == "H":
  print("D")
else:
  pass

Buggy submission (verdict: Runtime Error):
a = input()
t = input()
if a == t:
  print("H")
elif a != t :
  print("D")
else:
  pass

Buggy submission (verdict: Runtime Error):
a,t = map(string, input().split())
if a == t:
  print("H")
elif a != t:
  print("D")

Buggy submission (verdict: Runtime Error):
a,t = map(string, input().split())
if a == t:
  print("H")
elif a != t :
  print("D")
Problem p03795 (python)

Fixed submission:
n = int(input())
x = 800*n
y = 200*(int(n/15))
print(x-y)

Buggy submission (verdict: Runtime Error):
n = int(input())
x = 800*n
b = n%15
if b == 0:
  y = 200*b
print(x-y)
Problem p03844 (python)

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

Buggy submission (verdict: Runtime Error):
A, OP, B== input().split()
a= int(A)
b= int(B)
print(a+b if OP== "+" else a-b)

Buggy submission (verdict: Runtime Error):
A, B= map(int(input().split))
OP= input()
P= A + B
M= A - B
print(P if OP== + else M)

Buggy submission (verdict: Runtime Error):
A, X, B= map(int, input().split())
P= A + B
M= A - B
print(P if X== str(-) else M )
Problem p03852 (python)

Fixed submission:
c = input()
if c in ["a", "i", "u", "e", "o"]:
  print("vowel")
else:
  print("consonant")

Buggy submission (verdict: Runtime Error):
c = input()
if c in [a, i, u, e, o]:
  print("vowel")
else:
  print("consonant")

Buggy submission (verdict: Runtime Error):
c = input()
if c == "a", "i", "u", "e", "o":
  print("vowel")
else:
  print("consonant")
Problem p03860 (python)

Fixed submission:
Atcoder, s, Contest= map(str, input().split())
print("A" + s[0] + "C")

Buggy submission (verdict: Runtime Error):
A, X, C= map(int,input().split())
print(A[0] + X[0] + C[0])

Buggy submission (verdict: Runtime Error):
c= list(map(int,input().split()))
print(str[1])
Problem p03943 (python)

Fixed submission:
candy= sorted(map(int,input().split()))
print("Yes" if candy[0]+candy[1]== candy[2] else "No")

Buggy submission (verdict: Runtime Error):
candy=sorted(map(int,input().split()))
print("Yes" if candy[0]+candy[1]==candy[2] "No")

Buggy submission (verdict: Runtime Error):
candy=sorted(map(int,input().split()))
print("Yes" if candy[0]+candy[1]=candy[2] "No")

Buggy submission (verdict: Runtime Error):
candy=sorted(map(int,input().split()))
print("Yes" if candy[0]+candy[1]=candy[2])

Buggy submission (verdict: Runtime Error):
A, B, C = [int(input()) for _ in range(3)]
if A + B == C or B + C == A or C + A == B:
  print("Yes")
else:
  print("No")
Problem p03962 (python)

Fixed submission:
color = list(map(int,input().split()))
print(len(set(color)))

Buggy submission (verdict: Runtime Error):
color = list(map(int,input().split))
print(len(set(color)))

Buggy submission (verdict: Runtime Error):
color = list(map(int, input().split()))
print(len(set(color))

Buggy submission (verdict: Runtime Error):
color = set(map(int, input().split))
print(len(color))

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

Buggy submission (verdict: Runtime Error):
a, b, c = [int(input()) for _ in range(3)]
if (a == b != c) or (b == c != a) or (c == a != b):
  print(2)
elif (a == b == c):
  print(1)
else:
  print(3)

Buggy submission (verdict: Runtime Error):
a, b, c = [int(input()) for_in range(3)]
if a == b != c or b == c != a or c == a != b:
  print(2)
elif (a == b == c):
  print(1)
else:
  print(3)

Buggy submission (verdict: Runtime Error):
a, b, c = [int(input()) for_in range(3)]
if (a == b != c) or (b == c != a) or (c == a != b):
  print(2)
elif (a == b == c):
  print(1)
else:
  print(3)
Problem p03997 (python)

Fixed submission:
a, b, h = [int(input()) for _ in range(3)]
print((a+b)*h//2)

Buggy submission (verdict: Runtime Error):
a, b, h = [int(input()) for _ i in range(3)]
print(int((a+b)*h/2))

Buggy submission (verdict: Runtime Error):
a,b,h=[int(input()) for _ i in range(3)]
print((a+b)*h//2)

Buggy submission (verdict: Runtime Error):
a,b,c=[int(input()) for _ i in range(3)]
print(int(a+b)*h/2)

Buggy submission (verdict: Runtime Error):
a,b,c=[int(input()) for _ i in range(3)]
print((a+b)*h//2)

Buggy submission (verdict: Runtime Error):
a,b,c=[int(input()) for_i in range(3)]
print((a+b)*h//2)
Problem p04011 (python)

Fixed submission:
N=int(input())
K=int(input())
X=int(input())
Y=int(input())
 
a=K
b=N-K
c=N
 
if b>0:
	print(a*X+b*Y)
else:
	print(c*X)

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

total_price = ((k * X) + ((N - K) * Y))
print(total_price)
Problem p04029 (python)

Fixed submission:
N = int(input())
print(int(N * (N + 1) / 2))

Buggy submission (verdict: Runtime Error):
N = int(input)
for total in N:
  print(N * (N + 1)/2)

Buggy submission (verdict: Runtime Error):
N = int(input())
for total in N:
  (N += 1)
  print(N + (N + 1))
Problem p04043 (python)

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

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

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

if a == 5 and b == 7 and c == 5:
  print("YES")
else:
  print("NO")

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
if a == 5 and b == 7 and c = 5:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = int(input())
if a　＋　b　＋　c　==　１７：
	print("YES")
else:
	print("NO")
Problem p04044 (python)

Fixed submission:
n, l = map(int, input().split())
s = [input() for i in range(n)]
s.sort()
print("".join(s))

Buggy submission (verdict: Runtime Error):
n, l = map(int, input().split())
s = list([input() for i in ramge(n)])
s1 = s.sort()
print("".join(s1))

Buggy submission (verdict: Runtime Error):
n, l = map(int, input().split())
s = [input() for i in ramge(n)]
s1 = s.sort()
print("".join(s1))

Buggy submission (verdict: Runtime Error):
n, l = int(input())
s = [int(input()) for i in range(n) ]
print(sorted(s))
Problem p02921 (python)

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

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

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

if s[0] == t[0] and s[1] == t[1] and s[2] == t[2]:
    print(3)
elif (s[0] == t[0] and s[1] == t[1]) or (s[1] == t[1] and s[2] == t[2]) or (s[0] == t[0] and s[3] == t[3]):
    print(2)
elif s[0] == t[0] or s[1] == t[1] or s[2] == t[2]:
    print(1)
else:
    print(0)
Problem p02922 (python)

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

ans = 0
out = 1

while out < b:
    out -= 1
    out += a
    ans += 1

print(ans)

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

ans = 0

while b > 0:
	if b - ( a - 1 ) > a:
    	b -= a - 1
        ans += 1
    else:
        b -= a
        ans += 1

print(ans)
Problem p03598 (python)

Fixed submission:
n = int(input())
k = int(input())
x = list(map(int, input().split()))
ans = 0

for i in x:
    ans += min(i*2, (k-i)*2)
    
print(ans)

Buggy submission (verdict: Runtime Error):
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n, k;  
  cin >> n >> k ;

  int ans = 0;
  int x;
  for (int i=0; i<n; i++) {
    cin >> x;
    ans += min(x*2, (k-x)*2);
  }

  cout << ans << endl;
}
Problem p02772 (python)

Fixed submission:
N = int(input())
inList = list(map(int, input().split(" ")))
 
evenList = list([])
 
for item in inList:
  if item % 2 == 0:
    evenList.append(item)

jdgList = list([])
 
for evenItem in evenList:
  if ((evenItem % 3) == 0) or ((evenItem % 5) == 0):
    jdgList.append(evenItem)

if len(jdgList) == len(evenList):
  print("APPROVED")
else:
  print("DENIED")

Buggy submission (verdict: Runtime Error):
N = int(input())
inList = list(map(int, input().aplit(" ")))

evenList = list([])

for item in inList:
  if item % 2 == 0:
    evenList.append(item)

jdgList = list([])

for evenItem in evenList:
  if ((evenItem % 3) == 0) or ((evenItem % 5) == 0):
    jdgList.append(evenItem)

if len(jdgList) == len(evenList):
  print("APPROVED")
else:
  print("DENIED")
Problem p03455 (python)

Fixed submission:
i, j = map(int, input().split(" "))

if (i * j) % 2 == 0:
  print("Even")
else:
  print("Odd")

Buggy submission (verdict: Runtime Error):
i j = map(int, input().split(" "))

if i*j % 2 == 0:
  print("Even")
else:
  print("Odd")
Problem p03493 (python)

Fixed submission:
s = str(input())

count = 0

for i in range(len(s)):
  if s[i] == "1":
    count += 1

print(count)

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

count = 0

for i in range(len(s)):
  if s[i] == "1":
    count++

print(count)
Problem p03796 (python)

Fixed submission:
import math
n = int(input())
b = pow(10, 9) + 7
print(math.factorial(n) % b)

Buggy submission (verdict: Runtime Error):
import math
n = int(input())
print(math.factorial(n) / (pow(10, 9) + 7))
Problem p03323 (python)

Fixed submission:
text = input().split()
a = (int)(text[0])
b = (int)(text[1])

if (a > 8 or b > 8):
    print(":(")
else:
    print("Yay!")

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

if (a > 8 or b > 8):
    print(":(")
else:
    print("Yay!")
Problem p02761 (python)

Fixed submission:
n,m = map(int, input().split())
ans = [10 for i in range(n)]
flag = 0
for i in range(m):
    s,c = map(int, input().split())
    if s==1 and c==0 and n!=1:
        flag = -1
    if ans[s-1]!=10 and ans[s-1]!=c:
        flag = -1
    ans[s-1] = c
#print(ans)
if ans[0]==10 and n!=1:
    ans[0]=1
    if n==2 or n==3:
        if ans[1]==10:
            ans[1]=0
            if n==3:
                if ans[2]==10:
                    ans[2]=0
for i in range(n):
    if ans[i]==10:
        ans[i]=0
map_ans = map(str, ans)
answer =''.join(map_ans)

print(-1 if flag==-1 else answer)

Buggy submission (verdict: Runtime Error):
n,m = map(int, input().split())
ans = [10 for i in range(n)]
flag = 0
for i in range(m):
    s,c = map(int, input().split())
    if s==1 and c==0:
        flag = -1
    if ans[s-1]!=10 and ans[s-1]!=c:
        flag = -1
    ans[s-1] = c
#print(ans)
if ans[0]==10:
    ans[0]=1
    if ans[1]==10:
        ans[1]=1
        if ans[2]==10:
            ans[2]=1
for i in range(n):
    if ans[i]==10:
        ans[i]=0
map_ans = map(str, ans)
answer =''.join(map_ans)

print(-1 if flag==-1 else answer)
Problem p03795 (python)

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

Buggy submission (verdict: Runtime Error):
print(800*int(input())-200*(int(input())//15))

Buggy submission (verdict: Runtime Error):
print(800*int(input())-200*(n//15))
Problem p02718 (python)

Fixed submission:
# A = [int(x) for x in line2.split()]

N, M = [int(x) for x in input().split()]
A = [int(x) for x in input().split()]


A = sorted(A)[::-1]
total = sum(A)
thre = total * (1 / (4*M))
if A[M-1] < thre:
    print('No')
else:
    print('Yes')

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python3

# line1 = '12 3'
# line2 = '4 56 78 901 2 345 67 890 123 45 6 789'
# N, M = [int(x) for x in line1.split()]
# A = [int(x) for x in line2.split()]

N, M = [int(x) for x in input().split()]
A = [int(x) for x in input().split()]


A = sorted(A)[::-1]
total = sum(A)
if A[M] < total * (1 / (4 * M)):
    print('No')
else:
    print('Yes')

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python3

# line1 = '12 3'
# line2 = '4 56 78 901 2 345 67 890 123 45 6 789'
# N, M = [int(x) for x in line1.split()]
# A = [int(x) for x in line2.split()]

N, M = [int(x) for x in input().split()]
A = [int(x) for x in input().split()]


A = sorted(A)[::-1]
total = sum(A)
if A[M] < total * (1 / (4 * M)):
    print('No')
else:
    print('Yes')

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python3


N, M = [int(x) for x in input().split()]
A = [int(x) for x in input().split()]

A = sorted(A)[::-1]
total = sum(A)
print(A[M-1])
if A[M] < total * (1 / (4 * M)):
    print('No')
else:
    print('Yes')

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python3


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

A = sorted(A)[::-1]
total = sum(A)
print(A[M-1])
if A[M] < total * (1 / (4 * M)):
    print('No')
else:
    print('Yes')
Problem p03424 (python)

Fixed submission:
n = int(input())

hlist = input().split()

cnt = 0

for i in range(n):
        if hlist[i] == "Y":
                cnt += 1
if cnt > 0:
        print ('Four')
else:
        print ('Three')

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

hlist = input().split()

cnt = 0

for i in range(n):
        if hlist[i] == "Y":
                cnt += 1
if cnt > 0:
        print ('Four')
else:
        print ('Three')
~
Problem p03109 (python)

Fixed submission:
date = input().split("/")
sum = int(date[0]) * 365 + int(date[1]) * 30 + int(date[2])

if 737085 < sum:
    print("TBD")
else:
    print("Heisei")

Buggy submission (verdict: Runtime Error):
date = input().split("/")
    sum = int(date[0]) * 365 + int(date[1]) * 30 + int(date[2])

    if 737085 < sum:
        print("TBD")
    else:
        print("Heisei")
Problem p02724 (python)

Fixed submission:
x = int(input())
big = x // 500
small = x % 500 // 5
grace = big*1000 + small*5
print(grace)

Buggy submission (verdict: Runtime Error):
x = input()
big = x // 500
small = x % 500 // 5
grace = big + small
print(grace)
Problem p02995 (python)

Fixed submission:
import fractions
a, b, c, d = map(int, input().split())
a = a -1
e = (c * d) // fractions.gcd(c, d)
nc = b // c - a // c
nd = b // d - a // d
ne = b // e - a // e

print(b - a - (nc + nd - ne))

Buggy submission (verdict: Runtime Error):
import math
a, b, c, d = map(int, input().split())
a = a -1
e = (c * d) // math.gcd(c, d)
nc = b // c - a // c
nd = b // d - a // d
ne = b // e - a // e

print(b - a - (nc + nd - ne))

Buggy submission (verdict: Runtime Error):
import math
a, b, c, d = map(int, input().split())
a = a -1
e = (c * d) // math.gcd(c, d)
nc = b // c - a // c
nd = b // d - a // d
ne = b // e - a // e

print(b - a - (nc + nd - ne))
Problem p03037 (python)

Fixed submission:
n, m = map(int, input().split())
gates = []
for i in range(m):
    gates.append(list(map(int, input().split())))
candidate = [1, n]
for gate in gates:
    if candidate[0] < gate[0]:
        candidate[0] = gate[0]
    if gate[1] < candidate[1]:
        candidate[1] = gate[1]
if (candidate[1] >= candidate[0]):
    print(candidate[1] - candidate[0] + 1)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
n, m = map(int, input().split())
gates = []
for i in range(m):
    gates.append(list(map(int, input().split())))
candidate = [1, n]
for gate in gates:
    if candidate[0] < gate[0]:
        candidate[0] = gate[0]
    if gate[1] < candidate[1]:
        candidate[1] = gate[1]
if candidate[1] == canditate[0]:
    print(0)
else:
    print(candidate[1] - candidate[0] + 1)
Problem p02727 (python)

Fixed submission:
X, Y, A, B, C = map(int, input().split())
p = list(map(int, input().split()))
q= list(map(int, input().split()))
r= list(map(int, input().split()))
p.sort(reverse = True)
q.sort(reverse = True)
r.sort(reverse = True)
ls = []
for i in range(X):
    ls.append(p[i])
for i in range(Y):
    ls.append(q[i])
ls.extend(r)
ls.sort(reverse = True)
print(sum(ls[:X+Y]))

Buggy submission (verdict: Runtime Error):
X, Y, A, B, C = map(int, input().split())
p = list(map(int, input().split()))
q= list(map(int, input().split()))
r= list(map(int, input().split()))
p.sort(reverse = True)
q.sort(reverse = True)
r.sort(reverse = True)
ls = []
for i in range(X):
    ls.append(p[i])
for i in range(Y):
    ls.append(q[i])
while(r != []):
    for i in range(len(r)):
        minimum = min(ls)
        if r[i] > minimum:
            ls[ls.index(minimum)] = r[i]
        r.pop(0)
print(sum(ls))

Buggy submission (verdict: Runtime Error):
X, Y, A, B, C = map(int, input().split())
p = list(map(int, input().split())).sort(reverse = True)
q= list(map(int, input().split())).sort(reverse = True)
r= list(map(int, input().split())).sort(reverse = True)
ls = []
for i in range(X):
    ls.append(p[i])
for i in range(Y):
    ls.append(q[i])
    
while(r != []):
    for i in range(len(r)):
        minimum = min(ls)
        if r[i] >= min(ls):
            ls[ls.index(minimum)] = r[i]
        r.pop(0)
print(sum(ls))
Problem p02747 (python)

Fixed submission:
S = list(input())

word_num = int(len(S)/2)

temp_num = 0

if len(S) % 2 == 0:
    for i in range(word_num):
        if S[2*i]+S[2*i+1] == 'hi':
            pass
        else:
            temp_num += 1
else:
    pass

if len(S) % 2 == 0 and temp_num == 0:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
S = [int(e) for e in input().split()]
list_a =  [int(e) for e in input().split()]
list_b =  [int(e) for e in input().split()]

dis_list = []

for i in range(S[2]):
    dis_list.append([int(e) for e in input().split()])

cost_list = []
min_num = min(list_a) + min(list_b)

for i in list_a:
    for j in list_b:
        cost_list.append(i+j)


for l in dis_list:
    if (cost_list[S[0]*(l[0]-1)+l[1]-1] - l[2]) < min_num:
        min_num = cost_list[S[0]*(l[0]-1)+l[1]-1] - l[2]

print(min_num)

Buggy submission (verdict: Runtime Error):
S = [int(e) for e in input().split()]
list_a =  [int(e) for e in input().split()]
list_b =  [int(e) for e in input().split()]

dis_list = []

for i in range(S[2]):
    dis_list.append([int(e) for e in input().split()])

cost_list = []
min_num = min(list_a)+min(list_b)

for i in list_a:
    for j in list_b:
        cost_list.append(i+j)


for l in dis_list:
    if cost_list[S[0]*(l[0]-1)+l[1]-1] - l[2] < min_num:
        min_num = cost_list[S[0]*(l[0]-1)+l[1]-1] - l[2]

print(min_num)

Buggy submission (verdict: Runtime Error):
S = [int(e) for e in input().split()]
list_a =  [int(e) for e in input().split()]
list_b =  [int(e) for e in input().split()]

dis_list = []

for i in range(S[2]):
    dis_list.append([int(e) for e in input().split()])

cost_list = []

for i in list_a:
    for j in list_b:
        cost_list.append(i+j)

Buggy submission (verdict: Runtime Error):
S = [int(e) for e in input().split()]
list_a =  [int(e) for e in input().split()]
list_b =  [int(e) for e in input().split()]

dis_list = []

for i in range(S[2]):
    dis_list.append([int(e) for e in input().split()])
Problem p02841 (python)

Fixed submission:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())

# print(m1)
# print(m2)

if m1 < m2:
    print('1')
else:
    print('0')

Buggy submission (verdict: Runtime Error):
m1 = map(int,input().split()
m2 = map(int,input().split()

if m1[0] < m2[0]:
    print('1')
else:
    print('0')
Problem p02848 (python)

Fixed submission:
n = int(input())
s = list(input())

alpha = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')

for i in range(len(s)):
  s[i] = alpha[(int(alpha.index(s[i]))+n)%26]

print(''.join(s))

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

alpha = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')

for i in len(s)
  s[i] = alpha[(alpha.index(s[i])+n)%26]

print(''.join(s))
Problem p02730 (python)

Fixed submission:
S = input()

def solve(string): return True if string == string[::-1] else False

if solve(S) and solve(S[:round((len(S) - 1) / 2)]) and solve(S[round((len(S) + 3) / 2) - 1:]):
    print("Yes")
else:
    print("No")

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

def solve(s):
    for i in range(len(s) // 2 + 1):
        if s[i] != s[- i - 1]:
            return False
    
    return True

if solve(S) and solve(S[:(len(S) - 1) // 2]) and solve(S[(len(S) + 3) // 2 + 1:]):
    print("Yes")
else:
    print("No")