Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
import sys
import math
from io import StringIO


lines = [[0,1,2], [3,4,5], [6,7,8],[0,3,6],[1,4,7],[2,4,8],[0,4,8],[2,4,6]]

table = [int(s) for s in input().split()]
table += [int(s) for s in input().split()]
table += [int(s) for s in input().split()]

lis = [int(input()) for _ in range(int(input()))]

ans = [ n in lis for n in table ]

for line in lines:
  valid = True
  for num in line:
    if not ans[num] :
      valid = False
      break

      if valid:
        print('Yes')
        return

      print('No')


Fixed submission:
import sys
import math
from io import StringIO
import unittest

lines = [[0,1,2], [3,4,5], [6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]]

def resolve():
    table = [int(s) for s in input().split()]
    table += [int(s) for s in input().split()]
    table += [int(s) for s in input().split()]

    lis = [int(input()) for _ in range(int(input()))]

    ans = [ n in lis for n in table ]

    for line in lines:
        valid = True
        for num in line:
            if not ans[num] :
                valid = False
                break

        if valid:
            print('Yes')
            return

    print('No')
resolve()

Buggy python submission (verdict: Runtime Error):

lines = [[0,1,2], [3,4,5], [6,7,8],[0,3,6],[1,4,7],[2,4,8],[0,4,8],[2,4,6]]

table = [int(s) for s in input().split()]
table += [int(s) for s in input().split()]
table += [int(s) for s in input().split()]

lis = [int(input()) for _ in range(int(input()))]

ans = [ n in lis for n in table ]

for line in lines:
  valid = True
  for num in line:
    if not ans[num] :
      valid = False
      break

      if valid:
        print('Yes')
        return

      print('No')

Fixed submission:
import sys
import math
from io import StringIO
import unittest

lines = [[0,1,2], [3,4,5], [6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]]

def resolve():
    table = [int(s) for s in input().split()]
    table += [int(s) for s in input().split()]
    table += [int(s) for s in input().split()]

    lis = [int(input()) for _ in range(int(input()))]

    ans = [ n in lis for n in table ]

    for line in lines:
        valid = True
        for num in line:
            if not ans[num] :
                valid = False
                break

        if valid:
            print('Yes')
            return

    print('No')
resolve()
Buggy python submission (verdict: Runtime Error):
def resolve():
    inp = input().split()
    a = int(inp[0])
    b = int(inp[1])
    k = int(inp[2])

    if (a - k) <= 0 :
        k = k - a
        a = 0
    else:
        a = a - k
        k = 0

    if (b - k) <= 0:
        k = k - b
        b = 0
    else:
        b = b - k
        k = 0

    print(str(a) + ' ' + str(b))

    
if __name__ == "__main__":
    reslove()

Fixed submission:
import sys
from io import StringIO
import unittest

def resolve():
    inp = input().split()
    a = int(inp[0])
    b = int(inp[1])
    k = int(inp[2])

    if (a - k) <= 0 :
        k = k - a
        a = 0
    else:
        a = a - k
        k = 0

    if (b - k) <= 0:
        k = k - b
        b = 0
    else:
        b = b - k
        k = 0

    print(str(a) + ' ' + str(b))

if __name__ == "__main__":
    resolve()
Buggy python submission (verdict: Time Limit Exceeded):
import math
from functools import reduce

def gcd(*numbers):
    return reduce(math.gcd, numbers)

import sys
K=input()
K=int(K)
L=[]
a=1
b=1
c=1
for i in range(K):
    for j in range(K):
        for m in range(K):
            L.append(gcd(a,b,c))
            c=c+1
        c=1
        b=b+1
    b=1
    c=1
    a=a+1

S=sum(L)
print(S)

Fixed submission:
import math
from functools import reduce

def gcd(*numbers):
    return reduce(math.gcd, numbers)

import sys
K=input()
K=int(K)
S=0
a=1
b=1
c=1
for i in range(K):
    for j in range(K):
        if gcd(a,b)==1:
            S+=K
        else:
            S+=sum([gcd(a,b,c) for c in range(1,K+1)])
        c=1
        b=b+1
    b=1
    c=1
    a=a+1

print(S)
Buggy python submission (verdict: Runtime Error):
n,m=map(int,input().split())
a=[int(i) for i in input().split()]
count=0
 
