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

Fixed submission:
x = int(input())
if x < 100:
    print(0)
    exit()

l_num = x // 100
l_sum = x % 100

if l_sum <= l_num * 5:
    print(1)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
x = int(input())
l_len = x // 100
l_sum = x % 100

if x < 100:
    print(0)
    exit()


def issum(lis, l_sum, l_len, curr_sum, curr_len):
    if l_sum - curr_sum > (l_len - curr_len) * 5:
        return
    if curr_sum > l_sum or curr_len > l_len:
        return
    if curr_sum == l_sum and curr_len == l_len:
        return True
    for i in range(6):
        if issum(lis, l_sum, l_len, curr_sum + lis[i], curr_len + 1):
            return True
a = [0, 1, 2, 3, 4, 5]
if issum(a, l_sum, l_len, 0, 0):
    print(1)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
x = int(input())
l_len = x // 100
l_sum = x % 100

if x < 100:
    print(0)
    exit(0)


def issum(lis, l_sum, l_len, curr_sum, curr_len):
    if l_sum - curr_sum > (l_len - curr_len) * 5:
        return
    if curr_sum > l_sum or curr_len > l_len:
        return
    if curr_sum == l_sum and curr_len == l_len:
        return True
    for i in range(6):
#         print(i, l_len)
        if issum(lis, l_sum, l_len, curr_sum + lis[i], curr_len + 1):
            return True
a = [0, 1, 2, 3, 4, 5]
if issum(a, l_sum, l_len, 0, 0):
    print(1)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
x = int(input())
l_len = x // 100
l_sum = x % 100

if x < 100:
    print(0)
    exit(0)


def issum(lis, l_sum, l_len, curr_sum, curr_len):

    if curr_sum > l_sum or curr_len > l_len:
        return
    if curr_sum == l_sum and curr_len == l_len:
        return True
    for i in range(6):
#         print(i, l_len)
        if issum(lis, l_sum, l_len, curr_sum + lis[i], curr_len + 1):
            return True
a = [0, 1, 2, 3, 4, 5]
if issum(a, l_sum, l_len, 0, 0):
    print(1)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
x = int(input())
l_len = x // 100
l_sum = x % 100
def issum(lis, l_sum, l_len, curr_sum, curr_len):
#     print(curr_sum)
    if curr_sum > l_sum or curr_len > l_len:
        return
    if curr_sum == l_sum and curr_len == l_len:
        return True
    for i in range(l_len):
        if issum(lis, l_sum, l_len, curr_sum + lis[i], curr_len + 1):
            return True
a = [0, 1, 2, 3, 4, 5]
if issum(a, l_sum, l_len, 0, 0):
  print(1)
else:
  print(0)
Problem p02918 (python)

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

before = 0
score = 0
for i in range(n):
    if before == s[i]:
        score += 1
    before = s[i]

print(min(n - 1, score + k * 2))

Buggy submission (verdict: Runtime Error):
n = int(input())
b = list(map(int, input().split()))
if n == 2:
    print(b[0] * 2)
    exit()

a = []
b.append(b[-1])
for i in range(n):
    a.append(min(b[i - 1], b[i]))
print(sum(a))
Problem p02936 (python)

Fixed submission:
n, q = map(int, input().split())
l = [[] for i in range(n)]
for i in range(n - 1):
    a, b = map(int, input().split())
    l[a - 1].append(b - 1)
    l[b - 1].append(a - 1)
r = [0] * n
for i in range(q):
    p, x = map(int, input().split())
    r[p - 1] += x
stack = [0]
used = [False] * n    
while stack:
    i = stack.pop()
    used[i] = True
    for to in l[i]:
        if not used[to]:
            stack.append(to)
            r[to] += r[i]
for t_r in r:
    print(t_r)

Buggy submission (verdict: Runtime Error):
n, q = map(int, input().split())
l = [[] for i in range(n)]
for i in range(n - 1):
    a, b = map(int, input().split())
    l[a - 1].append(b - 1)
    l[b - 1].append(a - 1)
