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 = map(int,input().split())
if N % 3 ==0:
	print("Yes")
else:
  	print("No")

N = map(int,input().split())
if N % 7 == 0:
	print("Yes")
else:
  	print("No")

N =
if N % 7 == 0:
	print("Yes")
else:
  	print("No")

if N % 3:
	print("Yes")
else:
  	print("No")

N = map(int,input().split())
if N % 3:
	print("Yes")
else:
  	print("No")

s = input()
if "7" in s:
    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):
n=int(input())

from math import gcd

k=0
ans=0
for a in range(0,n):
    for b in range(0,n):
      k=gcd(a,b)
      for c in range(0,n):
          ans+=gcd(c,k)
                      
print(ans)

import math from gcd
k=input()

ans=0
i=0

for a in range(k+1):
  for b in range(k+1):
    i==gcd(a,B)
    for c in range(k+1):
      ans+=gcd(i,c)
      
print(ans)

n=input()

a=n.count('7')

if a==0:
  print('No')
else:
  print('Yes')

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 = int(input())
count_list = []
for i in range(N + 1):
    if i % 15 == 0:
        count_list.append('FizzBuzz')
    elif i % 3 == 0:
        count_list.append('Fizz')
    elif i % 5 == 0:
        count_list.append('Buzz')
    else:
        count_list.append(i)
int_list = []
for i in count_list:
    try:
        int_list.append(int(i))
    except:
        pass
print(sum(int_list))


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):
N, M = map(int,input().split())
H=list(map(int,input().split()))

A=[0]*(N+1)
for i in range(M):
    x,y=map(int,input().split())
    A[x]=max(A[x],H[y-1])
    A[y]=max(A[y],H[x-1])

count=0
for i in range(1,N+1):
    if H[i-1]>A[i]:
        count+=1

print(count)

N=input()
aru=0
for s in N:
    if s == "7":
        aru=1
        break
if aru==0:
    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):

#s = [int(x) for x in input().split()]

s = input() 
l = [int(x) for x in s]

if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('YES')
else:
    print('NO')


 l = [int(x) for x in input().split()]

if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('YES')
else:
    print('NO')

s = input() 
l = [int(x) for x in s]

if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('YES')
else:
    print('NO')


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

if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('YES')
else:
    print('NO')

s = input() 
l = [int(x) for x in s]

if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('YES')
else:
    print('NO')

s = input() 
l = [int(x) for x in s]

if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('YES')
else:
    print('NO')

print('hello')

s = input() 
l = [int(x) for x in s]

if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('YES')
else:
    print('NO')

s = input() 
l = [int(x) for x in s]

if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('YES')
else:
    print('NO')

s = input() 
l = [int(x) for x in s]

if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('YES')
else:
    print('NO')

s = input() 
l = [int(x) for x in s]

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


Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

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 = list(map(int, input().split()))
if 7 in A:
    print('Yes')
else:
    print('No')

N = input()
list(N)
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 = list(map(int, input().split()))
flg = 0
for i in n:
  if i==7:
    flg = 1
if flg == 1:
  print('Yes')
else:
  print('No')

n = int(input())

for i in range(1,n)
  if i%15==0:
    print('FizzBuzz')
  elif i%5==0:
    print('Buzz')
  elif i%3==0:
    print('Fizz')
  else:
    print(i)


n = list(map(int, input().split()))
flg = 0
if n[0]==7:
  flg = 1
if n[1]==7:
  flg = 1
if n[2]==7:
  flg = 1

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


n = list(map(int, input()))
flg = 0
if n[0]==7:
  flg = 1
if n[1]==7:
  flg = 1
if n[2]==7:
  flg = 1

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

Verdicts: Wrong Answer

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())
listN = sorted(N)
if listN.count(7) >= 1:
    print("Yes")
else:
    print("No")


N = int(input())
str(N)
listN = sorted(N)
if listN.count("7") >= 1:
    print("Yes")
else:
    print("No")


N = int(input())
str(N)
listN = sorted(N)
if listN.count(7) >= 1:
    print("Yes")
