TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=str(input())
if N[0]==7 or N[1]==7 or N[2]==7:
	print('Yes')
else:
	print('No')

N=str(input())
if N[0]==str(7) or N[1]==str(7) or N[2]==str(7):
	print('Yes')
else:
	print('No')

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N,X,Y=map(int,input().split())
l=[0]*N-1
for i in range(1,N+1):
    for j in range(1,N+1):
        ans=min(abs(i-j),abs(X-i)+1+abs(j-Y),abs(Y-i)+1+abs(j-X))
        l[ans]+=1
for t in l:
    print(t)









N=input()
M=N.replace("7","")
if len(N)!=len(M):
    print("Yes")
else:
    print("No")







Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=input()
if n[0]==7 or n[1]==7 or n[2]==7:
  print("Yes")
else:
  print("No")

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

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
a = input()

for i in a:
  if a == "7":
    print("Yes")
    break

a = input()
flag = False

for i in a:
    if i == "7":
        print("Yes")
        flag = True
        break

if not flag:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
import sys, os, time, math
import numpy as np
import pandas as pd


print("Start")
N = list(map(str, input().split()))
# N = np.array(list(map(int, input().split())))

print(N)

if (N[0][0] == "7") or (N[0][1] == "7") or (N[0][2] == "7"):
    print("Yes")
else:
    print("No")


N = input()
# N = N[0]
# N = np.array(list(map(int, input().split())))

# print(N)
 
if (N[0] == "7") or (N[1] == "7") or (N[2] == "7"):
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n = int(input())
s = list(input())

r = s.count("R")
g = s.count("G")
b = s.count("B")

a = r * g * b

for i in range(n):
    for j in range(i+1, n):
        k = 2 * j - i 
        if k > n-1:
            continue
        
        if s[i] != s[j] and s[j] != s[k] and s[k] != s[i]:
            a -= 1

print(a)

n = int(input())
m = list(n)

if m.count(7)>0:
    print("Yes")
else:
    print("No")

n = int(input())
m = str(n)
l = list(m)
if l.count("7")>0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = int(input())

ans = 0

for i in range(N):
    if (i % 15 == 0) or (i % 3 == 0) or (i % 5 == 0):
        continue
    else:
        ans += i


print(ans)

N = input()

if N[0] == '7' or N[1] == '7' or N[2] == '7':
    print('Yes')

else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
a = int(input())
if a-7 % 10 == 0:
  print("Yes")
elif a-70 % 100 < 10:
  print("Yes")
elif a >= 700 and a < 800:
  print("Yes")
else:
  print("No")
    

a = int(input())
if (a-7) % 10 == 0:
  print("Yes")
elif (a-70) % 100 < 10:
  print("Yes")
elif a >= 700 and a < 800:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n = input()
l = []
for _ in range(len(n)):
    x = int(n)%10
    n = int(n)//10
    if x ==7:
        print("YES")
        break
else:print("No")

n = input()
for _ in range(len(n)):
    x = int(n)%10
    n = int(n)//10
    if x ==7:
        print("Yes")
        break
else:print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=input()
if 7 in N:
  print("Yes")
else:
  print("No")

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

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = intput()

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

N = input()
 
print('Yes' if '7' in N else 'No')

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=input()
flag=0
for i in n:
    if i=='7':
        flag=1
if flag==1:
    print('Yes')
else
    print('No')

n=input()
n=list(n)
flag=0
for i in n:
    if i=='7':
        flag=1
if flag==1:
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n = input()
judge = False
for i in range(len(n)):
  if n[i] == 7:
    judge = True
    break
if judge == True:
  return "Yes"
else:
  return "No"



n = input()
judge = False
for i in range(len(n)):
    if n[i] == "7":
        judge = True
        break
if judge == True:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n = input()
i = 7
if i in n:
 print('Yes')
else:
  print('No')

import numpy as np
N = int(input()) 
ai = np.arange(1,(n+1))
result = 0
for i in ai:
    if i % 3 == 0 or i % 5 == 0:
      result += i
print(result)