r = [0] * n
for i in range(q):
    p, x = map(int, input().split())
    r[p - 1] += x
def dfs(v, p = -1):
    for to in l[v]:
        if to == p:
            continue
        r[to] += r[v]
        dfs(to, v)
dfs(0)
for t_r in r:
    print(t_r)
Problem p02972 (python)

Fixed submission:
n = int(input())
a = list(map(int, input().split()))
b = [-1] * (n + 1)
a.insert(0, 0)

for i in range(n, 0, -1):
    t_sum = 0
    j = 2 * i
    while j <= n:
        t_sum ^= b[j]
        j += i
    b[i] = t_sum ^ a[i]
print(sum(b[1:]))
for i in range(1, n + 1):
    if b[i] != 0:
        print(i, end = ' ')

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(map(int, input().split()))
b = []
a.insert(0, 0)
for i in range(n, 0, -1):
    t_sum = 0
    j = 2 * i
    while j <= n:
        t_sum ^= b[j]
        j += i
    b.append(t_sum ^ a[i])
print(sum(b))
for i in range(n):
    if b[i] != 0:
        print(1)
Problem p03282 (python)

Fixed submission:
s = input()
k = int(input())
if len(s) == 1 or k == 1:
    print(s[0])
else:
    i = 0
    while i < k - 1 and i < len(s):
        if s[i] != '1':
            break
        i += 1
    print(s[i])

Buggy submission (verdict: Runtime Error):
s = input()
k = int(input())
if len(s) == 1 or k == 1:
    print(s[0])
i = 0
while i < k and i < len(s):
    if s[i] != '1':
        break
    i += 1
print(s[i])

Buggy submission (verdict: Runtime Error):
import math
s = input()
k = int(input())

i = 0
while i < k and i < len(s):
    if s[i] != '1':
        break
    i += 1
print(s[i])

Buggy submission (verdict: Runtime Error):
import math
s = input()
k = int(input())

i = 0
while i < k:
    if s[i] != '1':
        break
    i += 1
print(s[i])

Buggy submission (verdict: Runtime Error):
import math
s = input()
k = int(input())

i = 0
while i < len(s):
    if math.log(int(s[i])) * (500 * 10 **12 - 1) > math.log(k):
#         print(i, s[i], int(s[i]) ** (500 * 10 *12))
        break
    i += 1
print(s[i])

Buggy submission (verdict: Runtime Error):
import math
s = input()
k = int(input())

i = 0
while i < len(s):
    if math.log(int(s[i])) * (500 * 10 **12 - 1) >= math.log(k):
#         print(i, s[i], int(s[i]) ** (500 * 10 *12))
        break
    i += 1
print(s[i])

Buggy submission (verdict: Runtime Error):
import math
s = input()
k = int(input())

i = 0
while i < len(s):
    if math.log(int(s[i])) * (500 * 10 **12) >= math.log(k):
#         print(i, s[i], int(s[i]) ** (500 * 10 *12))
        break
    i += 1
print(s[i])

Buggy submission (verdict: Runtime Error):
import math
s = input()
k = int(input())

i = 0
while i < len(s):
    if int(math.log(s[i])) * (500 * 10 **12) >= math.log(k):
#         print(i, s[i], int(s[i]) ** (500 * 10 *12))
        break
    i += 1
print(s[i])

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

i = 0
while i < len(s):
    if int(s[i]) ** (500 * 10 **12) >= k:
#         print(i, s[i], int(s[i]) ** (500 * 10 *12))
        break
    i += 1
print(s[i])

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

i = 0
while i < len(s):
    if int(s[i]) ** (500 * 10 *12) >= k:
#         print(i, s[i], int(s[i]) ** (500 * 10 *12))
        break
    i += 1
print(s[i])
Problem p03323 (python)

Fixed submission:
a, b = map(int, input().split())
if (a <= 8) & (b <= 8):
  print('Yay!')
