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

Fixed submission:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
 
import numpy as np
 
N = int(readline())
A = np.array(read().split(), np.int64)
counter = np.bincount(A)
 
total = (counter * (counter - 1)).sum() // 2
answer = (total - (counter - 1))[A]
 
print('\n'.join(answer.astype(str)))

Buggy submission (verdict: Runtime Error):
import numpy as np

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

counter = np.bincount(A)

diff = (counter * (counter-1)//2 - (counter-1) * (counter-2)//2)
ans = total - diff[A]

print(*ans, sep="\n")

Buggy submission (verdict: Runtime Error):
import numpy as np

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

counter = np.bincount(A)

ans = []
for i in range(len(A)):
    counter_i = counter.copy()
    counter_i[A[i]] -=1
    sum_i = sum(counter_i * (counter_i -1) //2)
    ans.append(sum_i)
    
for i in range(len(ans)):
    print(ans[i])

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

counter = np.bincount(A)

ans = []
for i in range(len(A)):
    counter_i = counter.copy()
    counter_i[A[i]] -=1
    sum_i = sum(counter_i * (counter_i -1) //2)
    ans.append(sum_i)
    
for i in range(len(ans)):
    print(ans[i])

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

ANSWER = []
for i in range(N):
    A_ = A.copy()
    del A_[i]
    unique_i = list(set(A_))

    answer_i = 0
    for j in unique_i:
        answer_i += (A_.count(j) * (A_.count(j)-1)/2)
    
    ANSWER.append(int(answer_i))

for i in ANSWER:
    print(i)

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

A_ = A.copy()

ANSWER = []
for i in range(N):
    del A_[i]
    unique_i = list(set(A_))

    answer_i = 0
    for j in unique_i:
        answer_i += (A_.count(j) * (A_.count(j)-1)/2)
    
    ANSWER.append(int(answer_i)
    
    A_ = A.copy()
Problem p02713 (python)

Fixed submission:
import math

k = int(input())
ans = 0
m = 0
for a in range(1,k+1):
    for b in range(a+1,k+1):
        for c in range(b+1, k+1):
            m = math.gcd(a,b)
            ans += 6*math.gcd(m,c)
for a in range(1,k+1):
    for c in range(a+1,k+1):
        ans += 3*math.gcd(a,c)
for c in range(1,k+1):
    for a in range(c+1,k+1):
        ans += 3*math.gcd(a,c)
for a in range(1,k+1):
    ans += a
print(ans)

Buggy submission (verdict: Runtime Error):
import math

k = int(input())
for i in range(1,k+1):
    for j in range(1,k+1):
        for l in range(1,k+1):
            m = math.gcd(i,j)
            ans += math.gcd(m,l)

print(ans)
Problem p03030 (python)

Fixed submission:
n = int(input())
r = []
for i in range(n):
    s,p = input().split()
    p = -int(p)
    r.append([s,p,i])
a = sorted(r)
for i in range(n):
    print(a[i][2]+1)

Buggy submission (verdict: Runtime Error):
n = int(input())
r = []
for i in range(n):
    s,p = input().split()
    p = int(p)
    r.append([s,p,i])
a = sorted(r)
for i in range(n):
    print(a[i][3]+1)
Problem p03110 (python)

Fixed submission:
n = int(input())
sum = 0
for i in range(0,n):
    x,u = input().split()
    x = float(x)
    if u == 'BTC':
        x = x *380000
    sum = sum + x
print (sum)

Buggy submission (verdict: Runtime Error):
n = int(input())
sum = 0
for i in range(0,n):
    x,u = input().split()
    if u == 'BTC':
        x = x *380000
    sum = sum + x
print (sum)

Buggy submission (verdict: Runtime Error):
n = input()
sum = 0
for i in range(0,n):
    x,u = input().split()
    x = float(x)
    if u == 'BTC':
        x = x *380000
    sum = sum + x
print (sum)

Buggy submission (verdict: Runtime Error):
n = input()
sum = 0
for i in range(0,n):
    x,u = input().split()
    if u == 'BTC':
        x = x *380000
    sum = sum + x
print (sum)
Problem p03238 (python)

Fixed submission:
n = int(input())
if n ==1:
    print('Hello World')
if n ==2:
    a = int(input())
    b = int(input())
    ans = a+b
    print(ans)

Buggy submission (verdict: Runtime Error):
n = int(input())
if n ==1:
    print('Hello World')
if n ==2:
    a,b = map(int,input().split())
    ans = a+b
    print(ans)

Buggy submission (verdict: Runtime Error):
n = int(input())
if n == 1:
    print('Hello World')
if n == 2:
    a,b = map(int,input().split())
    print(a+b)

Buggy submission (verdict: Runtime Error):
n = int(input())
if n ==1:
    print('Hello world')
if n ==2:
    a,b = map(int,input().split())
    print(a+b)

Buggy submission (verdict: Runtime Error):
n = int(input())
if n ==1:
    print('Hello world')
if n ==2:
    a,b = map(int,input().split())
    print(a+b)
Problem p03239 (python)

Fixed submission:
n,T= map(int,input().split())
min = 1001
for i in range(n):
    c,t = map(int,input().split())
    if T >= t and min > c:
        min = c
if min > 1000:
    print('TLE')
else:
    print(min)

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

min = 1000
for i in range(n):
    c,t = map(int,input().split())
    if T > t[i] and min > c[i]:
        min = c[i]
if min ==1000:
    print('TLE')
else:
    print(min)

Buggy submission (verdict: Runtime Error):
n,T= map(int,input().split())
c = list(map(int,input().split()))
t = list(map(int,input().split()))
min = 1000
for i in range(n):
    if T > t[i] and min > c[i]:
        min = c[i]
if min ==1000:
    print('TLE')
else:
    print(min)

Buggy submission (verdict: Runtime Error):
n= int(input())
T = int(input())
c = list(input().split())
t = list(input().split())
min = 1000
for i in range(n):
    if int(T) > int(t[i]) and min > int(c[i]):
        min = int(c[i])
if min ==1000:
    print('TLE')
else:
    print(min)

Buggy submission (verdict: Runtime Error):
n,T = map(int,input().split())
c = list(input().split())
t = list(input().split())
min = 1000
for i in range(n):
    if int(T) > int(t[i]) and min > int(c[i]):
        min = int(c[i])
if min ==1000:
    print('TLE')
else:
    print(min)

Buggy submission (verdict: Runtime Error):
n,T = map(int,input().split())
c = list(input().split())
t = list(input().split())
min = 1000
for i in range(n):
    if T > int(t[i]) and min > int(c[i]):
        min = int(c[i])
if min ==1000:
    print('TLE')
else:
    print(min)

Buggy submission (verdict: Runtime Error):
n,T = map(int,input().split())
c = list(map(int,input().split()))
t = list(map(int,input().split()))
min = 1000
for i in range(n):
    if T > t[i] and min > c[i]:
        min = c[i]
if min ==1000:
    print('TLE')
else:
    print(min)
Problem p03261 (python)

Fixed submission:
n = int(input())
l = []
flag = 0
for i in range(n):
    w = input()
    l.append(w)
for k in range(1,n):
    if  l[k-1][-1] != l[k][0]:
        flag =1
        break

    for j in range(k):
        if l[k] == l[j]:
            flag = 1
            break
        
if(flag == 1):
    print('No')
else:
    print('Yes')

Buggy submission (verdict: Runtime Error):
n = int(input())
for i in range(n):
    w = input()
    if i > 0:
        if  w[i-1][-1] == w[i][0]:
            for j in range(i):
                if w[i] == w[j]:
                    print('No')
                else:
                    print('Yes')
        else:
            print('No')
Problem p02639 (python)

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

print(A.index(0) + 1)

Buggy submission (verdict: Runtime Error):
A = list[map(int, input().split())]

print(A.index(0) + 1)
Problem p02640 (python)

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

for a in range(x+1):
  b = x - a
  if y == a * 2 + b * 4:
    count += 1
if count == 0:
  print("No")
else:
  print('Yes')

Buggy submission (verdict: Runtime Error):
x, y = map(int, input().split())
count = 0

for a in range(x+1):
  b = x - a
  if y = a * 2 + b * 4:
    count += 1
if count == 0:
  print("No")
else:
  print('Yes')
Problem p03455 (python)

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

if c % 2 == 0:
  print('Even')
else:
  print('Odd')

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

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

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

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

if a * b % 2 = 0:
    print(Even)
else:
    print(Odd)
Problem p03494 (python)

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

while all(a % 2 == 0 for a in A):
  A = [a/2 for a in A]
  count +=1
  
print(count)

Buggy submission (verdict: Runtime Error):
input()
A = list(map(int, input()))
count = 0

while all(a % 2 for a in A):
  A = [a/2 for a in A]
  count +=1
  
print(count)
Problem p02646 (python)

Fixed submission:
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
if v*t >= abs(b-a) + w*t:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
if v*t >= abs(b-a) + W*t:
    print('YES')
else:
    print('NO')
Problem p02755 (python)

Fixed submission:
a,b = map(int,input().split())
for x in range(b * 10,(b + 1) * 10):
    if int(x * 0.08) == a and int(x * 0.1) == b:
        print(x)
        break
else:
    print(-1)

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().split())
for i in range(b * 10,(b + 1) * 10):
    if int(x * 0.08) == a and int(x * 0.1) == b:
        print(x)
        break
    else:
        print(-1)
Problem p02801 (python)

Fixed submission:
c = input()
print(chr(ord(c)+1))

Buggy submission (verdict: Runtime Error):
c = input()
print(shr(ord(c)+1))
Problem p02853 (python)

Fixed submission:
x,y = map(str,input().split())
a = {'1':300000,'2':200000,'3':100000}
if int(x) > 3 or int(y) > 3:
    if int(x) <= 3:
        print(a[x])
    elif int(y) <= 3:
        print(a[y])
    else:
        print(0)
else:
    if x == y == '1':
        print(1000000)
    else:
        print(a[x]+a[y])

Buggy submission (verdict: Runtime Error):
x,y = map(str,input().split())
a = {'1':300000,'2':200000,'3':100000}
if x == y == '1':
    print(1000000)
else:
    print(a[x]+a[y])
Problem p02993 (python)

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

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

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

Buggy submission (verdict: Runtime Error):
s = int(input())
if a[0] == s[1] or s[1] == s[2] or s[2] == s[3] or s[3] == s[4]:
    print('Bad')
else:
    print('Yes')
Problem p03238 (python)

Fixed submission:
n = int(input())
if n == 1:
    print('Hello World')
elif n == 2:
    a = int(input())
    b = int(input())
    print(a + b)

Buggy submission (verdict: Runtime Error):
n = int(input())
a = int(input())
b = int(input())
if n == 1:
    print('Hellow World')
elif n == 2:
    print(a + b)
Problem p04043 (python)

Fixed submission:
x = list(map(str,input().split()))
if x.count('5') == 2 and x.count('7') == 1:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
x = list(map(str,input().split()))
if '2' == x.value_counts('5') and '1' == x.value_counts('7'):
  print('YES')
else:
  print('NO')
Problem p04044 (python)

Fixed submission:
n,l = map(int,input().split())
x = [str(input()) for _ in range(n)]
x.sort()
a = ' '
for i in x:
  a += i
print(a)

Buggy submission (verdict: Runtime Error):
n,l = map(int,input().split())
x = [str(input()) for _ range(n)]
x.sort()
a = ' '
for i in x:
  a += i
print(a)
Problem p02675 (python)

Fixed submission:
#Ans
N=str(input())
if N[-1]=="2"or N[-1]=="4"or N[-1]=="5"or N[-1]=="7"or N[-1]=="9":
    print("hon")
elif N[-1]=="0" or N[-1]=="1"or N[-1]=="6"or N[-1]=="8":    
    print("pon")
elif N[-1]=="3":
    print("bon")

Buggy submission (verdict: Runtime Error):
if N[-1]=="3":
    print("bon")
elif N[-1]==("0"or"1"or"6"or"8"):    
    print("pon")
else:
    print("hon")
Problem p02765 (python)

Fixed submission:
N,R=input().split()

N=int(N)
R=int(R)

if N>=10:
    print (R)
else :
    print(R+(100*(10-N)))

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

if N%2==1:
    N=int(((N-1)/2)+1)
    print(N)
else:
    N=int(N/2)
    print(N)
    
N,R=input().split()

N=int(N)
R=int(R)

if N>=10:
    print (R)
else:
    print(R+(100*(10-N)))
Problem p03469 (python)

Fixed submission:
s= input()
print(s.replace('7', '8',1))

Buggy submission (verdict: Runtime Error):
s= input()
print(s.replace('7', '8',1))
Problem p03597 (python)

Fixed submission:
a=int(input())
b=int(input())
print(a**2-b)

Buggy submission (verdict: Runtime Error):
n=int(input())
a=iny(input())
print(n**2-a)
Problem p03826 (python)

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

Buggy submission (verdict: Runtime Error):
a,b,c,d=map(int,input().split())
if a*b>=c*d:
    print(a*b)
else:
    primt(c*d)
Problem p02994 (python)

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



l = []

min_a = N + abs(L) * N * N + N


for i in range(N):
    a = L + i - 1 + 1

    if abs(a) < abs(min_a):
        min_a = abs(a)
        ans_i = i



    l.append(a)


ans = sum(l) - l[ans_i]

print(ans)

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



l = []

min_a = N + L * N


for i in range(N):
    a = L + i - 1 + 1

    if abs(a) < abs(min_a):
        min_a = abs(a)
        ans_i = i



    l.append(a)


ans = sum(l) - l[ans_i]

print(ans)
Problem p03000 (python)

Fixed submission:
#入力取得
N, X = map(int, input().split())
l = tuple(map(int,input().split()))


d = 0
ans = 1

for l_e in l:

    d += l_e

    if d > X:
        break
    else:
        ans += 1



print(ans)

Buggy submission (verdict: Runtime Error):
#入力取得
N, X = map(int, input().split())
l = tuple(map(int,input().split()))


d = 0
ans = 0

for i in range(N+1):
    if d > X:
        break
    else:
        ans += 1
        d = d + l[i]
print(ans)
Problem p03001 (python)

Fixed submission:
#入力取得
W, H, x, y = map(int, input().split())


max_s = W * H /2

if W % 2 == 0 and H % 2 == 0 and W/2 == x and H/2 == y:
    ans = 1
else:
    ans = 0


print(str(max_s) + " " + str(ans))

Buggy submission (verdict: Runtime Error):
N,K = map(int,input().split())
a = [int(x) for x in input().split()]

start = 0
end = 0
a_sum = a[0]

ans = 0
#右に進めるだけ進む ->  a_sum >= Kを満たすまで
#左を詰めていく -> a_sum >= K の間だけ

#右端までいったらbreak



while True:
    if a_sum < K:
        end += 1
        if end == N:
            break

        #新たに追加した最後の数字を追加
        a_sum += a[end]

    else:
        #もしK以上の場合、end以降の全ての要素が追加されても満たすため、その数を足す
        #その数はこの場合、N - end  ex:10個あってa[2]~a[5]個で満たしているとき、 2~a[6], a[7], a[8], a[9]とあって計 N - 5個
        ans += N - end

        #左を詰める
        a_sum -= a[start]
        start += 1

print(ans)
Problem p03071 (python)

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


x = a+b
y = a+a-1
z = b+b-1

list = [x,y,z]

max = max(list)


print(max)

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


x = a+b
y = a+a-1
z = b+b-1

list = [x,y,z]

max = max(list)


print(max)
Problem p02657 (python)

Fixed submission:
a=[int(i) for i in input().split()]
print(a[0] * a[1])

Buggy submission (verdict: Runtime Error):
input()
b = [int(i) for i in input().split()]

if 0 not in b:
  last = 1
  for i in b:
      last*=i
      if last > 10**18:
        last = -1
        break
    
else:
  last = 0
    
print(last)

Buggy submission (verdict: Runtime Error):
input()
b = [int(i) for i in input().split()]

if 0 not in b:
  last = 1
  for i in b:
      last*=i
      if last > 10**18:
        last = -1
        break
    
else:
  last = 0
    
print(last)

Buggy submission (verdict: Runtime Error):
input()
b = [int(i) for i in input().split()]

if 0 not in b:
  last = 1
  for i in b:
      last*=i
      if last > 10**18:
      	last = -1
        break
else:
  last = 0
    
print(last)
Problem p02658 (python)

Fixed submission:
input()
b = [int(i) for i in input().split()]

if 0 not in b:
  last = 1
  for i in b:
      last*=i
      if last > 10**18:
        last = -1
        break
    
else:
  last = 0
    
print(last)

Buggy submission (verdict: Runtime Error):
a = int(input())
b = [int(i) for i in input().split()]
last = 1
if 0 not in b:
  for i in b:
      last*=i
      if last > 10**18:
      	last = -1
        break

else:
  last = 0
    
print(last)

Buggy submission (verdict: Runtime Error):
a = int(input())
b = [int(i) for i in input().split()]
last = 1
for j,i in enumerate(b):
    last*=i
    if last > 10**18 and 0 not in b[j:]:
    	last = -1
        break


    
print(last)

Buggy submission (verdict: Runtime Error):
a = int(input())
b = [int(i) for i in input().split()]
last = 1
for j,i in enumerate(b):
    last*=i
    if last > 10**18 and 0 not in b[j::]:
    	last = -1
        break


    
print(last)

Buggy submission (verdict: Runtime Error):
a = int(input())
b = [int(i) for i in input().split()]
last = 1
for i in b:
    last*=i
    if last > 10**18:
    	last = -1
        break
    
print(last)
Problem p02641 (python)

Fixed submission:
x, n = map(int,input().split())
lis = list(map(int,input().split()))
lis.sort()
if n == 0:
    print(x)
else:
    for i in range(lis[n-1]+2):
        
        if i < x and i not in lis:
            a = i
        if i >= x and i not in lis:
            b = i
            if abs(a-x) <= abs(b-x):
                print(a)
            else:
                print(b)
            break

Buggy submission (verdict: Runtime Error):
n = int(input())
lis = list(map(int,input().split()))
lis.sort()
p = 0
counter = n
for i in range(n):
    if i>0 and lis[i] == lis[i-1]:
        counter -=1
    elif i>0 and lis[i]<lis[0]*2:
        p += 1
    else:
        for j in range(n):
            if i != j and lis[i]%lis[j] ==0:
                counter -=1
                break
print(counter)
Problem p02641 (python)

Fixed submission:
# coding: utf-8

############################

x,n = map(int,input().split())

if n==0:
    print(x)
    exit()

z=101
p_list = list(map(int,input().split()))
pp_list = [i for i in range(102)]

for j in p_list:
    pp_list.remove(j)

for k in pp_list:
    zettaiti = abs(x-k)

    if z > zettaiti:
        z = zettaiti
        ans = k

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8

############################

x,n = map(int,input().split())

if n==0:
    print(x)
    exit()


z=101
p_list = list(map(int,input().split()))
pp_list = [i for i in range(min(p_list),max(p_list)+1)]

for j in p_list:
    pp_list.remove(j)

for k in pp_list:
    zettaiti = abs(x-k)

    if z > zettaiti:
        z = zettaiti
        ans = k

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8

############################

x,n = map(int,input().split())
p_list = list(map(int,input().split()))

if n==0:
    print(x)
    exit()


z=101
pp_list = [i for i in range(min(p_list),max(p_list)+1)]

for j in p_list:
    pp_list.remove(j)

for k in pp_list:
    zettaiti = abs(x-k)

    if z > zettaiti:
        z = zettaiti
        ans = k

print(ans)
Problem p02887 (python)

Fixed submission:
# coding: utf-8


n = int(input().rstrip())
s = list(input())
count = 0
 
 
for i in range(n):
    
    try:
        if s[i] == s[i+1]:
            count += 1
    except IndexError:
        break
        
        
print(len(s) - count)

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

for i in range(n):
    
    if s[i] == s[i+1]:
        s.pop(s[i+1])
        
print(len(s))
Problem p02646 (python)

Fixed submission:
i=(input().split())
j=(input().split())
k=(input())

A=int(i[0])
V=int(i[1])
B=int(j[0])
W=int(j[1])
T=int(k)

if abs(B-A)+W*T <= V*T:
    print("YES")
elif abs(B-A)+W*T > V*T:
    print("NO")

Buggy submission (verdict: Runtime Error):
i=(input().split())
j=(input().split())
k=(input())

A=int(i[0])
V=int(i[1])
B=int(j[0])
W=int(j[1])
T=int(k)

print(B)

if B>=A:
    if (B-A)+W*T <= V*T:
        print("YES")
    else (B-A)+W*T > V*T:
        print("NO")

if B<A:
    if (A-B)+W*T <= V*T:
        print("YES")
    else (A-B)+W*T > V*T:
        print("NO")
Problem p02886 (python)

Fixed submission:
n = int(input())
d =list(map(int,input().split()))
s = 0
for i in range(n):
    for j in range(i+1,n):
       s += d[i] * d[j]
print(s)

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

s = 0

for i in range(n):
  	for j in range(i+1,n):
      	s += d[i] * d[j]
print(s)

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

sum = 0

for i in range(n):
  	for j in range(i+1,n):
      	s += d[i] * d[j]
print(s)
Problem p02921 (python)

Fixed submission:
s=input()
t=input()
ans=0
if s[0] == t[0]:
    ans+=1
if s[1] == t[1]:
    ans+=1
if s[2] == t[2]:
    ans+=1
print(ans)

Buggy submission (verdict: Runtime Error):
s,t=input()
ans=0
if s[0] == t[0]:
    ans+=1
if s[1] == t[1]:
    ans+=1
if s[2] == t[2]:
    ans+=1
print(ans)
Problem p02958 (python)

Fixed submission:
N = int(input())
p = list(map(int,input().split()))
count = 0

for i in range(N):
  if p[i] != i + 1:
    count += 1
    
if count <= 2:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
n=int(input())
p=list(map(int,input().split(())))
count=0
for i in range(n);
    if p[i] != i+1:
        count+=1
if count==0 or count==2:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
n=int(input())
p=list(map(int,input().split(())))
count=0
for i in range(n);
    if p[i] != i+1:
        count+=1
if count==0 or count==2:
    print("Yes")
else:
    print("Noß")
Problem p03060 (python)

Fixed submission:
n= int(input())
v = list(map(int, input().split()))
c = list(map(int, input().split()))
ans=0
for i in range(n):
    if v[i] > c[i]:
        ans+=v[i]-c[i]
print(ans)

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

ans=0
for i in range(n):
    if v[i] > c[i]:
        ans+=v[i]-c[i]
print(ans)
Problem p03605 (python)

Fixed submission:
n = int(input())

if n == 19 or n == 29 or n == 39 or n == 49 or n == 59 or n == 69 or n == 79 or n == 89 or n == 91 or n == 92 or n == 93 or n == 94 or n == 95 or n == 96 or n == 97 or n == 98 or n == 99 :
  print("Yes")
else:
  print("No")

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

if n[0] == "9" or n[1] == "9":
  print("Yes")
else:
  print("No")

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

if n[0] == 9:
  print("Yes")
elif n[1] == 9:
  print("Yes")
else:
  print("No")

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

if n[0] == 9 or n[1] == 9:
  print("Yes")
else:
  print("No")

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

if n[0] == 9 or n[1] == 9:
  print("Yes")
else:
  print("No")

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

if n == 19 or n == 29 or n == 39 or n == 49 or n == 59 or n == 69 or n == 79 or n == 89 or n == 91 n == 92 or n == 93 n == 94 or n == 95 or n == 96 or n == 97 or n == 98 or n == 99 :
  print("Yes")
else:
  print("No")
Problem p03657 (python)

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

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

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

if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0
	print("Possible")
else:
  	print("Impossible")
Problem p03711 (python)

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

a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]

if x in a and y in a:
  	print("Yes")
elif x in b and y in b:
  	print("Yes")
else:
  	print("No")

Buggy submission (verdict: Runtime Error):
x,y = map(int,input().split())

a = [1,3,5,7,,8,10,12]
b = [4,6,9,11]

if x in a and y in a:
  	print("Yes")
elif x in b and y in b:
  	print("Yes")
else:
  	print("No")