A=sum(a)//(4*m)
for i in a:
  if a[i]>=A:
    count+=1
if count>=m:
  print("Yes")
else:
  print("No")

Fixed submission:
n,m=map(int,input().split())
a=[int(i) for i in input().split()]
count=0
 
A=sum(a)/(4*m)
for i in a:
  if i>=A:
    count+=1
if count>=m:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
n,m=map(int,input().split())
a=[int(i) for i in input().split()]
count=0

A=sum(a)//(4＊m)
for i in range(n):
  if a[i]>A:
    count+=1
if count>=m:
  print("Yes")
else:
  print("No")

Fixed submission:
n,m=map(int,input().split())
a=[int(i) for i in input().split()]
count=0
 
A=sum(a)/(4*m)
for i in a:
  if i>=A:
    count+=1
if count>=m:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
=int(input())
if l==1:
    print(float(1))
else:
    print(l/3**3)  

Fixed submission:
l=float(input())
print((l/3)**3)

Buggy python submission (verdict: Runtime Error):
l=int(input())
if l==1:
    print(float(1))
else:
    print(l/3**3):


Fixed submission:
l=float(input())
print((l/3)**3)
Buggy python submission (verdict: Runtime Error):
s=input()
S=''
moji=len(s)
for i in range(moji)
    S+='x'
print(S)

Fixed submission:
s=input()
print('x'*len(s))

Buggy python submission (verdict: Runtime Error):
s=str(input())
S=''
for i in range(len(s))
    S+='x'
print(S)

Fixed submission:
s=input()
print('x'*len(s))

Buggy python submission (verdict: Runtime Error):
s=input()
S=''
for i in range(len(s))
    S+='x'
print(S)

Fixed submission:
s=input()
print('x'*len(s))

Buggy python submission (verdict: Runtime Error):
s=input()
for i in range(len(s))
    s[i].replace(x)
print(s)

Fixed submission:
s=input()
print('x'*len(s))
Buggy python submission (verdict: Runtime Error):
h,n=map(int,inpiut().split())
a=[int(i) for i in input().split()]

if sum(a)>h:
    print("Yes")
else:
    print("No")

Fixed submission:
h,n=map(int,input().split())
a=[int(i) for i in input().split()]

if sum(a)>=h:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a=b:
  print("Yes")
else:
  print("No")

Fixed submission:
a,b=map(int,input().split())
if a==b:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
print("Yes" a=b else "No" )

Fixed submission:
a,b=map(int,input().split())
if a==b:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
count=0
for i in range(n):
    if s[i]=="A":
        if s[i+1]=="B":
            if s[i+2]=="C":
                count+=1
print(count)


Fixed submission:
n=int(input())
s=input()
count=0
for i in range(n):
    if s[i]=="A":
        if i+1<n and s[i+1]=="B":
            if i+2<n and s[i+2]=="C":
                count+=1
print(count)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
count=0
for i in range(len(s)):
    if s[i]=="A":
        if s[i+1]=="B":
            if s[i+2]=="C":
                count+=1
print(count)


Fixed submission:
n=int(input())
s=input()
count=0
for i in range(n):
    if s[i]=="A":
        if i+1<n and s[i+1]=="B":
            if i+2<n and s[i+2]=="C":
                count+=1
print(count)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
count=0
for i in range(len(s))
    if s[i]=="A":
        if s[i+1]=="B":
            if s[i+2]=="C":
                count+=1
print(count)


Fixed submission:
n=int(input())
s=input()
count=0
for i in range(n):
    if s[i]=="A":
        if i+1<n and s[i+1]=="B":
            if i+2<n and s[i+2]=="C":
                count+=1
print(count)
Buggy python submission (verdict: Runtime Error):
a,b,k=map(int,input().split())
if a-k>=0:
    print(a-k,b)
elif a+b>=k:
    print(0,a+b-k)
else:
    print(0,0z)


Fixed submission:
a,b,k=map(int,input().split())
if a-k>=0:
    print(a-k,b)
elif a+b>=k:
    print(0,a+b-k)
else:
    print(0,0)

Buggy python submission (verdict: Time Limit Exceeded):
a,b,k=map(int,input().split())
for i in range(k):
    if a>0:
        a-=1
    elif a==0 and b>0:
        b-=1