else:
  print(':(')

Buggy submission (verdict: Runtime Error):
a, b = int(input())
if (a <= 8) & (b <= 8):
  print('Yay!')
else:
  print(':(')
Problem p03352 (python)

Fixed submission:
import math

x = int(input())

#y以上の値は候補とならない
y = int(math.sqrt(x))

k_max = 1
if y >= 2:
    for i in range(2, y + 1):
        j = int(math.log10(x) / math.log10(i))
        k = i ** j
        
        
        if k > k_max:
            k_max = k
    
print(k_max)

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

#y以上の値は候補とならない
y = int(math.sqrt(x))

k_max = 1
if y >= 2:
    for i in range(2, y + 1):
        j = int(math.log10(x) / math.log10(i))
        k = i ** j
        
        
        if k > k_max:
            k_max = k
    
print(k_max)
Problem p03471 (python)

Fixed submission:
def pay(i: int, remain: int, z: int):
    for i in range(0, (n - z) + 1):
        if 10 * i + 5 * (remain - i) + z == m:
            print(i, remain - i, z)
            exit()

    return


n, M = list(map(int, input().split(" ")))
m = int(M / 1000)

for z in range(n, -1, -1):
    pay(0, n - z, z)

print(-1, -1, -1)

Buggy submission (verdict: Runtime Error):
def judge(z):
    if z >= 0:
        remain = n - z
        pay = [[i, remain - i] for i in range(remain + 1)]

        for i in range(remain + 1):
            if 10 * pay[i][0] + 5 * pay[i][1] + z == m:
                print(pay[i][0], pay[i][1], z)
                exit()

        judge(z - 1)

    else:
        print(-1, -1, -1)


n, M = list(map(int, input().split(" ")))
m = int(M / 1000)

judge(n)

Buggy submission (verdict: Runtime Error):
def abc_list(c: int):
    a = -n + m / 5 + 4 * c / 5
    b = 2 * n + -m / 5 - 9 * c / 5

    if a >= 0 and b >= 0:
        return [int(a), int(b), c]

    else:
        return False


def judge(z):
    if z <= n:
        l = abc_list(z)

        if l == False or sum(l) != n:
            judge(z + 1)
        else:
            print(l[0], l[1], l[2])

    else:
        print(-1, -1, -1)


n, M = list(map(int, input().split(" ")))
m = int(M / 1000)

judge(0)
Problem p02772 (python)

Fixed submission:
n=input()
a=map(int,raw_input().split())
ans="APPROVED"
for i in range(n):
  if a[i]%2==0:
    if a[i]%3!=0 and a[i]%5!=0:
      ans="DENIED"
print ans

Buggy submission (verdict: Runtime Error):
n=input()
a=map(int,raw_input().split())
for i in a:
  if a[i]%2==0:
    if a[i]%3==0 or a[i]%5==0:
      print "APPROVED"
  else:
    print "DENIED"
Problem p02778 (python)

Fixed submission:
s=raw_input()
print len(s)*"x"

Buggy submission (verdict: Runtime Error):
s=raw_input()
print len(s)*x
Problem p02801 (python)

Fixed submission:
s=[chr(i) for i in range(97,123)]
c=raw_input()
ans= s.index(c)
print s[ans+1]

Buggy submission (verdict: Runtime Error):
s=[chr(i) for i in range(97,122)]
c=raw_input()
ans= s.index(c)
print s[ans+1]

Buggy submission (verdict: Runtime Error):
s=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y']
c=raw_input()
ans= s.index(c)
print s[ans+1]
Problem p02909 (python)

Fixed submission:
s = raw_input()
arr=["Sunny","Cloudy","Rainy"]
n=arr.index(s)
print arr[(n+1)%len(arr)]

Buggy submission (verdict: Runtime Error):
s = raw_input()
arr=["sunny","cloudy","rainy"]
n=arr.index(s)
print arr[(n+1)%len(arr)]
Problem p02921 (python)

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

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