N = input()
if N[-1] == str(7):
    print('Yes')
elif N[-2] == str(7):
    print('Yes')
elif N[-3] == str(7):
    print('Yes')    
else:
    print('No')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
from math import gcd

k = int(input())
ans = 0
for l in range(1,k+1):
  for m in range(1,k+1):
    for n in range(1,k+1):
      ans += gcd(gcd(l,m),n)

print(ans)

print("Yes" if input().count("7") != 0 else "No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = input()
thereIs7 = False
for i in N:
    if i == 7:
        thereIs7 = True
        break
if thereIs7:
    print('Yes')
else:
    print("No")

N = input()
thereIs7 = False
for i in N:
    if i == '7':
        thereIs7 = True
        break
if thereIs7:
    print('Yes')
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=str(input())
for i in range(len(N)):
  if N[i]=='7':
    print("YES")
    break
  if i==len(N)-1:
    print("NO")

N=str(input())
for i in range(len(N)):
  if N[i]=='7':
    print("Yes")
    break
  if i==len(N)-1:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=int(input())
S=input()
R=[]
G=[]
B=[]
for i in range(n):
    if S[i]=='R':
        R.append(i+1)
    elif S[i]=='G':
        G.append(i+1)
    else:
        B.append(i+1)
r=len(R)
g=len(G)
b=len(B)

c=0
for i in G:
    for j in B:
        min_n=min(i,j)
        max_n=max(i,j)
        d=abs(i-j)
        if max_n+d in R:
            c+=1
        if (i+j)%2==0 and (i+j)//2 in R:
            c+=1
        if min_n-d in R:
            c+=1

print(r*g*b-c)

S=input()
for s in S:
    if s=='7':
        print('Yes')
        exit()
print('No')

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
l=int(input())
if 7 in l:
    print("Yes")
else:
    print("No")

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

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=input()
if n.count("7")!=0:
  
  print("Yes)
else:
  print("No")

n=input()
if n.count("7")!=0:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
print("Yes" if 7 in list(int(input())) else "No")

print("Yes" if "7" in list(input()) else "No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
i = int(input())
a = []
for x in range(1, i+1):
    a.append(x)
x = 0
while x < len(a):
    if a[x] % 3 == 0:
        a[x] = 0
    if a[x] % 5 == 0:
        a[x] = 0
    x = x + 1
print(sum(a))



i = input()
i = map(int, i)
if 7 in i:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=input()
if n[0]==7 or n[1]==7 or n[2]==7:
    print("Yes")
else:
    print("No")

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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = input()
oh = N//100
ot = (N-oh*100)//10
oo = N-oh*100-ot*10
if oh==7 or ot==7 or oo==7:
    print('Yes')
else:
    print('No')


N = int(input())
oh = N//100
ot = (N-oh*100)//10
oo = N-oh*100-ot*10
if oh==7 or ot==7 or oo==7:
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
print("NYOE S"['7' in input()::2])

print("NYoe s"['7' in input()::2])

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n='str(input())'
for i in range(len(n)):
  if n[i]=='7':
    print('Yes')
    exit()
print('No')

n=list(map(int,input())
if n[i]==7:
  print('Yes')
else:
  print('No')

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
s = str(n)
flag = 0
    
array = list(map(int, s))
    
for i in array:
  if i == 7:
    flag = 1
if flag ==1:
  print("Yes")
else:
  print("No")

s = input()
flag = 0
    
array = list(map(int, s))
    
for i in array:
  if i == 7:
    flag = 1
if flag ==1:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = int(input())
res = 0
for i in range(N+1):
  if i % 3 != 0 and i % 5 != 0:
    res += i
print(res)

N = input()
if N.count('7') != 0:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
s = input()
if '7' in s:
  print("Yes)
else:
  print("No")

s = input()
if '7' in s:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
from collections import Counter
N=int(input())
S=[0]*5000
S=list(input())

S_count=Counter(S)
r=S_count["R"]
g=S_count["G"]
b=S_count["B"]

ans=0

for i in range(N-2):
    for j in range(1,N):
        if i+2*j>=N:
            break
        if S[i]!=S[i+j] and S[i+j]!=S[i+2*j] and S[i]!=S[i+2*j]:
            ans+=1

print(r*g*b-ans)

import sys
K=str(input())
K=list(K) 
K=[int(i) for i in K]

for i in K:
    if i==7:
        print("Yes")
        sys.exit()
print("No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
answer='No'
for i in str(N):
  if i==7:
    print(answer)
return answer

answer='No'
for i in str(N):
  if i=='7':
    answer='Yes'
return answer

n=input()

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n = input()
list(n)
han=False
for i in n:
    print(i)
    if i=="7":
        han=True
if han=True:
    print("Yes")
else:
    print("No")

n = input()
list(n)
han=False
for i in n:
    if i=="7":
        han=True
if han==True:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=input()
print(n[0])
print(n[1])
print(n[2])
if(n[0]=='7'or n[1]=='7'or n[2]=='7'):
    print('Yes')
else:
    print('No')

n=input()
if(n[0]=='7'or n[1]=='7'or[2]=='7'):
    print('Yes')
else:
    print('No')

n=input()
if(n[0]=='7'or n[1]=='7'or n[2]=='7'):
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):


N = input()

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



N = input()

for n in N:
  if n == "7":
    print("Yes")
    exit()
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
a = int(input( ))
b = a % 10
if (b == 7):
	print("yes")
else:
	print("NO")


N = int(input( ))
b = N % 10
if (b == 7):
	print("yes")
else:
	print("NO")
    

N = input ()
if '7' in str(N):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=str(N)
if n.find(7)!=-1
   print("Yes")
else 
   print("No")

import math
from functools import reduce
a=1;b=1;c=1;d=0
n=int(input());
for i1 in range(n):
	for i2 in range(n):
		for i3 in range(n):
			d+=reduce(math.gcd,(a,b,c))
			c+=1
		b+=1;c=1
	a+=1;b=1
print(d)

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


n=str(N)
if n.find("7")!=-1
   print("Yes")
else 
   print("No")

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

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


n=str(input())
if n.find("7")!= -1:
   print("Yes")
else:
   print("No")

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=input()
N=N.replace('7')
print('Yes' if len(N)<3 else 'No')

N=input()
N=N.replace('7','')
print('Yes' if len(N)<3 else 'No')

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
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")

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")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N =  str(input())
if "7" in N:
    "Yes"
else:
    "No"

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

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = input()
count = 0

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

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')

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')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
c =0

N = int(input())+1
S = tuple(input())


for i in range(1,N):
    for j in range(1,N):
        if i > j:
                continue
        elif S[i-1] == S[j-1]:
                continue
        for k in range(1,N):
            if j > k:
                continue
            elif S[i-1] == S[k-1] or S[j-1] == S[k-1]:
                continue
            elif j - i == k - j:
                continue
            else:
                c += 1
print(c)

c =0

N = int(input())+1
S = tuple(input())


for i in range(1,N):
    for j in range(1,N):
        if i > j:
                continue
        elif S[i-1] == S[j-1]:
                continue
        for k in range(1,N):
            if j > k:
                continue
            elif S[i-1] == S[k-1] or S[j-1] == S[k-1]:
                continue
            elif j - i == k - j:
                continue
            else:
                c += 1
print(c)
                    

n = input()
c = 0
for letter in n:
    if letter == '7':
        c += 1
pass 

print('Yes') if c > 0 else print('No')



Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=int(input())
if n[-1]==7 or n[-3]==7 or n[-2]==7:
    print("Yes")
else:
    print("No")

n=int(input())
num=map(int,str(n))
if num[-1]=="7" or num[-3]=="7" or num[-2]=="7":
    print("Yes")
else:
    print("No")

n=str(input())
if n[1]=="7" or n[0]=="7" or n[2]=="7"
    print("Yes")
else:
    print("No")

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

n=str(input())
if n[-1]=="7" or n[-3]=="7" or n[-2]=="7"
    print("Yes")
else:
    print("No")

n=str(input())
if n[-1]=="7" or n[-3]=="7" or n[-2]=="7":
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):

vv = list(input())

ccc = "7" in vv

if ccc = True:
    print("Yes")
else:
    print("No")


vv = list(input())

ccc = "7" in vv

if ccc = True:
    print("Yes")
else:
    print("No")


vv = int(input())

if vv <= 999 and vv >= 100:
    vvvv = list(str(vv))


    ccc = "7" in vvvv

    if ccc == True:
        print("Yes")
    else:
        print("No")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = int(input())
print(N)

if N/100==7:
  print('Yes')
elif (N%100)/10==7:
  print('Yes')
elif (N%10)==7:
  print('Yes')
else:
  print('No')

N = int(input())
print(N)

if N/100==7:
  print('Yes')
elif (N%100)/10==7:
  print('Yes')
elif (N%10)==7:
  print('Yes')
else:
  print('No')

N = int(input())

if int(N/100)==7:
  print('Yes')
elif int((N%100)/10)==7:
  print('Yes')
elif (N%10)==7:
  print('Yes')
else:
  print('No')


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=input()

flag=True
for i in range(3):
  if N[i]=="7":
    flag=True
    print('Yes')
    break
 
if flag:
  print('No')
  

N=input()

flag=True
for i in range(3):
  if N[i]=="7":
    flag=False
    print('Yes')
    break
 
if flag:
  print('No')
  

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
s=int(input().split())
for i in s:
    if i==7:
        print("Yes")
print("No")

s=str(input())
h=1
for i in s:
    if i=='7':
        h=0
if h==0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=str(input())
if n[0] ==7 or n[1]==7 or n[2]==7:
  print("Yes")
else:
  print("No")


n=str(input())
if n[0] =="7" or n[1]=="7" or n[2]=="7":
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
def main():
  n = input()
  print("Yes" if n.count(7) > 0 else "No")
  

if __name__ == "__main__":
  main()


def main():
  n = input()
  print("Yes" if n.count() > 0 else "No")
  

if __name__ == "__main__":
  main()


def main():
  n = input()
  if n.count(7) > 0:
    print("Yes")
  else:
    print("No")
  

if __name__ == "__main__":
  main()


def main():
  n = input()
  print("Yes" if n.count("7") > 0 else "No")
  

if __name__ == "__main__":
  main()


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = str(input())
if N.isin('7'):
    print("Yes")
else:
    print("No")

N = str(input())
if N in ['7']:
    print("Yes")
else:
    print("No")

N = str(input())
if '7' in N:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = str(input())
flag = 0
for i in range(len(N))
	if int(N[i]) == 7:
    	print ('Yes')
      	flag = 1
    	break
if flag == 0:
  print ('No')

N = str(input())
flag = 0
for i in range(len(N)):
    if int(N[i]) == 7:
        print ('Yes')
        flag = 1
        break
101if flag == 0:
    print ('No')

N = str(input())
flag = 0
for i in range(len(N)):
    if int(N[i]) == 7:
        print ('Yes')
        flag = 1
        break
if flag == 0:
    print ('No')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=input()
a=int(N[0])
b=int(N[1])
c=int(N[2])

if a=7 or b=7 or c=7:
  print('Yes')
else :
  print('No')

N=input()
a=int(N[0])
b=int(N[1])
c=int(N[2])
 
if a==7 or b==7 or c==7:
  print('Yes')
else :
  print('No')

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N  = int(input())
sum = 0
for i in range(1,N+1):
    if not(i % 3 == 0 or i % 5 == 0):
        sum += i
print(sum)

from sys import stdin

N = stdin.readline().rstrip()
print('Yes' if '7' in N else 'No')


Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n = int(input())
if 7 in n:
  print("Yes")
else:
  print("No")

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

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
s = input()
if '7' in s:
  print('YES')
else:
  print('NO')

s = input()
if '7' in s:
  print('Yes')
else:
  print('No')


Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):

import math


text = 0
count = 0


n = int(input())


while count < n:
    if (count % 3 != 0) and (count % 5 != 0):
        text = text + count
    count += 1


print(text)



n = str(input())


if "7" in n :
    text = "Yes"
else :
	text = "No"


print(text)

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = str(input())
if '7' in N:
  print('Yes'):
else:
  print('No')

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

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=int(input())
if n/100==7:
  print("Yes")
else:
  print("No")

n=int(input())
data=[10**i for i in range(1,3+1)]
for i in data:
  if n%i==7*(i/10):
    print("Yes")
    exit()
  n-=n%i
print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=list(input())
ans=False
if N[0]=="7":
    ans=True
if N[1]=="7":
    ans=True
if N[2]=="7":
    ans=True
if ans:
    print("YES")
else:
    print("NO")

N=list(input())
ans=False
if N[0]=="7":
    ans=True
if N[1]=="7":
    ans=True
if N[2]=="7":
    ans=True
if ans:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = int(input("N = "))
if 100 <= N <= 999:
        if "7" in str(N):
            print("Yes")
        else:
            print("No")


N = int(input("N = "))
if 100 <= N <= 999:
        if "7" in str(N):
            print("Yes")
        else:
            print("No")


N = int(input("N = "))
if 100 <= N <= 999:
        if "7" in str(N):
            print("Yes")
        else:
            print("No")


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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=input()

if s[0]=='7' or s[1]=='7' or s[2]=='7':
  print('Yes')
else:
  print('No')

s=input()
 
if s[0]==7 or s[1]==7 or s[2]==7:
  print('Yes')
  
else:
  print('No')

n=input()
 
if n[0]=='7' or n[1]=='7' or n[2]=='7':
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=int(input())
if n%10==7:
	print('Yes')
	exit()
else:
	n=n//10
	if n%10==7:
		print('Yes')
		exit()
	else:
		n=n//10:
		if n%10==7:
			print('Yes')
			exit()
print('No')

n=input()
if n[0]=='7' or n[1]=='7' or n[2]=='7':
	print('Yes')
else:
	print('No')

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
a = input()
if "7" in a:
  print("YES")
else:
  print("NO")

a = input()
if "7" in a:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=int(input())

ans=count(n)

if ans>=1:
	print("Yes")
    
else:
	print("No")

n=input()
 
ans=int(n.count("7"))
 
if ans>=1:
	print("Yes")
    
else:
	print("No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
def main():
  n = int(input())
  flag = 0
  while n > 0:
      if n % 10 == 7:
          flag += 1
          n /= 10
  if flag > 0:
      print('Yes')
  else:
      print('No')
main()

def main():
  n = int(input())
  flag = 0
  while n > 0:
      if n % 10 == 7:
          flag += 1
          n /= 10
  if flag > 0:
      print('Yes')
  else:
      print('No')
main()

def main():
  n = int(input())
  flag = 0
  while n < 0:
      if n % 10 == 7:
          flag += 1
          n /= 10
  if flag > 0:
      print('Yes')
  else:
      print('No')
main()

def main():
  n = int(input())
  flag = 0
  while n < 0:
      if n % 10 == 7:
          flag += 1
  if flag > 0:
      print('Yes')
  else:
      print('No')
main()

def main():
  n = input()
  
  if n[0] == '7' or n[1] == '7' or n[2] == '7':
      print('Yes')
  else:
      print('No')
main()

Verdicts: Time Limit Exceeded

Time Limit Exceeded

Wrong Answer

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=input().split()
for i in N:
    if i=="7":
        print("Yes")
        exit()
print("No")

N=input()
for i in range(3):
    if N[i]=="7":
        print("Yes")
        exit()
print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
s= input()
i=0
while i< len(s):
  j=s[i:i+1]
  if j==7:
    print('Yes')
    break
  i+=1


a= input()
i=0
while i< len(s):
  j=s[i:i+1]
  if j==7:
    print('Yes')
    break
  i+=1

s= input()
i=0
res=[]
while i< len(s):
  j=s[i:i+1]
  res.append(j)
  i+=1
print('Yes' if str(7) in res else 'No')

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = list(input())
if 7 in N:
    print('Yes')
else:
    print('No')

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

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
int main() {
	char s[3]
  	scanf("%s",s)
  	if(s[0]=="7" ||s[1]=="7"||s[2]=="7"){
    	printf("Yes")
    }
  	else{
    	printf("No")
    }
}

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

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n = input()
for i in range(len(n)):
    if n[i] == '7':
        print('Yes')
        exit

print('No')

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

print('No')

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=int(input())
a=str(N)
if 'a' in "7":
  print("Yes")
else:
  print("No")
   

N=int(input())
a=str(N)
for i in range(1,4):
  if a[i]=7:
    print("Yes")
    break
print("No")
   

N=int(input())
a=str(N)
if a in 7:
  print("Yes")
else:
  print("No")
   

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

N=int(input())
a=str(N)
if a[1]=7:
  print("Yes")
if a[2]=7:
  print("Yes")
if a[3]=7:
  print("Yes")
else:
  print("No")
   

N=int(input())
a=str(N)
if "a" in "7":
  print("Yes")
else:
  print("No")
   

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

N=int(input())
a=str(N)
if int(a[1])==7:
  print("Yes")
elif int(a[-2])==7:
  print("Yes")
elif int(a[3])==7:
  print("Yes)
else:
  print("No")
   

N=int(input())
a=str(N)
if 'a' in 7:
else:
  print("No")
   

N=int(input())
a=str(N)
if int(a[1])==7:
  print("Yes")
elif int(a[2])==7:
  print("Yes")
elif int(a[3])==7:
  print("Yes)
else:
  print("No")
   

N=int(input())
a=str(N)
for i in range(1,4):
  if a[i]=7:
    print(Yes)
    break
   

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N=input()
if N in '7':
  print('Yes')
else:
  print('No')

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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = list(int(input()))
answer = "No"
 
for i in range(N):
  if N[i] == 7:
    answer = "Yes"
 
print(answer)

N = list(int(input()))
answer = "No"

for i in N:
  if i == 7:
    answer = "Yes"

print(answer)

N = list((input()))
ans = "No"
 
for i in N:
  if i == "7":
    ans = "Yes"
         
print(ans)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
a = input()
if a[0]==7 or a[1] == 7 or a[2] == 7:
  print('Yes')
else:
  print('No')

a = input()
if a.count(7)>=1:
  print('Yes')
else:
  print('No')

a = input()
if a[0]=='7' or a[1] == '7' or a[2] == '7':
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
print(input())

print('Yes' if '7' in input() else 'No')

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = int(input())
S = list(input())
Sum = 0
for k in range(3,N+1):
    for j in range(2,k):
        for i in range(1,j):
            if abs(j - i) != abs(k - j):
                if S[i-1] != S[j-1] and S[j-1] != S[k-1] and S[k-1] != S[i-1]:
                  Sum += 1
print(Sum)

K = int(input())
S = 0

def gcd(a,b):
   while b != 0:
       a, b = b, a % b
       if b ==0:
           return a
A1 = [0,0]
A2 = [0,0,0]
for i in range(1, K+1):
    S = S + i

if K > 1:
    for j in range(1, K):
        A1[0] =  j
        for k in range(j+1,K+1):
            A1[1] = k
            S += 6 * gcd(A1[1],A1[0])

if K > 2:
    for i1 in range(1, K-1):
        A2[0] = i1
        for k1 in range(i1+1, K):
            A2[1] = k1
            for j1 in range(k1+1,K+1):
                A2[2] = j1
                G3 = gcd(A2[2],A2[1])
                if G3 >= A2[0]:
                    S += 6 * gcd(G3,A2[0])
                else:
                    S += 6 * gcd(A2[0],G3)
print(S)

N = int(input())
S = 0
for i in range(0,N):
  if (i+1) % 3 != 0 and (i+1) % 5 != 0:
    S = S + i+1
print(S)

N = list(str(input()))

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


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
l = list(input())

for i in range(3):
  if list[i] == "7":
    print("Yes")
    exit()

print("No")

l = list(input())
 
for i in range(3):
  if l[i] == "7":
    print("Yes")
    exit()
 
print("No")

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n = int(input())
s = list(input())

r = s.count('R')
g = s.count('G')
b = s.count('B')


ans = r * g * b


c = 0
for i in range(n):
    for j in range(i+1,n):
        k = 2 * j -i
        if k > n-1:
            break
        if s[i] != s[j] and s[j] != s[k] and s[k] != s[i]:
            c += 1

print(ans - c)

n = input()

ans = n.find('7')

if ans == -1:
    print('No')
else:
    print('Yes')



Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
# -*- coding=utf_8 -*-
N = int(input())
l = [int(x) for x in list(str(N))]

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

# -*- coding=utf_8 -*-

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

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

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=input()
if n[0]=='7' or n[1]=='7' or n[2]=='7':
  print(Yes)
else:
   print('No')

n=input()
if n[0]=='7' or n[1]=='7' or n[2]=='7':
  print('Yes')
else:
   print('No')


Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):

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


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

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
isSeven = 0
n = input()
print(len(n))
if (len(n)!=3):
  print("No")
  quit()
for i in n:
  i = int(i)
  if (i==7):
    isSeven = 1
if (isSeven!=0):
  print("Yes")
else:
  print("No")

isSeven = 0
n = input()
#print(len(n))
if (len(n)!=3):
  print("No")
  quit()
for i in n:
  i = int(i)
  if (i==7):
    isSeven = 1
if (isSeven!=0):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = int(input())
s=0
if N/100 == 7:
    print("Yes")
    s+=1
    

N = N % 100 
    

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

N = N % 10 

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

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")
if s == 0:
    print("No")

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")

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")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = int(input())
if '7' in N:
    print('Yes')
else:
    print('No')

n = input()
ans = 'No'
for i in n:
    if i == '7':
        ans = 'Yes'
print(ans)        
      
        

Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n = input()
if 7 in n :
  print('Yes')
else :
  print('No')


N = input()
a = N[0]
b = N[1]
c = N[2]
d = 'No'
for i in (a,b,c):
  if i % 7 == 0:
    d ='Yes'
    break
print(d)

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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
s = intput()

if ('7' in s):
  print('Yes')

s = input()

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


Verdicts: Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
str = input()
num = int(str)

hund = num // int(100) 
num_tens = num % 100 
tens = num_tens // 10 
ones = num_tens % 10
print (hund)

if (hund == 7 or  tens ==7 or ones == 7):
	print("Yes")
else:
	print("No")


num = int(input())

hund = num // int(100) 
num_tens = num % 100 
tens = num_tens // 10 
ones = num_tens % 10

if (hund == 7 or  tens ==7 or ones == 7):
	print("Yes")
else:
	print("No")

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
i = input()
if '7' in i:
  print("True")
else:
  print("False")

Source Code 

Copy
Copy
i = input()
if '7' in i:
  print("Yes")
else:
  print("No")

if "7" in input():
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
n=input()

'Yes' if '7' in n else 'No'

n=input()
 
print('Yes') if '7' in n else print('No')

Verdicts: Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
N = str(input())
enc = 0

for char in list(N):
  if char == "7":
    enc +=1
    
if enc >= 1:
  return "Yes"
else:
  return "No"

N = str(input())
enc = 0

for char in list(N):
  	if char == 7:
    	enc +=1

if enc >= 1:
  return Yes
else:
   return No

N = str(input())
enc = 0

for char in list(N):
  if char == "7":
    enc += 1
    
if enc >= 1:
  print("Yes") 
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
inputStr = input()

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

print("NO")

inputStr = input()

out = 'NO'
for c in inputStr:
    if c == '7':
        out = 'YES'

print(out)

inputStr = input()

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

print("NO")


inputStr = input()

out = "NO"
for c in inputStr:
    if c == '7':
        out = "YES"

print(out)

inputStr = int(input())

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

print("NO")


inputStr = input()

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

print(out)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
a = input() 

print('7' in a ,sep="\n")


a = input() 

print('7' in a)


import sys
a = input() 

if '7' in a:
    print("Yes")
else:
    print("No")



Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Given is a three-digit integer N. Does N contain the digit 7?  If so, print `Yes`; otherwise, print `No`.

Submission attempts (in order):
a=str(input())
if a[0] ==7 or a[1] ==7 or a[2]==7:
    print("Yes")
else:
    print("No")

a=str(input())
if a[0] or a[1] or a[2]==7:
    
    print("Yes")
elif :
    print("No")

a=str(input())
if a[0] =='7' or a[1] =='7' or a[2]=='7':
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Let us define the **FizzBuzz sequence** a_1,a_2,... as follows:    * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}.   * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}.   * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}.   * If none of the above holds, a_i=i.  Find the sum of all numbers among the first N terms of the FizzBuzz sequence.

Submission attempts (in order):
a=int(input())
ans=0
for i in range(a):
  if not i%3==0 and not i%5==0:
    ans+=i

a=int(input())
ans=0
for i in range(1,a+1):
  if not i%3==0 and not i%5==0:
    ans+=i
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Let us define the **FizzBuzz sequence** a_1,a_2,... as follows:    * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}.   * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}.   * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}.   * If none of the above holds, a_i=i.  Find the sum of all numbers among the first N terms of the FizzBuzz sequence.

