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

Fixed submission:
a,b=map(int,input().split())
s=0
g=0
if a==1:
  s=300000
elif a==2:
  s=200000
elif a==3:
  s=100000
else:
  s=0
if b==1:
  g=300000
elif b==2:
  g=200000
elif b==3:
  g=100000
else:
  g=0
if a==1 and b==1:
  print(g+s+400000)
else:
  print(s+g)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a==1:
  s=300000
elif a==2:
  s=200000
elif a==3:
  s=100000
else:
  pass
if b==1:
  g=300000
elif b==2:
  g=200000
elif b==3:
  g=100000
else:
  pass
if a==1 and b==2:
  print(g+s+400000)
else:
  print(s+g)

Buggy submission (verdict: Runtime Error):
a,b=map(int.input(),split())
s=0
g=0
if a==1:
  s=300000
elif a==2:
  s=200000
elif a==3:
  s=100000
else:
  pass
if b==1:
  g=300000
elif b==2:
  g=200000
elif b==3:
  g=100000
else:
  pass
if a==1 and b==2:
  print(g+s+400000)
else:
  print(s+g)

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
s=0
g=0
if a==1:
  s=300000
elif a==2:
  s=200000
elif a==3:
  s=100000
else:
  pass
if b==1:
  g=300000
elif b==2:
  g=200000
elif b==3:
  g=100000
else:
  pass
if a==1 and b==2:
  print(g+s+400000)
else:
  print(s+g)

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
s=0
g=0
if a==1:
  s=300000
elif a==2:
  s=200000
elif a==3:
  s=100000
else:
  pass
if b==1:
  g=300000
elif b==2:
  g=200000
elif b==3:
  g=100000
else:
  pass
if a=1 and b=2:
  print(g+s+400000)
else:
  print(s+g)

Buggy submission (verdict: Runtime Error):
a,b=map(int(input().split()))
s=0
g=0
if a==1:
  s=300000
elif a==2:
  s=200000
elif a==3:
  s=100000
else:
  pass
if b==1:
  g=300000
elif b==2:
  g=200000
elif b==3:
  g=100000
else:
  pass
if a=1 and b=2:
  print(g+s+400000)
else:
  print(s+g)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
s=0
g=0
if a==1:
  s=300000
elif a==2:
  s=200000
elif a==3:
  s=100000
else:
  pass
if b==1:
  g=300000
elif b==2:
  g=200000
elif b==3:
  g=100000
else:
  pass
if a=1 and b=2:
  print(g+s+400000)
else:
  print(s+g)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
s=0
g=0
if a==1:
  s=300000
elif a==2:
  s=200000
elif a==3:
  s=100000
else:
  pass
if b==1:
  g=300000
elif b==2:
  g=200000
elif b==3:
  g=100000
else:
  pass
if a=1 and b=2:
  print(300000+300000+400000)
else:
  print(s+g)
Problem p02885 (python)

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

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
if a-b*2<=0:
  
  print(0)
else:
  print(a-b*2)

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
if a-b＊2<=0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
if a-(b＊2)<=0:
  
  print(0)
else:
  print(a-(b＊2))

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a-b＊2<=0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a-b＊2<=0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a-b＊2<0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
if a-b＊2<0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
if a-b＊2<0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
if a-b＊2<=0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=int,input().split()
if a-b＊2<=0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=map(int.input(),split())
if a-b＊2<=0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=map(int.input(),split())
if a-b＊2<=0:
  
  print(0)
else:
  print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=map(int.input(),split())
if a-b＊2<=0:
 print(0)
else:
 print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=map(int.input(),split())
if a-b＊2<0:
 print(0)
else:
 print(a-b＊2)

Buggy submission (verdict: Runtime Error):
a,b=map(int.input(),split())
if a-b＊2>=0:
  print(a-b＊2)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
a,b=map(int.input(),split())
if a-b＊2>=0:
  print(a-b＊2)