Buggy submission (verdict: Runtime Error):
s= raw_input 
t= raw_input
ans=0
for i in range(3):
  if s[i]==t[i]:
    ans+=
print ans
Problem p02945 (python)

Fixed submission:
a,b=map(int,raw_input().split())
x=a+b
y=a-b
z=a*b
if x<y:
  x=y
if x<z:
  x=z
print x

Buggy submission (verdict: Runtime Error):
a
Problem p02957 (python)

Fixed submission:
a,b=map(int,raw_input().split())
if (a+b)%2==0:
  print (a+b)/2
else:
  print "IMPOSSIBLE"

Buggy submission (verdict: Runtime Error):
a
Problem p02969 (python)

Fixed submission:
r=input()
ans= r**2*3
print ans

Buggy submission (verdict: Runtime Error):
a
Problem p03071 (python)

Fixed submission:
a,b=map(int,raw_input().split())
if a==b:
  print a+b
else:
  print max(a,b)*2-1

Buggy submission (verdict: Runtime Error):
a,b,x=map(int,raw_input().split())
if a==b:
  print a+b
else:
  print max(a,b)*2-1
Problem p03085 (python)

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

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

Buggy submission (verdict: Runtime Error):
b=input()
A,C,T,G=map(str,raw_input().split())
if b=="A":
    print "C"
if b=="C":
    print "A"
if b=="T":
    print "G"
if b=="G":
    print "T"
Problem p03105 (python)

Fixed submission:
A,B,C=map(int,raw_input().split())
if B/A>C:
    print C
else:
    print B/A

Buggy submission (verdict: Runtime Error):
A,B,C=map(int,raw_input().split())
if B/A>C
print C
else:
  print B/A
Problem p03109 (python)

Fixed submission:
S=raw_input()
month=int(S[5:7])
if month>=5:
  print "TBD"
else:
  print "Heisei"

Buggy submission (verdict: Runtime Error):
s=raw_input()
month=int(S[5:7])
if month>=5:
  print "TBD"
else:
  print "HeiSei"
Problem p03238 (python)

Fixed submission:
N=input()
if N==1:
    print "Hello World"
elif N==2:
    A = input()
    B = input()
    print A+B

Buggy submission (verdict: Runtime Error):
N=input()
A=input()
B=input()
if N==1:
    print "Hello World"
elif N==2:
    print A+B

Buggy submission (verdict: Runtime Error):
N,A,B=input()
if N==1:
    print "Hello World"
elif N==2:
    print A+B
Problem p03351 (python)

Fixed submission:
a,b,c,d=map(int,raw_input().split())
if abs(c-a) <=d or abs(a-b) <=d and abs(b-c) <=d:
  print "Yes"
else:
  print "No"

Buggy submission (verdict: Runtime Error):
a,b,c,d=map(int,raw_input().split())
if c-a < d or a-c<d:
  print "Yes"
elif b-c <d or c-b<d:
  print "Yes":
elif a-b <d or b-a<d:
  print "Yes"
else:
  print "No"
Problem p03385 (python)

Fixed submission:
s=raw_input()
sa=0
sb=0
sc=0
for i in range(len(s)):
  if s[i]=="a":
    sa+=1
  if s[i]=="b":
    sb+=1
  if s[i]=="c":
    sc+=1
if sa==1 and sb==1 and sc==1:
    print "Yes"
else: 
    print "No"

Buggy submission (verdict: Runtime Error):
s=input()
if a in s and b in s and c in s:
  print "Yes"
else:
  print "No"

Buggy submission (verdict: Runtime Error):
s=map(int,raw_input().split())
sa=0
sb=0
sc=0
for i in range(len(s)):
  if s[i]=="a":
    sa+=1
  if s[i]=="b":
    sb+=1
  if s[i]=="c":
    sc+=1
if sa==1 and sb==1 and sc==1:
    print "Yes"