Submission attempts (in order):
n = int(input())
l=[]
for i in range(n): 
    if ((i%3)!=0)  and ((i%5)!=0):
        l.append(i)
print(l)

n = int(input())
l=[]
for i in range(n): 
    if ((i%3)!=0)  and ((i%5)!=0):
        print(i)
        l.append(i)
print(l)

n = int(input())
l=[]
for i in range(n+1):
    if ((i%3)!=0)  and ((i%5)!=0):
        l.append(i)
print(sum(l))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Let us define the **FizzBuzz sequence** a_1,a_2,... as follows:    * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}.   * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}.   * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}.   * If none of the above holds, a_i=i.  Find the sum of all numbers among the first N terms of the FizzBuzz sequence.

Submission attempts (in order):
#B
n = int(input())

ans = 0
for i in range(n+1):
    if i % 3 == 0 or i % 5 == 0:
        continue
    else:
        ans += i
        print(ans)
print(ans)

#B
n = int(input())

ans = 0
for i in range(n+1):
    if i % 3 == 0 or i % 5 == 0:
        continue
    else:
        ans += i
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Let us define the **FizzBuzz sequence** a_1,a_2,... as follows:    * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}.   * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}.   * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}.   * If none of the above holds, a_i=i.  Find the sum of all numbers among the first N terms of the FizzBuzz sequence.

Submission attempts (in order):
n = int(input())
for i in range(1, n + 1):
    if i % 3 == 0 and i % 5 == 0:
        print('FizzzBuzz')
    elif i % 3 == 0:
        print('Fizz')
    elif i % 5 == 0:
        print('Buzz')
    else:
        print(str(i))


n = int(input())
answer = 0
for i in range(1, n + 1):
    if i % 3 == 0 or i % 5 == 0:
        i = 0
    else:
        answer = answer + i

print(answer)



Verdicts: Wrong Answer

Accepted
Problem: Let us define the **FizzBuzz sequence** a_1,a_2,... as follows:    * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}.   * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}.   * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}.   * If none of the above holds, a_i=i.  Find the sum of all numbers among the first N terms of the FizzBuzz sequence.

Submission attempts (in order):
a = int(input())
b = []
for i in range(a + 1):
  if i % 3 == 0:
    pass
  elif i 5 5 == 0:
    pass
  else:
    b.append(i)
c = sum(b)
print(c)

a = int(input())
b = []
for i in range(a + 1):
  if i % 3 == 0:
    pass
  elif i % 5 == 0:
    pass
  else:
    b.append(i)
c = sum(b)
print(c)

Verdicts: Runtime Error

Accepted