else:
    print("No")


N = int(input())
str(n)
listN = sorted(N)
if listN.count("7") >= 1:
    print("Yes")
else:
    print("No")


N = int(input())
str(n)
listN = sorted(N)
if listN.count(7) >= 1:
    print("Yes")
else:
    print("No")


N = int(input())
listN = sorted(str(N))
if listN.count("7") >= 1:
    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):
import numpy as np
K = (int)(input())
sum = 0
for a in range(1,K+1):
    for b in range(1,K+1):
        for c in range(1,K+1):
            sum += np.gcd(np.gcd(a,b),c)
print(sum)

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

Verdicts: Time Limit Exceeded

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()
'7' in a

a = input().split()

b = len(a)
c = b + 1
i = 0
while i < c:
    c = a[i]
    if c == 7:
        print('Yes')
        break
    elif c==a:
          print('No')
        
    i += 1


a = map(str,input())

i = 0
while i <= len(a):
    c = a[i]
    if c == 7:
        print('yes')
        break
    
    i += 1
    if i==b:
        print('no')
        

a = input()
b = len(a)
i = 0
while i<=b:
    c = a[i]
    if c==7:
        print('yes')
        break
    
    i += 1
    if i==b:
        print('no')
        break

a = map(str,input().split)

b = a + 1
i = 0
while i < b:
    c = a[i]
    if c == 7:
        print('yes')
        break
    elif c==a:
          print('no')
        
    i += 1

a=input()
if '7' in a:
   print('yes')
else:
   print('no')
   

a = input()
if '7' in a:
   print('yes')
else:
   print('no')

a = input()
b = [int(c) for c in a]

d = len(a)
e = b + 1
i = 0
while i < e:
    e = a[i]
    if e == '7':
        print('Yes')
        break
    elif e == a:
          print('No')
        
    i += 1

a = input()
b = [int(c) for c in a]

d = len(a)
e = b + 1
i = 0
while i < e:
    e = a[i]
    if e == '7':
        print('Yes')
        break
    elif e == a:
          print('No')
        
    i += 1

    

a = input().split()
b = len(a)
c = b + 1
i = 0
while i < c:
    c = a[i]
    if c == 7:
        print('yes')
        break
    elif c==a:
          print('no')
        
    i += 1

a = map(str,input())
b = len(a)
i = 0
while i<=b:
    c = a[i]
    if c==7:
        print('yes')
        break
    
    i += 1
    if i==b:
        print('no')

a = map(str,input())
b = a + 1
i = 0
while i < b:
    c = a[i]
    if c == 7:
        print('yes')
        break
    elif c==a:
          print('no')
        
    i += 1


a = input().split()

b = len(a)
c = b + 1
i = 0
while i < c:
    c = a[i]
    if c == 7:
        print('yes')
        break
    elif c==a:
          print('no')
        
    i += 1


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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

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):
N = int(input())
S = str(input())

num = [[0]*N for i in range(3)]
if S[N-1] == 'R':
    num[0][N-1] += 1
elif S[N-1] == 'G':
    num[1][N-1] += 1
else:
    num[2][N-1] += 1
    
for i in range(2,N+1):
    num[0][-i] = num[0][-i+1]
    num[1][-i] = num[1][-i+1]
    num[2][-i] = num[2][-i+1]
    if S[-i] == 'R':
        num[0][-i] += 1
    elif S[-i] == 'G':
        num[1][-i] += 1
    else:
        num[2][-i] += 1

ans = 0
for i in range(N-2):
    for j in range(i+1,N-1):
        if S[i] != S[j]:
            if S[i] != 'R' and S[j] != 'R':
                ans += num[0][j+1]
                if 2*j - i < N:
                    if S[2*j - i] == 'R':
                        ans -= 1
                        
            elif S[i] != 'G' and S[j] != 'G':
                ans += num[1][j+1]
                if 2*j - i < N:
                    if S[2*j - i] == 'G':
                        ans -= 1
                        
            elif S[i] != 'B' and S[j] != 'B':
                ans += num[2][j+1]
                if 2*j - i < N:
                    if S[2*j - i] == 'B':
                        ans -= 1
                    