else: 
    print "No"

Buggy submission (verdict: Runtime Error):
s=map(int,raw_input().split())
sa=0
sb=0
sc=0
for i in range(len(s)):
  if s[i]=="a":
    sa+=1
  if s[i]=="b":
    sb+=1
  if s[i]=="c":
    sc+=1
if sa==1 and sb==1 and sc==1:
    print "Yes"
else: 
  print "No"

Buggy submission (verdict: Runtime Error):
s=map(int,raw_input().split())
sa=0
sb=0
sc=0
for i in range(len(s)):
  if s[i]=="a":
    sa+=1
  if s[i]=="b":
    sb+=1
  if s[i]=="c":
    sc+=1
if sa=1 and sb=1 and sc=1:
    print "Yes"
else: 
  print "No"

Buggy submission (verdict: Runtime Error):
s=raw_input()
sa=0
sb=0
sc=0
for i in range(len(s)):
  if s[i]=="a":
    sa+=1
  if s[i]=="b":
    sb+=1
  if s[i]=="c":
    sc+=1
if sa=1 and sb=1 and sc=1:
    print "Yes"
else: 
  print "No"
Problem p03399 (python)

Fixed submission:
a=input()
b=input()
c=input()
d=input()
leastnum=0
if a>=b and c>=d:
  leastnum=b+d
elif a>=b and d>=c:
  leastnum=b+c
elif b>=a and c>=d:
  leastnum=a+d
elif b>=a and d>=c:
  leastnum=a+c
print leastnum

Buggy submission (verdict: Runtime Error):
a,b,c,d=map(int,raw_input().split())
leastnum=0
if a>b and c>d:
  leastnum=b+d
elif a>b and d>c:
  leastnum=b+c
elif b>a and c>d:
  leastnum=a+d
elif b>a and d>c:
  leastnum=a+c
print leastnum
Problem p03407 (python)

Fixed submission:
a,b,c=map(int,raw_input().split())
if a+b>=c:
  print "Yes"
else:
  print "No"

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,raw_input().split())
if a+b=>c:
  print "Yes"
else:
  print "No"

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,raw_input().split())
if a+b=>c:
  print "Yes"
else:
  print "No"

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,raw_input().split())
if a+b=>c:
  print "yes"
elif c>a+b:
  print "no"

Buggy submission (verdict: Runtime Error):
a=input()
b=input()
c=input()
if a+b>c:
  print "yes"
else:
  print "no"
Problem p03447 (python)

Fixed submission:
x=input()
a=input()
b=input()
print (x-a)%b

Buggy submission (verdict: Runtime Error):
x,a,b=map(int,raw_input().split())
print (x-a)%b
Problem p03477 (python)

Fixed submission:
a,b,c,d=map(int,raw_input().split())
if a+b<c+d:
  print "Right"
elif a+b>c+d:
  print "Left"
else:
  print "Balanced"

Buggy submission (verdict: Runtime Error):
a,b,c,d=map(int,raw_input().split())
if a+b<c+d:
  print "Right"
elif a+b>c+d:
  print "Left"
elif a+b=c+d:
  print "Balanced"
Problem p03543 (python)

Fixed submission:
n=raw_input()
if n[0]==n[1]==n[2]==n[3] or n[0]==n[1]==n[2] or n[1]==n[2]==n[3]:
  print "Yes"
else:
  print "No"

Buggy submission (verdict: Runtime Error):
n=raw_input()
if n[0]=n[1]=n[2]=n[3] or n[0]=n[1]=n[2]!=n[3] or n[1]=n[2]=n[3]!=n[0]:
  print "Yes"
else:
  print "No"

Buggy submission (verdict: Runtime Error):
n=raw_input()
if n[1]=n[2]=n[3]=n[4] or n[1]=n[2]=n[3]!=n[4] or n[2]=n[3]=n[4]!=n[1]:
  print "Yes"
else:
  print "No"