print(a,b)

Fixed submission:
a,b,k=map(int,input().split())
if a-k>=0:
    print(a-k,b)
elif a+b>=k:
    print(0,a+b-k)
else:
    print(0,0)

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
k=int(input())
for i in range (k):
  if a > 0:
    a-=1
  elif　a<=0:
  	if b > 0:
      b-=1
  elif a==0 and b==0:
    break
    	print(0)
print(a, b)

Fixed submission:
a,b,k=map(int,input().split())
if a-k>=0:
    print(a-k,b)
elif a+b>=k:
    print(0,a+b-k)
else:
    print(0,0)

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
k=int(input())
for i in range (k):
  if a > 0:
    a-=1
  elif　a<=0:
  	if b > 0:
      b-=1
print(a, b)

Fixed submission:
a,b,k=map(int,input().split())
if a-k>=0:
    print(a-k,b)
elif a+b>=k:
    print(0,a+b-k)
else:
    print(0,0)

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
k=int(input())
for i in range (k):
  if a > 0:
    a-=1
  elif:
  	if b > 0:
      b-=1
print(a, b)

Fixed submission:
a,b,k=map(int,input().split())
if a-k>=0:
    print(a-k,b)
elif a+b>=k:
    print(0,a+b-k)
else:
    print(0,0)

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
k=int(input())
for i in range (k):
  if a > 0:
    a-1
  elif:
  	if b > 0:
      b-1
print(a, b)

Fixed submission:
a,b,k=map(int,input().split())
if a-k>=0:
    print(a-k,b)
elif a+b>=k:
    print(0,a+b-k)
else:
    print(0,0)

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
k=int(input())
for i in range (k):
  if a > 0:
    a-1
  else:
  	if b > 0:
      b-1
print(a, b)
      

Fixed submission:
a,b,k=map(int,input().split())
if a-k>=0:
    print(a-k,b)
elif a+b>=k:
    print(0,a+b-k)
else:
    print(0,0)
Buggy python submission (verdict: Runtime Error):
n=input()
s,t=input().split()

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)


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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)

Buggy python submission (verdict: Runtime Error):
n=input()
s,t=input().split()

word=""
for i in range(n):
    word+=s[i]+t[i]
print(word)


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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)

Buggy python submission (verdict: Runtime Error):
zn=int(input())
s,t=input().split()
word=""
for i in range(n):
  word+=s[i]+t[i]
 
print(word)

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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s,t=input(),split()
word=""
for i in range(n):
  word+=s[i]+t[i]
 
print(word)

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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)

Buggy python submission (verdict: Runtime Error):
zn=int(input())
s,t=input(),split()
word=""
for i in range(n):
  word+=s[i]+t[i]
 
print(word)

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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s,t=map(int,input(),split())
word=""
for i in range(n):
  word+=s[i]+t[i]

print(word)

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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
t=input()
word = 0
for i in range(n):
  word += s[i] + t[i]
 
print(word)

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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
t=input()
word = 0
for i in range(n):
  word += s[i]
  for j in range(n):
    word += t[j]
 
print(word)
  

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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
t=input()
word = 0
for i in range(n):
  word += s[n]
  for j in range(n):
    word += t[n]

print(word)
  


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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
t=input()
word = 0
for i in range(n):
  for j in range(n):
    word += i + j

print(word)
  

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

word=""
for i in range(n):
    word+=(s[i]+t[i])
print(word)
Buggy python submission (verdict: Runtime Error):
n=int(input())
for i in range(1,50001):
  if (i＊1.08)==n:
    print(i)
    break
  else:
    print(":(")

Fixed submission:
n = int(input().strip())

for i in range(1, 50001):
    if int(i * 1.08) == n:
        print(i)
        break
else:
    print(":(")