print(int(ans))

K = int(input())
flag = 0

for i in range(3):
    if K % 10 == 7:
        flag = 1
    K = int(K/10)
    
if flag:
    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 "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 = 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):
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 = list()
if "7" in N:
    print("Yes")
else:
    print("No")

N = list(map(int,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=int(input())
if n in 7:
    print('Yes')
else:
    print('No')



n=input()
for i in range(3):
    if n[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):
if "7" in str(input()):
  print("Yes")
else:
  print("No)

if "7" in str(input()):
    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):
p=list(input())
a=int(a[0])
b=int(a[1])
c=int(a[2])
if a==7 or b==7 or c==7:
	print(Yes)
else:
	print(No)

a=int(input())
b=int(7)
if a in b:
    print('yes')
else a in b:
    print('no')


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

a=int(input())
b=(7)
if a in b:
    print('yes')
else a in b:
    print('no')


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

Verdicts: 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):
a


li=list(str(input()))
if '7' in li:
    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()
cnt=0
for i in a::
  if i=="7":
    cnt+=1
    break
print(["No","Yes"][cnt])

print(["No","Yes"]["7" in input()])

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: 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 = "No"
for i in 3:
  if N[i] == 7:
    judge = "Yes"
    break
print(judge)

N = input()
judge = "No"
for i in N:
  if i == "7":
    judge = "Yes"
    break
print(judge)

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()
ans = "No"
for i in range(3):
  if n[i] == 7:
    ans = "Yes"
    break
print(ans)

n = input()
ans = "No"
for i in range(3):
  if n[i] == "7":
    ans = "Yes"
    break
print(ans)

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()) + 1


def find_gcd(x, y):
    while y:
        x, y = y, x % y

    return x


ans = 0
for a in range(1, N):
    for b in range(1, N):
        gcd = a if a == b else find_gcd(a, b)

        for c in range(1, N):
            ans += c if gcd == c or a == b == c else find_gcd(gcd, c)

print(ans)


N = str(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=int(input())
A=str(N)
if all(s!=7 for s in A):
  print("No")
else:
  print("Yes")

N=int(input())
A=str(N)
if all(s!=7 for s in A):
  print("No")
else:
  print("Yes")

N=int(input())
A=str(N)
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):
s = input()

ans = "No"

for i in range(3):
    if s[i] == 7:
        ans = "Yes"
        break

print(ans)

s = input()

ans = "No"

for i in range(3):
    if s[i] == "7":
        ans = "Yes"
        break

print(ans)

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

for i in range(len(n)):
  if n[i] = '7':
    count += 1
    
if count > 0:
  print('Yes')
  
else:
  print('No')

n = input()
count = 0

for i in range(3):
  if n[i] == '7':
    count += 1
    
if count > 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 = int(input())
ans = []

for i in range(N):
    N_3 = i % 3
    N_5 = i % 5
    if N_3 != 0 and N_5 != 0:
        ans.append(i)

