ZhenlongDai/ACPR huggingface dataset:
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
if '7' in a:
   print('yes')
else:
   print('no')

Failing test case input:
2578

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
a = input()
if '7' in a:
   print('Yes')
else:
   print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
number = map(int, input().split()) 

if 7 in number:
	print("Yes")
else:
	print("No")

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
number = input()
  
if '7' in number:
	print("Yes")
else:
	print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int( input() )
flag = 0

while n > 0:
    if n%10 == 7:
        flag = 1
        print("YES")
        break
    else:
        n = int( n / 10 )

if flag == 0:
    print("NO")

Failing test case input:
2578

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n = int( input() )

while n > 0:
    if n%10 == 7:
        print("Yes")
        exit()
    else:
        n = int( n / 10 )

print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
if "7" in N:
    print("yes")
else:
    print("no")

Failing test case input:
2578

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
S = input()
if "7" in S:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()

flag = False
for i in n :
    print(i)
    if int(i)==7:
        flag=True
        break
    else:
        flag=False
print (flag)

Failing test case input:
2610

Expected output:
No


Actual output:
2
6
1
0
False


Fixed submission (verdict: Accepted):
n = input()
 
flag = "No"
for i in n :
    
    if int(i)==7:
        flag="Yes"
        break
    else:
        flag="No"
print (flag)

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
inputStr = input()

for c in inputStr:
    if c == '7':
        print("YES")
        exit()

print("NO")

Failing test case input:
380

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
inputStr = input()

out = 'No'
for c in inputStr:
    if c == '7':
        out = 'Yes'

print(out)

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input().split()
n = [int(i) for i in n]
f = 0

for i in n:
 if i == 7:
  f = 1

 if f ==1:  print("Yes")
 else: print("No")

Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
f = 0

for i in range(len(n)):
 if n[i] == "7":
  f = 1

  
if f ==1:  print("Yes")
else: print("No")
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = str(input())
a=1
for i in range(len(N)):
    if N[i]=='7':
        a=0
        break
if a==1:
    print('Yes')
else:
    print('No')

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = str(input())
a=1
for i in range(len(N)):
    if N[i]=='7':
        a=0
        break
if a==0:
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(input())
j = 0
for i in n:
    j = 1
if j==1:
    print("Yes")
else:
    print("No")

Failing test case input:
380

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = list(input())
j = 0
for i in n:
  if i == "7":
    j = 1
if j==1:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
i = input()

i = int(i)

flg = False

while i != 0:
  check = i % 10
  if check == 7:
    flg = True
    break
  i = i / 10

if flg == True:
  print('Yes')
else:
  print('No')

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
i = input()

i = int(i)

flg = False

while i != 0:
  check = i % 10
  if check == 7:
    flg = True
    break
  i = int(i / 10)

check = i % 10
if check == 7:
	flg = True

if flg == True:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):

ipt = str(input()).split()
if("7" in ipt):
    print("Yes")
else:
    print("No")


Failing test case input:
2578

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
ipt = str(input().split())
if("7" in ipt):
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()

if N in '7':
  print('Yes')
else:
  print('No')

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()

if '7' in N:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = list(input())
re = False
for i in range(len(k)):
  if i == '7':
    re = True

if re:
  print('Yes')
else:
  print('No')

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
k = list(str(input()))
re = False
for i in k:
  if i == '7':
    re = True
    
if re:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=list(input())
print('yes' if '7' in s else 'no')


Failing test case input:
1149

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N=list(input())
print('Yes' if '7' in N else 'No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s.find('7'):
    print("No")
else:
    print("Yes")




Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
if '7' in s:
    print("Yes")
else:
    print("No")
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

N = int(input())
l = [int(x) for x in list(str(N))]

if 7 in l:
    print("yes")
else:
    print("No")

Failing test case input:
2578

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):


N = input()
l = [int(x) for x in list(N)]

if 7 in l:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    s = input()
    for c in s:
        if c == '7':
            return 'Yes'
        return 'No'


if __name__ == '__main__':
    print(main())


Failing test case input:
2578

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
def main():
    s = input()
    for c in s:
        if c == '7':
            return 'Yes'
    return 'No'