else:
   print('0')

Buggy submission (verdict: Runtime Error):
a,b=int.input(),split()
if a-b＊2>=0:
  print(a-b＊2)
else:
   print('0')

Buggy submission (verdict: Runtime Error):
a,b=int.input(),split()
if a-b＊2>=0:
  print(a-b＊2)
else:
   print(0)
Problem p02886 (python)

Fixed submission:
a=int(input())
import itertools 
b=list(map(int,input().split()))
c=0
for d,e in itertools.combinations(b,2):
  c+=d*e
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
import itertools
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c+=d*e
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
import itertools
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  
    c+=d*e
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
import itertools
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c+=d*e
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
import intertools
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c+=d*e
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c+=d*e
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c=d*e
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
c=0
b=list(map(int,input().split()))
for i in range(a-1):
  c+=(a[i]*a[i+1])
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
c=[]
b=list(map(int,input().split()))
c=b.sort()
print(c[-1]*c[-2])
Problem p02898 (python)

Fixed submission:
a,b=map(int,input().split())
d=0
c=list(map(int,input().split()))
for i in range(a):
  if c[i]>=b:
    d+=1
  else:
    pass
print(d)

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

print(list_s>=b)
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()
if a=("Sunny"):
  print("Cloudy")
elif a=("Cloudy"):
  print("Rainy")
else:
  print("Sunny")

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

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

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

Buggy submission (verdict: Runtime Error):
a=input()
list=["Sunny","Cloudy","Rainy"]
if a=list[0]:
  print(list[1])
elif a=list[1]:
  print(list[2])
else:
  print(list[0])

Buggy submission (verdict: Runtime Error):
a=input()
list=["Sunny","Cloudy","Rainy"]
if a=list[0]:
  print(list[1])
elif a=list[1]:
  print(list[2])
else:
  print(list[0])

Buggy submission (verdict: Runtime Error):
a=input()
list=["Sunny";0,"Cloudy";1,"Rainy";2]
if a=list[0,1]:
  print(list[a+=1])
else:
  print(list[0])

Buggy submission (verdict: Runtime Error):
a=input()
list=["Sunny";0,"Cloudy";1,"Rainy";2]
if a=list[0] or a=list[1]:
  print(list[a+=1])
else:
  print(list[0])

Buggy submission (verdict: Runtime Error):
a=input()
list=["Sunny":0,"Cloudy":1,"Rainy":2]
if a=list[0] or a=list[1]:
  print(list[a+=1])
else:
  print(list[0])

Buggy submission (verdict: Runtime Error):
a=input()
list=["Sunny","Cloudy","Rainy"]
if a=list[0]:
  print(list[1])
elif a=list[1]:
  print(list[2])
else:
  print(list[0])

Buggy submission (verdict: Runtime Error):
a=input()
list=["Sunny","Cloudy","Rainy"]
if a=list[0]:
  print(list[1])
elif a=list[1]:
  print(list[2])
else:
  print(list[0])

Buggy submission (verdict: Runtime Error):
a=input()
list=["Sunny","Cloudy","Rainy"]
if a=list[0] or list[1]:
  print(list[a+1])
else:
  print(list[0])

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

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

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

c=a+ba
d=a-b
e=a*b
f=[c,d,e]
print(max(f))
Problem p02946 (python)

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

for i in range(b-(a-1),b+(a-1)+1):
  print(i,end=" ")

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
import math
c=[]
b+=(a-1)
for i in range(math.abs(b-a)+1):
  
  c+=b
  b-=1
print(int(c))
Problem p02981 (python)

Fixed submission:
a,b,c=map(int,input().split())
d=a*b
if d>=c:
  print(c)
else:
  print(d)