print(sum(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):
K = int(input())

ans = 0

import math

for i in range(1, K+1):
    for j in range(1, K+1):
        s=math.gcd(i, j)
        for k in range(1, K+1):
            ans += math.gcd(k, s)

print(ans)

n = str(input())
for i in range(3):
    if n[i]== '7':
        print('Yes')
        exit(0)
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=list(input())

r=a.count('R')
g=a.count('G')
b=a.count('B')
N=len(a)
s=0
for i in range(N):
    for j in range(i+1, N):
        if 2*j-i < N:
            if a[i] !=a[j] and a[j]!=a[2*j-i] and a[2*j-i]!=a[i]:
                s+=1

print(r*g*b-s)


N=int(input())
a=list(input())

r=a.count('R')
g=a.count('G')
b=a.count('B')
N=len(a)
s=0
for i in range(N-1):
    for j in range(i+1, N):
        if 2*j-i < N:
            if a[i] !=a[j] and a[j]!=a[2*j-i] and a[2*j-i]!=a[i]:
                s+=1

n=r*g*b-s
print(n)

N=int(input())
a=list(input())
import sys

sys.setrecursionlimit(10**6)

r=a.count('R')
g=a.count('G')
b=a.count('B')
s=0
for i in range(N-1):
    for j in range(i+1, N):
        if 2*j-i < N:
            if a[i] !=a[j] and a[j]!=a[2*j-i] and a[2*j-i]!=a[i]:
                s+=1

n=r*g*b-s
print(n)


N = int(input())
S = list(input())
 
r, g, b = 0, 0, 0
for i in range(N):
    if S[i] == 'R':
        r += 1
    elif S[i] == 'G':
        g += 1
    else:
        b += 1
 
a = r*g*b
 
for i in range(N):
    for j in range(i+1, N):
        if 2*j-i < N:
            if (S[i] != S[j]) and (S[j] != S[2*j-i]) and (S[i] != S[2*j-i]):
                a -= 1
 
print(a)

import math
K=int(input())
add=0
for i in range(1,K+1):
    for j in range(1,K+1):
        B=math.gcd(i,j)
        for k in range(1,K+1):
            add += math.gcd(B,k)
           
print(add)
            
        

from sys import stdin

N = int(stdin.readline().rstrip())


a=N%10
b=((N-a)/10)%10
c=(N-10*b-a)/100
n=[a,b,c]
if 7 in n:
    print('Yes')

else:
    print('No')



Verdicts: Runtime Error

Runtime Error

Runtime Error

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):
import re
seven = re.pattern("7")
print("Yes") if seven.match(input()) else "No"

str = input()
print("Yes") if '7' in str 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):
x = input()

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

x = int(input())
N = 0
 
for i in range(1,x+1):
    if i%3==0 and i%5==0:
        i = 'FizzBuzz'
    elif i%3==0:
        i = 'Fizz'
    elif i%5==0:
        i = 'Buzz'
    else:
        N = i + N
        
print(N)

x = input()

if x[0]=='7' or x[1]=='7' or x[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):
while N!=0:
  if N%10==7:
    print("Yes")
    return
  N=N//10
print("No")
return

N=input()
while N!=0:
  if N%10==7:
    print("Yes")
    return
  N=N//10
print("No")
return

def main():
  N=int(input())
  while N!=0:
    if N%10==7:
      print("Yes")
      return
    N=N//10
  print("No")
  return
main()


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()
if '7' in S:
    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 or (N//10)%10==7 or N//10==7 :
  print("Yes")
else :
  print("No")

N=int(input())
if N//100==7 or (N//10)%10==7 or N%10==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 = input()
print (N[1])
s = [N[i] for i in range(len(N))]
sw = False
for i in range(len(s)):
    if s[i] == "7":
        sw = True

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


N = input()
s = [N[i] for i in range(len(N))]
sw = False
for i in range(len(s)):
    if s[i] == "7":
        sw = True

if sw == True:
    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()
flag = false
for i in range(N):
  if N[i] == "7":
    flag = true
if flag: print("Yes")
else: print("No")

N = input()
flag = False
for i in range(len(N)):
  if(N[i] == "7"):
    flag = True
if flag: 
    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):
string=input()
t=False
for i in range (3):
  if string[i]=="7":
    t=True
if t==True:
  print("YES")
else:
  print("NO")

string=input()
if "7" in string:
  print('YES')
else:
  print('NO')

string=input()
t=False
for i in range (3):
  if string[i]=="7":
    t=True
if t==True:
  print("YES")
else:
  print("NO")

string=inout()
t=False
for i in range (len(string)):
  if string[i]==7:
    t=True
if t==True:
  print("YES")
else:
  print("NO")

string=input()
if "7" in string:
  print("YES")
else:
  print("NO")

string=input()
t=False
for i in range (len(string)):
  if string[i]==7:
    t=True
if t==True:
  print("YES")