if __name__ == '__main__':
    print(main())

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
s=0
if N/100 == 7:
    print("Yes")
    s+=1
    

N = N % 100 
    

if s==0 and int(N / 10) == 7:
    print("Yes")
    s+=1

N = N % 10 

if s==0 and N / 1 == 7:
    print("Yes")
if s == 0:
    print("No")

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
s=0
if int(N/100) == 7:
    print("Yes")
    s+=1
    

N = N % 100 
    

if s==0 and int(N / 10) == 7:
    print("Yes")
    s+=1

N = N % 10 

if s==0 and N / 1 == 7:
    print("Yes")
    s+=1
if s == 0:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()

count = False
for i in range(len(a)):
    if i == "7":
        count = True
        break

if count:
    print("Yes")
else:
    print("No")

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()

count = False
for i in range(len(a)):
    if a[i] == "7":
        count = True
        break

if count:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
li = list(map(int,input().split()))	
if li.count(7) > 0:
  print('Yes')
else:
  print('No')

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
li = list(input())	
if li.count('7') > 0:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=input()
if N.find('7')==1:
    print('yes')
else:
    print('no')

Failing test case input:
380

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N=input()
if '7' in N:
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
if '7' in input():
  print('yes')
else:
  print('no')

Failing test case input:
2610

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
if "7" in input():
  print("Yes")
else:
  print("No")
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
if '7' in str(input()):
  print('yes')
else:
  print('no')

Failing test case input:
739

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
if "7" in input():
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

  
N = input()
for i in N:
    if i == '7':
        print('Yes')
        break

Failing test case input:
818

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):

  
N = input()
flag = 'No'
for i in N:
    if i == '7':
        flag = 'Yes'
        
print(flag)

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = list(map(int, input()))

if 7 in N:
    print("YES")
else:
    print("NO")

Failing test case input:
818

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = list(map(int, input()))

if 7 in N:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
length_N = len(N)
count = 0

for i in range(length_N):
    if N[i] == '7':
        print('yes')
        count += 1
        break
    
if count == 0:
    print('no')

Failing test case input:
612

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = input()
length_N = len(N)
count = 0

for i in range(length_N):
    if N[i] == '7':
        print('Yes')
        count += 1
        break
    
if count == 0:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
A=str(N)
if all(s!=7 for s in A):
  print("No")
else:
  print("Yes")

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N=int(input())
A=str(N)
if "7" in A:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input().split()
ans = 'No'
for e in s:
  if e == '7':
    ans = 'Yes'
    break
print(ans)


Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
ans = 'No'
for e in s:
  if e == '7':
    ans = 'Yes'
    break
print(ans)

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
if "7" in n:
  print("yes")
else:
  print("no")

Failing test case input:
2610

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
n = input()
if "7" in n:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(input())
for i in n:
  if str(i) == 7:
    print('Yes')
    exit()
print('No')


Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = list(input())
for i in n:
  if int(i) == 7:
    print('Yes')
    exit()
print('No')
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
N = str(n)
if "7" in N:
    print("yes")
else:
    print("no")
    

Failing test case input:
1149

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
n = input()
N = str(n)
if "7" in N:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=input()
for i in N :
  if i=='7':
    print('Yes')
  else:
    print('No')


Failing test case input:
4586

Expected output:
No


Actual output:
No
No
No
No


Fixed submission (verdict: Accepted):
N=list(input())
if '7' in N :
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
if "7" in "N":
  print("Yes")
else:
  print("No")

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if "7" in N:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n='str(input())'
for i in range(len(n)):
  if n[i]=='7':
    print('Yes')
    exit()
print('No')

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=str(input())
for i in range(len(n)):
  if n[i]=='7':
    print('Yes')
    exit()
print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()

isSeven = False
for i in N:
    if int(i)%7 == 0:
        isSeven = True

if isSeven:
    print('Yes')
else:
    print('No')

Failing test case input:
380

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = input()

isSeven = False
for i in N:
    if int(i) == 7:
        isSeven = True

if isSeven:
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
num = int(input())
n10 = num - 70
n1 = num - 7
if num - 700 <= 99 and 0 <= num - 700:
  print("Yes")