Buggy submission (verdict: Runtime Error):
n=input()
if n[1]=n[2]=n[3]=n[4] or n[1]=n[2]=n[3]!=n[4] or n[2]=n[3]=n[4]!=n[1]:
  print "Yes"
else:
  print "No"
Problem p03573 (python)

Fixed submission:
a,b,c=map(int,raw_input().split())
if a ==b and a!=c:
  print c
elif b == c and b != a:
  print a 
else:
  print b

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,raw_input().split())
if a ==b and a!=c:
  print c
elif b == c and b != a:
  print a 
elif: a==c and a !=b:
  print b
Problem p03609 (python)

Fixed submission:
X,t=map(int,raw_input().split())
if t>=X:
  print "0" 
else:
  print X-t

Buggy submission (verdict: Runtime Error):
x,t=map(int,raw_input().split())
if t>X:
  print 0 
else:
  print X-t

Buggy submission (verdict: Runtime Error):
X=input()
t=input()
if t>X:
  print 0 
else:
  print X-t

Buggy submission (verdict: Runtime Error):
X=input()
t=input()
if t>X:
  print "0" 
else:
  print X-t
Problem p03635 (python)

Fixed submission:
n,m=map(int,raw_input().split())
print (n-1)*(m-1)

Buggy submission (verdict: Runtime Error):
n=input()
m=input()
print (n*m)/2
Problem p03643 (python)

Fixed submission:
n=raw_input()
print "ABC"+n

Buggy submission (verdict: Runtime Error):
n=raw_input()
print [ABC+n]
Problem p03657 (python)

Fixed submission:
a,b=map(int,raw_input().split())
if (a+b)%3==0 or a%3==0 or b%3==0:
  print "Possible"
else:
  print "Impossible"

Buggy submission (verdict: Runtime Error):
a=input()
b=input()
if (a+b)%3==0:
  print "Possible"
else:
  print "Impossible"
Problem p03697 (python)

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

Buggy submission (verdict: Runtime Error):
a=input()
b=input()
if a+b < 10:
  print a+b
else:
  print "error"
Problem p03711 (python)

Fixed submission:
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
x,y=map(int,raw_input().split())
ans= "No"
if x in a and y in a:
  ans= "Yes"
elif x in b and y in b:
  ans = "Yes"
print ans

Buggy submission (verdict: Runtime Error):
x,y=map(int,raw_input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
for i in range(1000):
  if a[i]==x and a[i]==y:
    print "Yes"
  elif b[i]==x and b[i]==y:
    print "Yes"
  else:
    print "No"

Buggy submission (verdict: Runtime Error):
x=input()
y=input()
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
for i in range(1000):
  if a[i]==x and a[i]==y:
    print "Yes"
  elif b[i]==x and b[i]==y:
    print "Yes"
  else:
    print "No"
Problem p03729 (python)

Fixed submission:
a,b,c=raw_input().split()
if a[len(a)-1]== b[0] and b[len(b)-1]==c[0]:
  print "YES"
else:
  print "NO"

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,raw_input().split())
if a[len(a)-1]== b[0] and b[len(b)-1]==c[0]:
  print "YES"
else:
  print "NO"

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,raw_input(),split())
if a[len(a)-1]== b[0] and b[len(b)-1]==c[0]:
  print "YES"
else:
  print "NO"
Problem p03737 (python)

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

Buggy submission (verdict: Runtime Error):
a,b,c=raw_input
ans= a[0]+b[0]+c[0]
print ans.upper()

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

Buggy submission (verdict: Runtime Error):
a,b,c=raw_input
A=a[0]
B=b[0]
C=c[0]
print A.upper()+B.upper()+C.upper()

Buggy submission (verdict: Runtime Error):
a,b,c=raw_input.split()
A=a[0]
B=b[0]
C=c[0]
print A.upper()+B.upper()+C.upper()

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,raw_input().split())
A=a[0]
B=b[0]
C=c[0]
print A.upper()+B.upper()+C.upper()
Problem p03759 (python)

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