else:
  print("NO")

string=input()
t=False
for i in range (len(string)):
  if string[i]=="7":
    t=True
if t==True:
  print("YES")
else:
  print("NO")

string=input()
t=False
for i in range (3):
  if string[i]=="7":
    t=True
if t==True:
  print("YES")
else:
  print("NO")

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


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

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):
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):
print('yes' if '7' in input() else 'No')

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):
s=list(input())
if '7' in s:
    print('yes')
else:
    print('no')


s=list(input())
print('yes' if '7' in s else 'no')


N=list(input())
print('Yes' if '7' in N else '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):
S = input()
flag = False
length = len(S)
for i in range(length):
  if S[i] == '7':
    flag == True
    break
print("Yes" if flag == True else "No")

S = input()
flag = False
length = len(S)
for i in range(length):
  if S[i] == '7':
    flag = True
    break
print("Yes" if flag == True 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()
if n.count() == 0:
    print('No')
else:
    print('Yes')

n = input()
if n.count('7') == 0:
    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):
s = input()
a = [int(c) for c in s]

if bool(a[0]!=7 and a[1]!=7 and a[2]!=7):
        print("No")
else
        print("Yes")


a = int(input())


c=0

for i in range(a + 1):
 	if bool(i%3!=0 and i % 5 != 0):
  		c += i
  
print(c)

a = int(input())


c=0

for i in range(a + 1):
 	if bool(i%3!=0 and i % 5 != 0):
  		c += i
  
print(c)

s = input()
a = [int(c) for c in s]

if bool(a[0]!=7 and a[1]!=7 and a[2]!=7:
        print("No")
else
        print("Yes")

s = input()
a = [int(c) for c in s]

if bool(a[0]!=7 and a[1]!=7 and a[2]!=7):
        print("No")
else:
        print("Yes")



Verdicts: Runtime Error

Wrong Answer

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):
import math
N = int(input())
if N%10 == 7:
  print(Yes)
elif (N-N%10)%100 == 70:
  print(Yes)
elif N/100 == 7:
  print(Yes)
else:
  print(No)

S = input()
X = 0
for i in range(3):
    if A [i] == 7:
        X += 1
if X == 0:
    print('No')
else:
    print('Yes')


S = input()
X = 0

for i in range(3):
    if int(S[i]) == 7:
        X += 1
if X == 0:
    print('No')
else:
    print('Yes')


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[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: 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()
s = "115"
print(s.find("7"))
if(s.find("7")== -1):
    print("NO")
else:
    print("YES")

s = input()

print(s.find("7"))
if(s.find("7")== -1):
    print("NO")
else:
    print("YES")

s = input()


if(s.find("7")== -1):
    print("NO")
else:
    print("YES")

s = input()


if(s.find("7")== -1):
    print("No")
else:
    print("Yes")

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 not n[0] == 7 and not n[1] == 7 and not n[2] == 7:
    print("No")
else:
    print("Yes")


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

n = str(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):
numbers = str(input())
ans = 0
for(i = 0;i<3;i++){
	if(numbers[i] == "7")
  		ans =1
}
if(ans == 0){
	print("No")
}else{
	print("Yes")
}

numbers = str(input())
ans = 0
for i in range(3):
	if numbers[i] == "7":
  		ans =1
if ans == 0:
	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):
N = int(input())
S=input()
if 7 in S:
  print('Yes')
else:
  print( 'No')

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

S=input()
if '7' in S:
  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):
import math


def main():
    K = int(input())
    s = 0
    for i in range(1, K+1):
        for j in range(1, K + 1):
            tmp = math.gcd(i, j)
            for k in range(1, K + 1):
                s += math.gcd(tmp, k)

    print(s)


if __name__=="__main__":
    main()


def main():
    n = int(input())
    if "7" in str(n):
        print('Yes')
    else:
        print('No')


if __name__=="__main__":
    main()


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

x = 0

for i in range(N+1):
  if i % 3 != 0 and i % 5 != 0:
    x += i