elif n10 % 100 >= 0 and n10 % 100 <=9:
  print("Yes")
elif n1 % 10 == 0:
  print("Tes")
else:
  print("No")

Failing test case input:
3557

Expected output:
Yes


Actual output:
Tes


Fixed submission (verdict: Accepted):
num = int(input())
n100 = num - 700
n10 = num - 70
n1 = num - 7
if n100  <= 99 and 0 <= n100:
  print("Yes")
elif n10 % 100 >= 0 and n10 % 100 <=9:
  print("Yes")
elif n1 % 10 == 0:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N=input()
if N.find('7') > 0:
    print('Yes')
else:
    print('No')

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N=input()


if N.find('7') !=-1:
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s.count('7') > 0:
  print('YES')
else:
  print('NO')

Failing test case input:
2578

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
if s.count('7') > 0:
  print('Yes')
else:
  print('No')
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x=input()
y="No"
for y in x:
  if y=="7":
    y="Yes"
print(y)

Failing test case input:
818

Expected output:
No


Actual output:
8


Fixed submission (verdict: Accepted):
x=input()
z="No"
for y in x:
  if y=="7":
    z="Yes"
print(z)

Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys
def input(): return sys.stdin.readline().rstrip()

N = input()

print(N)
if '7' in N:
    print('Yes')
else:
    print('No')



Failing test case input:
2578

Expected output:
Yes


Actual output:
2578
Yes


Fixed submission (verdict: Accepted):
import sys
def input(): return sys.stdin.readline().rstrip()

N = input()

if '7' in N:
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
num = int(input('')) 

num_100 = num / 100

num_10 = (num % 100) / 10

num_1 = (num % 10)

if num_100 == 7:
    print("Yes")
elif num_10 == 7:
    print("Yes")
elif num_1 == 7:
    print("Yes")
else:
    print("No")




Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
num = int(input('')) 

num_100 = num / 100

num_10 = (num % 100) / 10

num_1 = (num % 10)

if int(num_100) == 7:
    print("Yes")
elif int(num_10) == 7:
    print("Yes")
elif int(num_1) == 7:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
input_string = input()
for n in input_string:
  if n == '7':
    print('Yes')
    break
 

Failing test case input:
4586

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
input_string = input()
yes = 0
for n in input_string:
  if n == '7':
    print('Yes')
    yes = 1
    break
if not yes:
  print('No')
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):



 
import sys
import math



 

fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile


mod=1000000007
 

def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 

t=1
for tt in range(t):
    n=str(input())
    if '7' in n:
        print("YES")
    else:
        print("NO")
    
    
    
    

if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Failing test case input:
612

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):



 
import sys
import math



 

fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile


mod=1000000007
 

def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 

t=1
for tt in range(t):
    n=str(input())
    if '7' in n:
        print("Yes")
    else:
        print("No")
    
    
    
    

if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = map(int, input())
x = list(n)
print("YES" if 7 in x else "NO")