Buggy submission (verdict: Runtime Error):
n,a,b=map(int,input().split())
print(min(n*a,b)
Problem p02993 (python)

Fixed submission:
a=input()
if a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:
  print('Bad')
else:
  print('Good')

Buggy submission (verdict: Runtime Error):
import sys
a=list(input())
b=''
c=0
for i in range(4):
  if b=a[i]:
    c+=1
    if c>=2:
      print('Bad')
    else:
      print('Good')
    
  else:
    pass
  c=0
print('Bad')

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

Fixed submission:
n,l=map(int,input().split())
ans=[]
sum=0
for i in range(n):
    ans.append([abs(l+i),l+i])
    sum+=l+i
ans.sort()
print(sum-ans[0][1])

Buggy submission (verdict: Runtime Error):
import math as m
import sys
a,b=map(int,input().split())
c=0
if a+b<0:
  for i in range(a-1):
    c+=m.sqrt(b)
    b+=1
  print(c)
  sys.exit()
else:
  for i in range(a-1):
    c+=(b+1)
    b+=1
  print(c)
Problem p03000 (python)

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

d = 0
ans = 1
for li in l:
    d += li
    if d > x:
        break
    ans += 1
print(ans)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
c=list(map(int,input().split()))
d=0
e=0
f=1
while 1:
  d+=c[e]
  e+=1
  f+=1
  if d>=b:
    print(f)
    break
  else:
    pass
Problem p03071 (python)

Fixed submission:
a,b=map(int,input().split())
c=0
for i in range(2):
  if a>=b:
    c+=a
    a-=1
  else:
    c+=b
    b-=1
print(c)

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


for i in range(2):
  
  d+=max(c)
  max(c)=d-1
print(d)

Buggy submission (verdict: Runtime Error):
a=list(map(int,input().split()))
for i in range(2):
  
  b+=max(a)
  max(a)=max(a)-1
print(b)
Problem p03377 (python)

Fixed submission:
a,b,c=map(int,input().split())
if a+b>=c and a<=c:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
a,b.c=map(int,input().split())
if a+b<c:
    print('NO')
else:
    print('YES')
Problem p03636 (python)

Fixed submission:
s = input()
print(s[0] + str(len(s)-2) + s[-1])

Buggy submission (verdict: Runtime Error):
a=list(input())
c=[]
g=0
c=a.reverse()

print(a[0]+str(len(a)-1)+c[0])

Buggy submission (verdict: Runtime Error):
a=list(input())
c=reverse(a)
b=a.index(a[0])
d=c.index(c[0])
g=b-d
g-=1
print(a[0]+str(g)+c[0])
Problem p03644 (python)

Fixed submission:
a=int(input())
b=0
for i in range(7):
  if 2**i<=a:
    b=2**i
print(b)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=0
c=[0]*a
for i in range(1,a+1):
  b=0
  e=i
  while 1:
    i%=2
    if i%2!=0:
      c[e]=b
      break
    b+=1
print(max(c))

Buggy submission (verdict: Runtime Error):
a=int(input())
b=0
c=[0]*a
for i in range(1,a+1):
  e=i
  while 1:
    i%=2
    if i%2!=0:
      c[e]=b
      break
    b+=1
print(max(c))

Buggy submission (verdict: Runtime Error):
a=int(input())
b=0
c=[0]*a
for i in range(1,a+1):
  while 1:
    b%=2
    if b%2!=0:
      c[i]=b
      break
    b+=1
print(max(c))
Problem p03852 (python)

Fixed submission:
a=input()
if a=='a' or a=='i' or a=='u' or a=='e' or a=='o':
  print('vowel')
else:
  print('consonant')

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

Fixed submission:
a = int(input())
print(a+a**2+a**3)

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

Buggy submission (verdict: Runtime Error):
a = input()
print(a+a*a+a*a*a)
Problem p02628 (python)

Fixed submission:
N,K = map(int,input().split())
import sys
if N==1:
    print(input())
    sys.exit()
list = input().split()
MIN = 1001
SUM = 0
for j in range(0,K):
  for i in list:
    if MIN > int(i):
      MIN = int(i)
  list.remove(str(MIN))
  SUM += MIN
  MIN = 1001
print(SUM)

Buggy submission (verdict: Runtime Error):
N,K = map(int,input().split())
import sys
if N==1:
    print(input())
    sys.exit()
list = input().split()
MIN = int(list[0])
SUM = 0
for j in range(0,K):
  for i in list:
    if MIN > int(i):
      MIN = int(i)
  list.remove(str(MIN))
  SUM += MIN
  MIN = int(list[0])
print(SUM)

Buggy submission (verdict: Runtime Error):
N,K = map(int,input().split())
list = input().split()
MIN = int(list[0])
SUM = 0
for j in range(0,K):
  for i in list:
    if MIN > int(i):
      MIN = int(i)
  list.remove(str(MIN))
  SUM += MIN
  MIN = int(list[0])
print(SUM)

Buggy submission (verdict: Runtime Error):
N,K = map(int,input().split())
list = input().split()
MIN = int(list[0])
SUM = 0
import sys
if K<1 or N<1 or K>1000 or N>1000:
    sys.exit()
for j in range(0,K):
  for i in list:
    if(i<1 or i>1000):
        sys.exit()
    if MIN > int(i):
      MIN = int(i)
  list.remove(str(MIN))
  SUM += MIN
  MIN = int(list[0])
print(SUM)

Buggy submission (verdict: Runtime Error):
N,K = map(int,input().split())
list[N] = input().split()
MIN = int(list[0])
SUM = 0
for j in range(0,K):
  for i in list:
    if MIN > int(i):
      MIN = int(i)
  list.remove(str(MIN))
  SUM += MIN
  MIN = int(list[0])
print(SUM)

Buggy submission (verdict: Runtime Error):
N,K = map(int,input().split())
list = input().split()
MIN = int(list[0])
SUM = 0
for j in range(0,K):
  for i in list:
    if MIN > int(i):
      MIN = int(i)
  list.remove(str(MIN))
  SUM += MIN
  MIN = int(list[0])
print(SUM)

Buggy submission (verdict: Runtime Error):
N,K = map(int,input().split())
list = map(int,input().split())
MIN = list[0]
SUM = 0
for j in range(1,K):
  for i in list:
    if MIN > list[i]:
      MIN = list[i]
  list.delete(MIN)
  SUM += MIN
  MIN = list[0]
print(SUM)
Problem p02641 (python)

Fixed submission:
import sys
def getmax():
    max = 0
    for i in p:
        if i > max:
            max = i
    return max
def getmin():
    min = p[0]
    for i in p:
        if i < min:
            min = i
    return min
X,N = map(int,input().split())
if N ==0:
    print(X)
    sys.exit()
if N == 1:
    p = int(input())
    print(p-1)
    sys.exit()
p = list(map(int,input().split()))  #
MIN = 101   #
minnum = 0
for i in range(-101,102):
    if not i in p:
        if abs(i-X) < MIN:
            MIN = abs(i-X)
            minnum = i
print(minnum)

Buggy submission (verdict: Runtime Error):
import sys
def getmax():
    max = 0
    for i in p:
        if i > max:
            max = i
    return max
def getmin():
    min = p[0]
    for i in p:
        if i < min:
            min = i
    return min
X,N = map(int,input().split())
if N ==0:
    print(X)
    sys.exit()
if N == 1:
    p = int(input())
else:
    p = list(map(int,input().split()))  #
MIN = 101   #
minnum = 0
for i in range(-101,102):
    if not i in p:
        if abs(i-X) < MIN:
            MIN = abs(i-X)
            minnum = i
print(minnum)
Problem p02664 (python)

Fixed submission:
print(input().replace('?','D'))

Buggy submission (verdict: Runtime Error):
t = input()
for i in range(len(t)):
    if t[i] == '?':
        t[i] = 'D'
print(t)

Buggy submission (verdict: Runtime Error):
t = input()
for i in range(len(t)):
    if t[i] == '?':
        t[i] = 'D'
print(ans)
Problem p02772 (python)

Fixed submission:
n = int(input())
nums = list(map(int, input().split()))
chk = True
for i in nums:
    if i%2==0:
        if i%3==0 or i%5==0:
            pass
        else:
            chk = False
    else:
        pass
if chk == True:
    print('APPROVED')
else:
    print('DENIED')

Buggy submission (verdict: Runtime Error):
n = int(input())
nums = list(map(int, input().split()))
chk = True
for i in nums:
    if i%2==0:
        if i%3==0 and i%5==0:
            pass
        else:
            chk = False:
    else:
        pass
if chk == True:
    print('APPROVED')
else:
    print('DENIED')
Problem p02898 (python)

Fixed submission:
n, k = map(int, input().split())
hs = input().split()
count = 0
for i in range(0, n):
    h = int(hs[i])
    if h >= k:
        count += 1
print(count)

Buggy submission (verdict: Runtime Error):
n, k = map(int, input().split())
hs = input().split()
count = 0
for i in range(0, N):
    h = int(hs[i])
    if h >= k:
        count += 1
print(count)
Problem p03000 (python)

Fixed submission:
n, x = map(int, input().split())
ls = input().split()
count = 1
sum = 0
for i in range(0, n):
    l = int(ls[i])
    sum += l
    if sum <= x:
        count += 1
print(count)

Buggy submission (verdict: Runtime Error):
#include <bits/stdc++.h>
using namespace std;

int main () {
    int n, x;
    cin >> n >> x;
    int count = 1;
    int sum = 0;
    int l;
    for (int i=0; i < n; i++) {
        cin >> l;
        sum += l;
        if (sum <= x) {
            count += 1;
        }
    }
    cout << count << endl;
}
Problem p03076 (python)

Fixed submission:
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
nn = [a, b, c, d, e]
s = False
for i in nn:
    if s == False and i%10 != 0:
        chk = i%10
        last = i
        s = True
    elif s == False and i%10 == 0:
        pass
    elif s == True and i%10 != 0:
        if chk > i%10:
            chk = i%10
            last = i
if s == False:
    last = a
#print(last)
s = False
for i in nn:
    if s == False and i == last:
        ans += i
        s = True
    else:
        if i%10 == 0:
            ans += i
        else:
            ans += i + (10 - i%10)
    #print(ans)
print(ans)

Buggy submission (verdict: Runtime Error):
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
nn = [a, b, c, d, e]
s = False
for i in nn:
    if s == False and i%10 != 0:
        chk = i%10
        last = i
        s = True
    elif s == False and i%10 == 0:
        pass
    elif s == True and i%10 != 0:
        if chk > i%10:
            chk = i%10
            last = i
#print(last)
s = False
for i in nn:
    if s == False and i == last:
        ans += i
        s = True
    else:
        if i%10 == 0:
            ans += i
        else:
            ans += i + (10 - i%10)
    #print(ans)
print(ans)

Buggy submission (verdict: Runtime Error):
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
nn = [a, b, c, d, e]
s = False
for i in nn:
    if s == False and i%10 != 0:
        chk = i%10
        last = i
        s = True
    elif s == True and i%10 != 0:
        if chk > i%10:
            chk = i%10
            last = i
#print(last)
s = False
for i in nn:
    if s == False and i == last:
        ans += i
        s = True
    else:
        if i%10 == 0:
            ans += i
        else:
            ans += i + (10 - i%10)
    #print(ans)
print(ans)

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
nn = [a, b, c, d, e]
for i in nn:
    if i == a:
        chk = i%10
        last = i
    else:
        if chk > i%10:
            chk = i%10
            last = i
s = False
for i in nn:
    if s == False and i == last:
        ans += i
        s = True
    else:
        ans += i + (10 - i%10)
print(ans)
Problem p03260 (python)

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

Buggy submission (verdict: Runtime Error):
a. b = map(int, input().split())
if a*b % 2 == 0:
    print('No')
else:
    print('Yes')

Buggy submission (verdict: Runtime Error):
a. b = map(int, input().split())
if a*b % 2 == 0:
    print('YES')
else:
    print('NO')
Problem p03469 (python)

Fixed submission:
s = input()
print('2018'+s[4:])

Buggy submission (verdict: Runtime Error):
s = input()
s[3] = '8'
print(s)
Problem p03545 (python)

Fixed submission:
s = input()
n = len(s)
for i in range(2**(n-1)):
    op = ["-"] * (n-1)
    for j in range(n-1):
        if (i >> j) & 1:
            op[n - 2 -j] = "+"
    #print(op)
    chk = ""
    for p_n, p_o in zip(s, op + [""]):
        chk += (p_n + p_o)
    if eval(chk) == 7:
        print(chk + "=7")
        exit()

Buggy submission (verdict: Runtime Error):
s = input()
n = len(s) - 1
for i in range(2**n):
    tmp = []
    for j in range(n):
        tmp.append(s[i])
        if i >> j & 1:
            tmp.append("+")
        else:
            tmp.append("-")
    tmp.append(s[-1])
    for k in tmp:
        if eval(k) == 7:
            print(k + "=7")

Buggy submission (verdict: Runtime Error):
s = input()
n = len(s)
for i in range(2**(n-1)):
    op = ["-"] * (n-1)
    for j in range(n-1):
        if (i >> j) & 1:
            op[n - 2 -j] = "+"
    #print(op)
    chk = ""
    for p_n, p_o in zip(n-1, op + [""]):
        chk += (p_n + p_o)
    if eval(chk) == 7:
        print(chk + "=7")
        exit()
Problem p03738 (python)

Fixed submission:
a = int(input())
b = int(input())
if a == b:
    print("EQUAL")
elif a > b:
    print("GREATER")
else:
    print("LESS")

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
if a == b:
    print("EQUAL")
elif a > b:
    print("GREATER")
else:
    print("LESS")
Problem p04044 (python)

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

Buggy submission (verdict: Runtime Error):
n, l = map(int, input().split())
sl = []
for i in range(n):
    s = input()
    sl.append(s)
sl.sort()
"print(sl)
ans = ""
for i in range(n):
    ans += sl[i]
print(ans)
Problem p02613 (python)

Fixed submission:
N = int(input())
C_0 = 0
C_1 = 0
C_2 = 0
C_3 = 0
for _ in range(N):
    S = input()
    if S == 'AC':
        C_0 += 1
    elif S == 'WA':
        C_1 += 1
    elif S == 'TLE':
        C_2 += 1
    else:
        C_3 += 1
print('AC x {}'.format(C_0))
print('WA x {}'.format(C_1))
print('TLE x {}'.format(C_2))
print('RE x {}'.format(C_3))

Buggy submission (verdict: Runtime Error):
N = int(input())
C_0 = 0
C_1 = 0
C_2 = 0
C_3 = 0
for _ in range(N):
    if input() == 'AC':
        C_0 += 1
    elif input() == 'WA':
        C_1 += 1
    elif input() == 'TLE':
        C_2 += 1
    else:
        C_3 += 1
print('AC x {}'.format(C_0))
print('WA x {}'.format(C_1))
print('TLE x {}'.format(C_2))
print('RE x {}'.format(C_3))

Buggy submission (verdict: Runtime Error):
N = int(input())
C_0 = 0
C_1 = 0
C_2 = 0
C_3 = 0
for _ in range(N):
    if input() == 'AC':
        C_0 += 1
    elif input() == 'WA':
        C_1 += 1
    elif input() == 'TLE':
        C_2 += 1
    else:
        C_3 += 1
print('AC x {}'.format(C_0))
print('WA x {}'.format(C_1))
print('TLE x {}'.format(C_2))
print('RE x {}'.format(C_3))