Buggy submission (verdict: Runtime Error):
a=input()
b=input()
c=input()
if b-a==c-b:
  print "YES"
else:
  print"NO"

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

Buggy submission (verdict: Runtime Error):
a=input()
b=input()
c=input()
if b-a==c-b:
  print "YES"
else:
  ptint"NO"

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,raw_input().split())
if b-a==c-b:
  print "YES"
else:
  ptint"NO"
Problem p03795 (python)

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

Buggy submission (verdict: Runtime Error):
n=map(int,raw_input().split())
x=800*n
y=200(n/15)
print x-y

Buggy submission (verdict: Runtime Error):
n=input()
x=800*n
y=200(n/15)
print x-y

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

Buggy submission (verdict: Runtime Error):
n=raw_input().split()
print 800*n -200(n/15)

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

Fixed submission:
a,op,b=raw_input().split()
if op=="+":
  print int(a)+int(b)
else:
  print int(a)-int(b)

Buggy submission (verdict: Runtime Error):
A op B=map(int,raw_input.split())
print A op B
Problem p03852 (python)

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

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

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

Buggy submission (verdict: Runtime Error):
c=raw_input()
if c==a or c==e or c==i or c==o or c==u:
  print "vowel"
else:
  print "consonant"

Buggy submission (verdict: Runtime Error):
c=raw_input()
if c==a or a==e or a==i or a==o or a==u:
  print "vowel"
else:
  print "consonant"
Problem p04043 (python)

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

Buggy submission (verdict: Runtime Error):
a=input()
b=input()
c=input()
if a+b+c==17:
  print "YES"
else:
  print "NO"

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,raw_input.split())
if a+b+c==17:
  print "YES"
else:
  print "NO"
Problem p02717 (python)

Fixed submission:
num_list = input()
num_list = num_list.split(' ')

temp = num_list[1] # temporarily save B
num_list[1] = num_list[0] # put A in B
num_list[0] = temp # put B in A
 
temp = num_list[0] # temporarily save A
num_list[0] = num_list[2] # put C in A
num_list[2] = temp # put A in C
 
print(' '.join(num_list))

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

temp = num_list[1] # temporarily save B
num_list[1] = num_list[0] # put A in B
num_list[0] = temp # put B in A

temp = num_list[0] # temporarily save A
num_list[0] = num_list[2] # put C in A
num_list[2] = temp # put A in C

print(num_list)
Problem p02719 (python)

Fixed submission:
n, k = list(map(int, input().split()))
 
print(min(n % k, abs(k - n % k)))

Buggy submission (verdict: Runtime Error):
n, k = [int(x) for x in input().split(' ')]

def abs_diff(n, k):
  first_time = abs(n - k)
  second_time = abs(first_time - k)
  if second_time <= first_time:
    abs_diff(first_time, k)
  elif first_time <= n:
    print(first_time)
  else:
    print(n)

abs_diff(n, k)

Buggy submission (verdict: Runtime Error):
nk = [int(x) for x in input().split(' ')]

def abs_diff(n, k):
  first_time = abs(n - k)
  second_time = abs(first_time - k)
  if second_time < first_time:
    abs_diff(first_time, k)
  elif first_time < n:
    print(first_time)
  else:
    print(n)

abs_diff(nk[0], nk[1])

Buggy submission (verdict: Runtime Error):
n, k = [int(x) for x in input().split(' ')]

def abs_diff(n, k):
  first_time = abs(n - k)
  second_time = abs(first_time - k)
  if second_time < first_time:
    abs_diff(first_time, k)
  elif first_time < n:
    print(first_time)
  else:
    print(n)

abs_diff(n, k)
Problem p02717 (python)

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

print(z, x, y)

Buggy submission (verdict: Runtime Error):
n, k = map(int, input().split())

mo = n%k

mok = abs(mo - k)

if mo <= mok:
    print(mo)
else:
    print(mok)