Buggy python submission (verdict: Runtime Error):
n=int(input())
if (n//1.08)%2==0:
  print(n//1.08)
else:
  print(:()

Fixed submission:
n = int(input().strip())

for i in range(1, 50001):
    if int(i * 1.08) == n:
        print(i)
        break
else:
    print(":(")
Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
word=""
for i in range(len(s)):
    if ord(i)+n>90:
        word+=chr(ord(i)+n-26)
    else:
        word+=chr(ord(i)+n)
print(word)


Fixed submission:
n=int(input())
s=input()
word=""
for i in range(len(s)):
    if ord(s[i])+n>90:
        word+=chr(ord(s[i])+n-26)
    else:
        word+=chr(ord(s[i])+n)
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
sorted(s)
print((s-s[n:])+s[n:])

Fixed submission:
n=int(input())
s=input()
word=""
for i in range(len(s)):
    if ord(s[i])+n>90:
        word+=chr(ord(s[i])+n-26)
    else:
        word+=chr(ord(s[i])+n)
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
s=sorted(s)
print(s[n:]+(s-s[n:]))

Fixed submission:
n=int(input())
s=input()
word=""
for i in range(len(s)):
    if ord(s[i])+n>90:
        word+=chr(ord(s[i])+n-26)
    else:
        word+=chr(ord(s[i])+n)
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
sorted(s)
print(s[n:]+(s-s[n:]))

Fixed submission:
n=int(input())
s=input()
word=""
for i in range(len(s)):
    if ord(s[i])+n>90:
        word+=chr(ord(s[i])+n-26)
    else:
        word+=chr(ord(s[i])+n)
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input().sort()
print(s[n:]+(s-s[n:]))

Fixed submission:
n=int(input())
s=input()
word=""
for i in range(len(s)):
    if ord(s[i])+n>90:
        word+=chr(ord(s[i])+n-26)
    else:
        word+=chr(ord(s[i])+n)
print(word)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input().sort()
print(s[:n]+s[n:])

Fixed submission:
n=int(input())
s=input()
word=""
for i in range(len(s)):
    if ord(s[i])+n>90:
        word+=chr(ord(s[i])+n-26)
    else:
        word+=chr(ord(s[i])+n)
print(word)
Buggy python submission (verdict: Runtime Error):
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print((x-4)*(-100000))
elif x>=4 and y<=3:
  print((y-4)*(-100000))
elif x<=3 and y<=3:
  peint(((x-4)*(-100000))+((y-4)*(-100000)))
else:
  print(0)

Fixed submission:
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print((x-4)*(-100000))
elif x>=4 and y<=3:
  print((y-4)*(-100000))
elif x<=3 and y<=3:
  print((x-4)*(-100000)+(y-4)*(-100000))
else:
  print(0)

Buggy python submission (verdict: Runtime Error):
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print((x-4)*(-100000))
elif x>=4 and y<=3:
  print((y-4)*(-100000))
elif x<=3 and y<=3:
  peint((x-4)*(-100000)+(y-4)*(-100000))
else:
  print(0)

Fixed submission:
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print((x-4)*(-100000))
elif x>=4 and y<=3:
  print((y-4)*(-100000))
elif x<=3 and y<=3:
  print((x-4)*(-100000)+(y-4)*(-100000))
else:
  print(0)

Buggy python submission (verdict: Runtime Error):
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print(x*100000)
elif x>=4 and y<=3:
  print(y*100000)
elif x<=3 and y<=3:
  peint(x*100000+y*100000)
else:
  print(0)

Fixed submission:
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print((x-4)*(-100000))
elif x>=4 and y<=3:
  print((y-4)*(-100000))
elif x<=3 and y<=3:
  print((x-4)*(-100000)+(y-4)*(-100000))
else:
  print(0)

Buggy python submission (verdict: Runtime Error):
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4 x>=4 or y<=3:
  print(x*10000)

Fixed submission:
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print((x-4)*(-100000))
elif x>=4 and y<=3:
  print((y-4)*(-100000))
elif x<=3 and y<=3:
  print((x-4)*(-100000)+(y-4)*(-100000))
else:
  print(0)

Buggy python submission (verdict: Runtime Error):
x=int(input())
y=int(input())
if x==1 and y==1:
  print(1000000)

Fixed submission:
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print((x-4)*(-100000))
elif x>=4 and y<=3:
  print((y-4)*(-100000))
elif x<=3 and y<=3:
  print((x-4)*(-100000)+(y-4)*(-100000))
else:
  print(0)

Buggy python submission (verdict: Runtime Error):
x=int(input())
y=int(input())
if x==1 and y==1:
  print(1000000)
elif x==1 and y==2 or x==2 and y==1:
  print(500000)
elif x==1 and y==3 or x==3 and y==1 or x==2 and y==2:
  print(400000)
elif x==3 and y==3:
  print(200000)
elif x==1 and y>=4 or x>=4 and y==1:
  print(300000)
elif x==2 and y>=4 or x>=4 and y==2:
  print(200000)
elif x==3 and y>=4 or x>=4 and y==3:
  print(100000)
else:
  pass

Fixed submission:
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print((x-4)*(-100000))
elif x>=4 and y<=3:
  print((y-4)*(-100000))
elif x<=3 and y<=3:
  print((x-4)*(-100000)+(y-4)*(-100000))
else:
  print(0)
Buggy python submission (verdict: Runtime Error):
r=int(input())
print(r＊r)

Fixed submission:
r=int(input())
print(r*r)

Buggy python submission (verdict: Runtime Error):
r=int(input())
print(r＊＊2)

Fixed submission:
r=int(input())
print(r*r)
Buggy python submission (verdict: Runtime Error):
n=int(input())
s=input()
if s[:(n//2)]＊2==s:
  print("Yes")
else:
  print("No")

Fixed submission:
N=int(input())
S=input()
if S[:(N//2)]*2==S:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a<10 and b<10:
  print(a＊b)
else:
  print('-1')

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

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

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

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

Buggy python submission (verdict: Runtime Error):
A,B=map(int,input().split())
print(0 if A<=2B else A-2B)

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

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

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

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

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

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

Fixed submission:
a,b=map(int,input().split())
print(0 if a<=(2*b) else a-(2*b))
Buggy python submission (verdict: Runtime Error):
n=int(input())
d=li(map(int,input().split())
 
sum=0
for i in range(n-1):
    for l in range(i+1,n):
        sum+=d[i]*d[l]
print(sum)

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

Buggy python submission (verdict: Runtime Error):
n=int(input())
d=[int(input()) for i in range(n)]

sum=0
for i in range(n-1):
    for l in range(i+1,n):
        sum+=d[i]*d[l]
print(sum)


    


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

Buggy python submission (verdict: Runtime Error):
n=int(input())
d=[int(input()) for i in range(n)]

sum=0
for i in range(n-1):
    for l in range(i+1,n):
        sum+=d[i]*d[l]
print(sum)


    

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

Buggy python submission (verdict: Runtime Error):
n=int(input())
d=[int(input()) for i in range(n)]

sum=0
for i in range(n):
    for l in range(1<=n):
        sum+=d[i]*d[l]
print(sum)


    

Fixed submission:
n=int(input())
d=list(map(int,input().split()))
 
sum=0
for i in range(n-1):
    for l in range(i+1,n):
        sum+=d[i]*d[l]
print(sum)
Buggy python submission (verdict: Runtime Error):
N=map(int,input().split())
count=0
for i in N:
  if N[i]%2!=0
  	count+=1
  else:
    pass
print(count//len(N))

Fixed submission:
N = int(input())
count = 0
 
for i in range(1,N+1):
    if i % 2 == 1:
        count += 1

print(count/N)

Buggy python submission (verdict: Runtime Error):
N=map(int,input().split())
count=0
while N<=0:
  if N%2!=0
  	count+=1
  else:
    pass
print(count//len(N))

Fixed submission:
N = int(input())
count = 0
 
for i in range(1,N+1):
    if i % 2 == 1:
        count += 1

print(count/N)

Buggy python submission (verdict: Runtime Error):
n=int(inpjut())
print(1/count(n%2==1))

Fixed submission:
N = int(input())
count = 0
 
for i in range(1,N+1):
    if i % 2 == 1:
        count += 1

print(count/N)

Buggy python submission (verdict: Runtime Error):
n =int(input())
print(n//2 if n$2==0 else n%2)

Fixed submission:
N = int(input())
count = 0
 
for i in range(1,N+1):
    if i % 2 == 1:
        count += 1

print(count/N)

Buggy python submission (verdict: Runtime Error):
n =int(input())
print(1%nn)

Fixed submission:
N = int(input())
count = 0
 
for i in range(1,N+1):
    if i % 2 == 1:
        count += 1

print(count/N)