print(x)

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()
l = [int(i) for i in l]
if 7 is in l:
  return 'Yes'
return 'No'

N = input()
l = [i for i in N]
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):
s = input()
if s[0] != 7 and s[1] != 7 and s[2] != 7:
  print('No')
else:
  print('Yes')

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

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.count(7) == 0:
    print("No")
else:
    print("Yes")

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

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

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

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

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

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

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 ()
N = str(n)
if 7 in N:
    print(yes)
else:
    print(no)
    

N = input()
if 7 in N:
    print(yes)
else:
    print(no)


n = input()
N = str(n)
if "7" in N:
    print(yes)
else:
    print(no)
    

N = input 
if 7 in N:
    print(yes)
else:
    print(no)


n = input()
N = str(n)
if "7" in N:
    print("yes")
else:
    print("no")
    

n = input()
N = str(n)
if 7 in N:
    print(yes)
else:
    print(no)
    

n = input ()
N = int(n)
if 7 in N:
    print(yes)
else:
    print(no)


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

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())
f = 0
a = N//100
b = (N-a*100)//10
c = N-a*100-b*10
if a == 7 or b == 7 or c == 7:
    f = 1
if f == 1:
    print(Yes)
else:
    print(No)

N = int(input())
f = 0
a = N//100
b = (N-a*100)//10
c = N-a*100-b*10
if a == 7 or b == 7 or c == 7:
    f = 1
if f == 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()
print'Yes' if (n.count('7')) >= 1 else: 'No'

print('Yes')if(input().count('7'))>=1else 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())
flag=0
for i in range(3):
    if n[i]==7:
        flag=1
        break
if flag==0:
    print("No")
else:
    print("Yes")


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


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():
    from builtins import int, map, list, print
    import sys
    sys.setrecursionlimit(10 ** 6)

    input = (lambda: (sys.stdin.readline()).rstrip())
    input_list = (lambda: input().split())
    input_number = (lambda: int(input()))
    input_number_list = (lambda: list(map(int, input_list())))

    N = input()
    print('YNeos'[not '7' in N::2])

    if __name__ == '__main__':
        main()


def main():
    from builtins import int, map, list, print
    import sys
    sys.setrecursionlimit(10 ** 6)

    input = (lambda: (sys.stdin.readline()).rstrip())
    input_list = (lambda: input().split())
    input_number = (lambda: int(input()))
    input_number_list = (lambda: list(map(int, input_list())))

    N = input()
    print('YNeos'[not '7' in N::2])

if __name__ == '__main__':
    main()


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()
ans="No"
for i in range(3):
    if n[i]==7:
        ans="Yes"
        break
print(ans)

n=input()
ans="No"
for i in range(3):
    if n[i]=="7":
        ans="Yes"
        break
print(ans)

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):
=input()
ans=0
for i in range(3):
    if int(n[i]) == 7:
        ans=1
print("YES" if ans == 1 else "NO")

n=input()
ans=0
for i in range(3):
    if int(n[i]) == 7:
        ans=1
print("YES" if ans == 1 else "NO")

n=input()
ans=0
for i in range(3):
    if int(n[i]) == 7:
        ans=1
print("Yes" if ans == 1 else "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):
from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random

print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

from random import random
print(['Yes', 'No'][random() < 0.5])

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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):
def gcd(a,b):
    while b!=0:
        x = a%b
        a = b
        b = x
    return a

N = int(input())
result = [gcd(gcd(i,j),k) for i in range(1,N+1) for j in range(1,N+1) for k in range(1,N+1)]
print(sum(result))

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

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

N= str(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 = str(input())
flag = 0

for i in range(3):
    if N[i] == 7:
        flag = 1

if flag == 1:
    print('Yes')
else:
    print("No")


N = str(input())
flag = 0

for i in range(3):
    if N[i] == "7":
        flag = 1

if flag == 1:
    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 in "7":
  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):
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')


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



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


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):
def gcd(a, b):
    if a % b == 0:
        return b
    return gcd(b, a % b)