Failing test case input:
612

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = map(int, input())
x = list(n)
print("Yes" if 7 in x else "No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
m = list(input())
print(m)

if "7" in m:
    print("Yes")
else:
    print("No")


Failing test case input:
818

Expected output:
No


Actual output:
['8', '1', '8']
No


Fixed submission (verdict: Accepted):
m = list(input())

if "7" in m:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = str(input())
if "7" in s:
    print("YES")
else:
    print("NO")

Failing test case input:
947

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
s = str(input())
if "7" in s:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(map(int, input().split()))
if 7 in n:
    print('Yes')
else:
    print('No')

Failing test case input:
2578

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = list(input())
n = list(map(int, n))
if 7 in n:
    print('Yes')
else:
    print('No')
Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a = list(map(int, input().split()))

yes = 0

for i in a:
  if i == 7:
    yes += 1
if yes > 0:
  print('Yes')

Failing test case input:
3557

Expected output:
Yes


Actual output:

Fixed submission (verdict: Accepted):
a = list(input())
 
yes = 0
 
for i in a:
  if i == '7':
    yes += 1
if yes > 0:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
string = input()
list_of_integers =[int(d) for d in str(string)]
ans = "No"
for i in range(0 , len(list_of_integers)-1):
  if list_of_integers[i] == 7:
    ans = "Yes"
    break
print(ans)


Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
string = input()
list_of_integers =[int(d) for d in str(string)]

l = len(list_of_integers)
ans = "No"
for i in list_of_integers:
  if (i == 7):
    ans = "Yes"
  
print(ans)

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
  
n100 = int(N/100)
n10 = int((N-n100*100)/10)
n1 = int(N - n100*100 - n10*10 )
print(n100, n10, n1)
if n100==7 or n10==7 or n1==7 :
	print('Yes')
else:
	print('No')

Failing test case input:
1149

Expected output:
No


Actual output:
11 4 9
No


Fixed submission (verdict: Accepted):

N = int(input())

n100 = int(N/100)
n10 = int((N-n100*100)/10)
n1 = int(N - n100*100 - n10*10 )
if n100==7 or n10==7 or n1==7 :
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
num = int(input())
ans = "No"
for i in range(3):
  reminder = num % 10
  if(reminder==7):
    ans = "Yes"
  num = num/10
  
print(ans)

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
num = int(input())
ans = "No"
for i in range(3):
  reminder = num % 10
  if(reminder==7):
    ans = "Yes"
  num = num/10
  num = int(num)
  
print(ans)

Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s = "117"
if s.find("7") != -1:
    print ("Yes")
else:
    print ("No")

Failing test case input:
612

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
if s.find("7") != -1:
    print ("Yes")
else:
    print ("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
thereIs7 = False
for i in N:
    if i == 7:
        thereIs7 = True
        break
if thereIs7:
    print('Yes')
else:
    print("No")

Failing test case input:
2578

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
thereIs7 = False
for i in N:
    if i == '7':
        thereIs7 = True
        break
if thereIs7:
    print('Yes')
else:
    print("No")
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=list(input().split())
count=0  
for i in range(len(a)):
	if a[i]=='7':
		count+=1
if count>0:
	print('Yes')
else:
	print('No')

Failing test case input:
2578

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=list(input())
count=0  
for i in range(len(a)):
	if a[i]=='7':
		count+=1
if count>0:
	print('Yes')
else:
	print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = (input())
if '7' in n:
  print('YES')
else:
  print('NO')

Failing test case input:
947

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n = list(input())
if '7' in n:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
  s = input()
  print('7' in s)

if __name__ == '__main__':
  main()

Failing test case input:
380

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
def main():
  s = input()
  r = '7' in s
  if r:
    print('Yes')
  else:
    print('No')

if __name__ == '__main__':
  main()

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(input())
if 7 in n:
  print("Yes")
else:
  print("No")

Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = list(input())
if "7" in n:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
for i in range(len(n)):
    if n[i] == '7':
        print('Yes')
        exit

print('No')

Failing test case input:
947

Expected output:
Yes


Actual output:
Yes
No


Fixed submission (verdict: Accepted):
n = input()
for i in range(len(n)):
    if n[i] == '7':
        print('Yes')
        exit()

print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
if __name__ == "__main__":
  n = input()
  if '7' in n:
  	print('yes')
  else:
  	print('no')

Failing test case input:
739

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
if __name__ == "__main__":
  n = input()
  if '7' in n:
  	print('Yes')
  else:
  	print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=map(int,input().split())
def d(n):
    return "Yes" if 7 in n else "No"
print(d(n))

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N=input()
def d(N):
    return "Yes" if "7" in N else "No"
print(d(N))

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
C=str(N)
c=0
for i in range(len(C)):
  if C[i]==7:
    c+=1
if c==0:
  print("No")
else:
  print("Yes")

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N=int(input())
C=str(N)
c=0
for i in range(len(C)):
  if int(C[i])==7:
    c+=1
if c==0:
  print("No")
else:
  print("Yes")
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
print(n)

if '7' in n:
  print('Yes')
else:
  print('No')

Failing test case input:
947

Expected output:
Yes


Actual output:
947
Yes


Fixed submission (verdict: Accepted):
n = input()

if '7' in n:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = 15
N = str(N)
F = int(N)







if F >= 100 and (int(N[-1]) == 7 or int(N[-2])==7 or int(N[-3]) == 7):
    print("Yes")
elif F >= 10 and (int(N[-1]) == 7 or int(N[-2])==7):
    print("Yes")
elif F >= 0 and (int(N[-1]) == 7):
    print("Yes")
else:
    print("No")

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
N = str(N)
F = int(N)







if F >= 100 and (int(N[-1]) == 7 or int(N[-2])==7 or int(N[-3]) == 7):
    print("Yes")
elif F >= 10 and (int(N[-1]) == 7 or int(N[-2])==7):
    print("Yes")
elif F >= 0 and (int(N[-1]) == 7):
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
string = input()
list_of_integers =[int(d) for d in str(string)]
ans = "No"
for i in range(0 , len(list_of_integers)-1):
  if list_of_integers[i] == 7:
    ans = "Yes"
  break
print(ans)

Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
string = input()
list_of_integers =[int(d) for d in str(string)]

l = len(list_of_integers)
ans = "No"
for i in list_of_integers:
  if (i == 7):
    ans = "Yes"
  
print(ans)

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
if '7' in N:
    print('Yes')
else:
    print:('No')

Failing test case input:
2610

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = input()
if "7" in N:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x=input()
for y in x:
  if y=="7":
    print("Yes")
print("No")


Failing test case input:
2578

Expected output:
Yes


Actual output:
Yes
No


Fixed submission (verdict: Accepted):
x=input()
z="No"
for y in x:
  if y=="7":
    z="Yes"
print(z)

Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):

ipt = str(input().split())
print(ipt)
if("7" in ipt):
    print("Yes")
else:
    print("No")


Failing test case input:
380

Expected output:
No


Actual output:
['380']
No


Fixed submission (verdict: Accepted):
ipt = str(input().split())
if("7" in ipt):
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A = input()
for i in range(len(A)):
    if A[i] == '7':
        YN = 'Yes'
    else:
        YN = 'No'
print(YN)

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
A = input()
YN = 'No'
for i in range(len(A)):
    if A[i] == '7':
        YN = 'Yes'
print(YN)
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
if '7' in list(input()):
    print('yes')
else:
    print('No') 

Failing test case input:
2578

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
if '7' in list(input()):
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()

if N.count("7") >= 1:
  print("yes")
else:
  print("No")

Failing test case input:
739

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
n = input()
if "7" in n:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if "7" in s:
   print("YES")
else:
  print("NO")
  

Failing test case input:
4586

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
if "7" in input():
  print("Yes")
  
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = str(input())
ans = 'yes'if any([i=='7' for i in a]) else 'no'
print(ans)

Failing test case input:
612

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
a = str(input())
ans = 'Yes'if any([i=='7' for i in a]) else 'No'
print(ans)

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print("YES" if "7" in input() else "NO")

Failing test case input:
1149

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
print("Yes" if "7" in input() else "No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
if "7" in n:
    print("Yss")
else:
    print("No")


Failing test case input:
739

Expected output:
Yes


Actual output:
Yss


Fixed submission (verdict: Accepted):
n = input()
if "7" in n:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N= str(input())
if "7" in N:
  print("YES")
else:
  print("NO")

Failing test case input:
818

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N= str(input())
if "7" in N:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = input()
print("7" in x)
if ("7" in x) == True:
    print("Yes")
else:
    print("No")

Failing test case input:
2610

Expected output:
No


Actual output:
False
No


Fixed submission (verdict: Accepted):
x = input()
if ("7" in x) == True:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a = list(input())
if(a.count('7') > 0):
    print("YES")
else:
    print("NO")


Failing test case input:
380

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a = list(input())
if(a.count('7') > 0):
    print("Yes")
else:
    print("No")
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
if n%10 == 7 or (n/10)%10==7 or (n/100)%10==7:
	print("Yes")
else:
	print("No")

Failing test case input:
2578

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=int(input())
if n%10 == 7 or (n
	print("Yes")
else:
	print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
if int(n[-1])==7 or int(n[-2])==7 or int(n[-3])==7:
    print("Yes")
else:
    print("NO")

Failing test case input:
2610

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=input()
if int(n[-1])==7 or int(n[-2])==7 or int(n[-3])==7:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N= input()
if ('34' in N):
    print("Yes")
else:
    print("No")

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N= input()
if ('7' in N):
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
print(n[-1], n[-2], n[-3])
if n[-1]==7 or n[-2]==7 or n[-3]==7:
    print("Yes")
else:
    print("No")

Failing test case input:
818

Expected output:
No


Actual output:
8 1 8
No


Fixed submission (verdict: Accepted):
n = input()
if n[-1]=='7' or n[-2]=='7' or n[-3]=='7':
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
for i in range(len(a)):
    if int(a[i]) == 7:
        flag = 1
        break
    else:
        flag = 0
if flag == 1:
    print('yes')
else:
    print('no')

Failing test case input:
818

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
a = input()
for i in range(len(a)):
    if int(a[i]) == 7:
        flag = 1
        break
    else:
        flag = 0
if flag == 1:
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
xs = input().split(" ")

if "7" in xs:
  print("Yes")
else:
  print("No")

Failing test case input:
2578

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
xs = input()

if "7" in xs:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print('Yes' if all([i == '7' for i in input()]) else 'No')

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
print('Yes' if any([i == '7' for i in input()]) else 'No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()
if a in '7':
  print('Yes')
else:
  print('No')

Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a = str(input())
if '7' in a:
  print('Yes')
else:
  print('No')
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
a=str(N)
if 'a' in '7':
  print("Yes")
else:
  print("No")
   

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=input()
for idx in range(len(N)):
  if N[idx] == 7:
    print('Yes')
    break
else:
  print('No')


Failing test case input:
2578

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N=input()
for idx in range(len(N)):
  if N[idx] == str(7):
    print('Yes')
    break
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = str(input())
if "7" in "N":
  print("Yes")
else:
  print("No")


Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if "7" in N:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a = map(int, input().split())
a = int(list(a)[0])

ans = 'No'
while a > 99:
    if a % 10 == 7:
        ans = 'Yes'
        break
    a /= 10
    a = int(a)

print(ans)



Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a = map(int, input().split())
a = int(list(a)[0])




ans = 'No'
while a > 1:
    
    if a % 10 == 7:
        ans = 'Yes'
        break
    a /= 10
    a = int(a)
print(ans)

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = str(input())
a = str(7)
if n in a:
  print('Yes')
else:
  print('No')

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = str(input())
a = '7'
if a in n:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
if "7" in a:
  print("YES")
else:
  print("NO")

Failing test case input:
818

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a = input()
if "7" in a:
  print("Yes")
else:
  print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
if "7" in n :
    print("YES")
else:
    print("NO")

Failing test case input:
3557

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n=input()
if "7" in n :
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = str(input())
b = "No"
if "7" in N:
    b = "yes"
print(b)

Failing test case input:
3557

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N = str(input())
b = "No"
if "7" in N:
    b = "Yes"
print(b)

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
 
if n in "7":
  print("Yes")
elif n not in "7":
  print("No")

Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
if "7" in n:
  print("Yes")
else:
  print("No")
Problem: p02711
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = input()
n = set(N)
if 7  in n:
    print("Yes")
else:
    print("No")

Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
n = set(N)
if "7" in n:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
ans=0
for i in n:
    if i==7:
        ans=1
if ans==1:
    print("Yes")
else:
    print("No")


Failing test case input:
947

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
ans=0
for i in n:
    if i==str(7):
        ans=1
if ans==1:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = list(input())
if S.count(7)==0:
  print('No')
else:
  print('Yes')
  


Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = list(input())
if S.count('7'):
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    N = int(input())
    flag = False
    for _ in range(3):
        N = N 
        if N % 7 == 0:
            flag = True
    if flag:print("Yes")
    else:print("No")

if __name__ == "__main__":
    main()

Failing test case input:
3557

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
def main():
    N = input()
    for i in N:
        if int(i) == 7:
            print("Yes")
            quit(0)
    print("No")

if __name__ == "__main__":
    main()

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
z = map(int, list(str(input())))
print(True if 7 in z else False)

Failing test case input:
2610

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
z = map(int, list(str(input())))
print('Yes' if 7 in z else 'No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = str(input())

n = len(s)
cnt = 0
for i in range(n):
    if s[i] == '7':
        print("Yes")
        cnt = 1
        break

if cnt == 1:
    print("Yes")
else:
    print("No")


Failing test case input:
3557

Expected output:
Yes


Actual output:
Yes
Yes


Fixed submission (verdict: Accepted):
s = str(input())

n = len(s)
cnt = 0
for i in range(n):
    if s[i] == '7':
        cnt = 1
        break

if cnt == 1:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
if n in "7":
    print("Yes")
else:
    print("No")



Failing test case input:
2578

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()

if "7" in n:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=input()
n=list(N)
x= '7' in n
if x is True:
  print("yes")
else:
  print("no")
  

Failing test case input:
818

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N=input()
n=list(N)
x= '7' in n
if x is True:
  print("Yes")
else:
  print("No")
Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
if n% 10 == 7:
    print("Yes")
else:
    print("No")


Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if '7' in str(N):
    print('Yes')
else:
    print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
if '7' in n:
  print('YES')
else:
  print('NO')

Failing test case input:
947

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n = list(input())
if '7' in n:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = str(input())
if "7" in N:
    print("yes")
else:
    print("No")

Failing test case input:
947

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N = str(input())
if "7" in N:
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if '7' in s:
  print('YES')
else:
  print('NO')

Failing test case input:
1149

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
if '7' in s:
  print('Yes')
else:
  print('No')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
if ( '5' in N ):
	print("Yes")
else:
  	print("No")
  

Failing test case input:
4586

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N= input()
if ('7' in N):
    print("Yes")
else:
    print("No")

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = list(map(int, input()))
cnt = 0
for i in N:
  if i=='7':
    cnt += 1
if cnt==0:
  print('No')
else:
  print('Yes')

Failing test case input:
739

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = list(map(int, input()))
cnt = 0
for i in N:
    if i==7:
        cnt += 1
if cnt==0:
    print('No')
else:
    print('Yes')

Problem: p02711
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N =  str(input())
if "7" in N:
    "Yes"
else:
    "No"

Failing test case input:
1149

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N =  str(input())
if "7" in N:
    print("Yes")
else:
    print("No")
Problem: p03449
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
l1 = list(map(int,list(input().split())))
l2 = list(map(int,list(input().split())))

ans = 0
for i in range(n):
  s = 0
  for j in range(i):
    s += l1[j]
  for j in range(i-1,n):
    s += l2[j]
  if ans < s:
    ans = s

print(ans)

Failing test case input:
7
-2 0 1 0 1 33 1
136 0 -2 6 -4 -1 0

Expected output:
133


Actual output:
135


Fixed submission (verdict: Accepted):
n = int(input())
l1 = list(map(int,list(input().split())))
l2 = list(map(int,list(input().split())))

ans = 0
for i in range(n):
  s = 0
  for j in range(i+1):
    s += l1[j]
  for j in range(i,n):
    s += l2[j]
  if ans < s:
    ans = s

print(ans)

Problem: p03449
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = [list(map(int,input().split())) for i in range(2)]

def turnpoint(list,n):
    sum1 = 0
    sum2 = 0
    for i in range(n):
        sum1 += list[0][i]
    for i in range(N-n+1):
        sum2 += list[1][N-i-1]
    return sum1 + sum2

if N != 1:
   maxvalue = 0
   for i in range(N):
       maxvalue = max(maxvalue,turnpoint(A,i))

   print(maxvalue)

else:
    print(A[0][0]+A[1][0])

Failing test case input:
7
-2 -1 0 0 1 23 1
73 -1 0 14 -8 -1 1

Expected output:
76


Actual output:
79


Fixed submission (verdict: Accepted):
N = int(input())
A = [list(map(int,input().split())) for i in range(2)]

def turnpoint(list,n):
    sum1 = 0
    sum2 = 0
    for i in range(n):
        sum1 += list[0][i]
    for i in range(N-n+1):
        sum2 += list[1][N-i-1]
    return sum1 + sum2


maxvalue = 0
for i in range(N):
    maxvalue = max(maxvalue,turnpoint(A,i+1))

print(maxvalue)

Problem: p03449
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = []
for i in range(2):
    A.append([int(i)for i in input().split()])
ans = 0
for i in range(N):
    ans += A[0][i]
ans += A[1][N-1]
max = ans
for i in range (N-1):
    ans = ans + A[1][i-2] - A[0][i-1]
    if ans > max:
        max = ans

print(max)

Failing test case input:
7
-2 -1 1 0 1 19 1
136 -2 0 7 -8 -2 0

Expected output:
129


Actual output:
158


Fixed submission (verdict: Accepted):
N = int(input())
A = []
for i in range(2):
    A.append([int(i)for i in input().split()])
ans = 0
for i in range(N):
    ans += A[0][i]
ans += A[1][N-1]
max = ans

for i in range (N-1):
    ans = ans + A[1][N-i-2] - A[0][N-i-1]
    if ans > max:
        max = ans

print(max)
Problem: p03449
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
List = []
for i in range (2):
  List.append(list(map(int, input().split())))
sumList1 = [0]*N
sumList2 = [0]*N
for i in range(N):
  if i == 0:
    sumList1[i] = List[0][i]
    sumList2[N-1-i] = List[1][N-1-i]
  else:
    sumList1[i] = List[0][i]+sumList1[i-1]
    sumList2[N-1-i] = List[1][i]+sumList1[N-i]
res = 0
for i in range(N):
  res = max(sumList1[i]+sumList2[i],res)
print(res)

Failing test case input:
7
0 14 -1 -1 2 6 3
32 2 1 5 1 -2 13

Expected output:
52


Actual output:
36


Fixed submission (verdict: Accepted):
N = int(input())
List = []
for i in range (2):
  List.append(list(map(int, input().split())))
sumList1 = [0]*N
sumList2 = [0]*N
for i in range(N):
  if i == 0:
    sumList1[i] = List[0][i]
    sumList2[N-1-i] = List[1][N-1-i]
  else:
    sumList1[i] = List[0][i]+sumList1[i-1]
    sumList2[N-1-i] = List[1][N-1-i]+sumList2[N-i]
res = 0
for i in range(N):
  res = max(sumList1[i]+sumList2[i],res)
print(res)

Problem: p03449
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
upper = list(map(int, input().split()))
lower = list(map(int, input().split()))
sum_c = 0

for i in range(1, N):
    sum_c = max(sum(upper[0:i]) + sum(lower[i-1:N]), sum_c) 

print(sum_c)

Failing test case input:
1
8
2

Expected output:
10


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())
upper = list(map(int, input().split()))
lower = list(map(int, input().split()))
sum_c = 0

for i in range(1, N+1):
    sum_c = max(sum(upper[0:i]) + sum(lower[i-1:N]), sum_c) 

print(sum_c)

Problem: p03449
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))

for i in range(n):
    if(sum(a[i+1:]) < sum(b[i:-1])):
        print(sum(a[:i+1]) + sum(b[i:]))
        exit()
print(sum(a) + b[n-1])

Failing test case input:
7
3 3 4 5 4 5 3
5 3 8 4 0 5 2

Expected output:
31


Actual output:
30


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = [0] * n

for i in range(n):
    c[i] = sum(a[:i+1]) + sum(b[i:])
print(max(c))

Problem: p03449
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
candies_i = list(map(int, input().split()))
candies_j = list(map(int, input().split()))

l = []
count = -1

for i in range(N):
    count+=1
    total_li = sum(candies_i[:count])
    total_lj = sum(candies_j[count:])
    total = total_li + total_lj
    l.append(total)

print(max(l))


Failing test case input:
7
-2 4 0 0 1 33 0
50 2 0 6 -1 -1 0

Expected output:
54


Actual output:
56


Fixed submission (verdict: Accepted):
N = int(input())
candies_i = list(map(int, input().split()))
candies_j = list(map(int, input().split()))

l = []

for i in range(N):
    total_li = sum(candies_i[:i+1])
    total_lj = sum(candies_j[i:])
    total = total_li + total_lj
    l.append(total)

print(max(l))