k = int(input())

sum = 0

# gcd(a,a,a)
sum += int((1+k)*k/2)

# gcd(a,b,b)
if k >= 2:
    for i in range(1, k):
        for j in range(i+1, k+1):
            sum += gcd(i, j)*6

# gcd(a,b,c)
if k >= 3:
    for i in range(1, k-1):
        for j in range(i+1, k):
            for l in range(j+1, k+1):
                sum += gcd(gcd(i, j), l)*6

print(sum)

n=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()
f = 0
for i in range(len(n)):
	if n[i] == "7":
		f = 1
		print("YES")
		break
if f==0:
	print("NO")

n = input()
f = 0
for i in range(len(n)):
	if n[i] == "7":
		f = 1
		print("Yes")
		break
if f==0:
	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())
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=input().split()
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):
if N[0] == '7' or N[1] == '7' or N[2] == '7':
  print("Yes")
else:
  print("No")

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

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

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 = 7
if N > = 100 and N <=999:
  print (Yes)
else:
  print (No)
    

N = eval(input())
a = str(N)
k=[]
for i in a:
    if i == "7":
        k.append(i)
if len(k) > 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 = input()

for s in N:
  if s == '7':
    print('Yes')
print('No')

N = input()

for s in N:
  if s == '7':
    return 'No'
return 'Yes'

N = input()

include_7 = False
for s in N:
  if s == '7':
    include_7 = True
print('Yes') if include_7 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=int(input())
a,b,c=map(int,input().split())
n=abc
if a==7 or b==7 or c==7:
  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=input()
if N[0]==7:
  print("Yes")
elif N[1]==7:
  print("Yes")
elif N[2]==7:
  print("Yes")
else:
  print("No")

N=str(input())
if N[0]=="7":
  print("Yes")
elif N[1]=="7":
  print("Yes")
elif 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())
anser=0
for i in range(a+1):
  if i%3!=0 and i%5!=0:
    anser+=i
print(anser)


a=int(input())
b=a//100
c=(a//10)%10
d=(a%100)%10
if b==7 or c==7 or d==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 = list(input())
if n[0] ==7:
 	print("Yes")
 else:
 	if n[1] ==7:
 		print("Yes")
    else:
    	if n[2] ==7:
 			print("Yes")
        else:
        	print("No")

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

n = list(input())
if int(n[0]) == 7:
    print("Yes")
else:
    if int(n[1]) == 7:
        print("Yes")
    else:
        if int(n[2]) == 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):
n = int(input())
result = 0

for i in range(1, n + 1):
  if not i % 3 == 0 and not i % 5 == 0:
    result += i
    
print(result)


if "7" in input():
  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 = inport()
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())
match_flg = 0
for nn in N:
  if( nn== "7" ):
    print( "Yes" )
    match_flg = 1
    break
if( match_flg == 0 ):
	print("No")


N = input()

match_flg = 0
for nn in N:
  if( n== "7" ):
    print( Yes )
    match_flg = 1
    break
if( match_flg == 0 ):
	print("No")

  

N = input()

match_flg = 0
for nn in N:
  if( nn== "7" ):
    print( Yes )
    match_flg = 1
    break
if( match_flg == 0 ):
	print("No")


N = input()
match_flg = 0
for nn in N:
  if( nn== "7" ):
    print( "Yes" )
    match_flg = 1
    break
if( match_flg == 0 ):
	print("No")

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=input()
for i in N :
  if i=='7':
    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):
n=input()
if '7' in n:
  print("YES")
else:
  print("NO")

n=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=int(input())
S=input()
ans=0

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

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())
S = input()
ans = S.count("R")*S.count("G")*S.count("B")

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

if "7" in input():
	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())

a = N//100
b = (N - a*100)//10
c = N - a*100 -b*10

if a==7 or b==7 or c==7:
  print("YES")
else:
  print("NO")

N = int(input())
 
a = N//100
b = (N - a*100)//10
c = N - a*100 -b*10
 
if a==7 or b==7 or c==7:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted