Problem:


Score : 100 points

Problem Statement

Given is a three-digit integer N. Does N contain the digit 7?

If so, print Yes; otherwise, print No.

Constraints

100 \leq N \leq 999

Input

Input is given from Standard Input in the following format:

N

Output

If N contains the digit 7, print Yes; otherwise, print No.

Sample Input 1

117

Sample Output 1

Yes

117 contains 7 as its last digit.

Sample Input 2

123

Sample Output 2

No

123 does not contain the digit 7.

Sample Input 3

777

Sample Output 3

Yes



Sample input:
117


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
import math
x=input()
y=float(x)
if math.floor(y/100)==7:
    print("Yes")
elif math.floor(y/10)==7:
    print("Yes")
elif math.floor(y)==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    print(sum(i for i in range(N+1) if i % 3 == 0 or i % 5 == 0))
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
no = int(input())
c = 0
while no > 0:
  if no%10 == 7:
    c = 1
  no = no/10
if c == 1:
  print("Yes")
else :
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
 
 
# M=1
# A=[5,4,2,1]
 
cnt = 0
cnt1 = 0
 
# for i in range(N):
#     cnt = cnt + A[i]
#
# for i in range(N):
#     if A[i] / cnt > 1 / 4 / M:
#         cnt1 = cnt1 + 1
 
a1 = N % 10
a2 = ((N-a1*10) % 100)//10
a3 = ((N-a1*100-a2*10))//100
 
if a1 == 7 or a2 == 7 or a3 == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = str(input())
b = a[0]
c = a[1]
d = a[2]
if b == 7 or c == 7 or d == 7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys
n = int(input())
 
nn = []
if n<100:
    print('No')
    sys.exit()
nn.append(n//100)
nn.append(n//10)
nn.append(n%10)
if 7 in nn:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
if 7 in range(n):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

Solution code:
n = list(map(str, input()))
ans = "NO"
for i in range(3):
  if n[i] =="7":
    ans = "YES"
    break
print(ans)

Submission status: Wrong Answer

Solution code:
def fizz_buzz(n):
    total = 0
    for i in range(1,n+1):
        if i % 15 == 0:
            continue
        elif i % 3 == 0:
            continue
        elif i % 5 == 0:
            continue
        else:
            total += i
    return total


if __name__ == "__main__":
    n = int(input())
    print(fizz_buzz(n))

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = input()

if n.find('7') > 0 :
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N= input()
if ('34' in N):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import math
from functools import reduce

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

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())
x=N/100
if (x == 7):
    print('Yes')
    exit()
y=N%100/10
if (y == 7):
    print('Yes')
    exit()
z=N%100%10
if (z == 7):
    print('Yes')
    exit()
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
if s.find('7'):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
N=input()
n=list(N)
x= '7' in n
if x is True:
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
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):
            gcd1 = int(math.gcd(a,b))
            gcd2 = int(math.gcd(b,c))
            
            #print(gcd1,gcd2)
            gcd = gcd1 = int(math.gcd(gcd1,gcd2))

            sum = sum+gcd
print(sum)

Submission status: Wrong Answer

Solution code:
number=int(input())
identifier=0
if number%10==7:
  identifier =1
elif (number/10)%100==7:
  identifier=1
elif (number/100)%1000==7:
  identifier=1
else:
  identifier=0
if identifier ==1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = list(map(str, input()))
ans = "NO"
for i in range(3):
  if n[i] =="7":
    ans = "YES"
    break
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(3):
  if n%10 == 7:
    print('Yes')
    break
  elif n/10 < 1:
    print('No')
  else:
    n/10

Submission status: Wrong Answer

Solution code:
N = input()

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

elif N[1] ==7:
  print('Yes')

elif N[2] == 7:
  print('Yes')
  
else:
  print('No')

Submission status: Wrong Answer

Solution code:
x = input()
print("7" in x)
if ("7" in x) == True:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a=input()
if(list(a).count('7')>=0):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = sorted(input())

if N[0]=='7':
    print('yes')
elif N[1]=='7':
    print('Yes')
elif N[2]=='7':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = input().split()
n = [int(i) for i in n]
f = 0

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

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

Submission status: Wrong Answer

Solution code:
n = list(map(str, input()))
ans = "NO"
for i in range(3):
    if n[i] =="7":
        ans = "YES"
        break
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

yes = False
while n:
    digit = n % 10
    n = n / 10
    if digit == 7:
        yes = True

print('Yes') if yes else print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

k = int(input())
num = 0
for a in range(1,k+1):
    for b in range(1,k+1):
        for c in range(1,k+1):
            d = math.gcd(a,b)
            num += math.gcd(d,c)

print(num)

Submission status: Wrong Answer

Solution code:
N = int(input())
x=N/100
y=N%100/10
z=N%100%10
if (x == 7 or y == 7 or z == 7):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
if N/100 == 7:
    print("Yes")
else:
    N = N % 100 

if N / 10 == 7:
    print("Yes")
else:
    N = N % 10 

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

Submission status: Wrong Answer

Solution code:
n=int(input())
sum=0
for i in range(n+1):
  if i%3!=0 and i%5!=0:
    sum+=i
    
print(sum)

Submission status: Wrong Answer

Solution code:
number=int(input())
identifier=0
if number%10==7:
  identifier =1
elif number%100==7:
  identifier=1
elif number%1000==7:
  identifier=1
else:
  identifier=0
if identifier ==1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = str(input())
a = str(7)
if n in a:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = input()
for i in n:
    if i == 7:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
number=int(input())
identifier=0
if number%10==0:
  identifier =1
elif number%100==0:
  identifier=1
elif number%1000==0:
  identifier=1
else:
  identifier=0
if identifier ==1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = list(map(str, input()))
ans = "NO"
for i in range(len(n)):
    if n[i] =="7":
        ans = "YES"
        break
print(ans)

Submission status: Wrong Answer

Solution code:
a = input() 

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

Submission status: Wrong Answer

Solution code:
a=int(input())

s = str(a)
l = len(str(a))
c = 0
for i in range(l):
    if s[i] == "7":
        c = 1
        break
        
if c == 1:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
num = int(input("num: "))
list = list(str(num))
count = 0

for i in range(3):
  if list[i] == "7":
    print("Yes")
    break
  else:
    count += 1

if count == 3:
  print("No")
else:
  None

Submission status: Wrong Answer

Solution code:
N = input()
F = 0

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

if F != 1 :
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = str(input())
if N[0] != 7 or N[1] != 7 or N[2] != 7:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a = input()
'7' in a

Submission status: Wrong Answer

Solution code:
N=int(input())
O=0
for i in range(7):
  N=N/10
  O+=1
if O<=7:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
if n // 100 == 7:
    print('Yes')
elif n // 10 == 7:
    print('Yes')
elif n % 10 == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
n=list()
m=list()
for i in range(N):
    if(i%3==0 or i%5==0):
        n.append(i)
    else:
        m.append(i)
print(sum(m))

Submission status: Wrong Answer

Solution code:
n=int(input())
a=n//100
b=(n-a*100)//10
c=n%10
print(a,b,c)
if a==7 or b==7 or c==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s=input()
a=[int(c) for c in s]
flag=False
for i in a:
  if i==7:
    flag=True
if flag==True:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a=input()
if(list(a).count('7')>=0):

	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
N = str(input())
if N[0] == 7:
    print('Yes')
elif N[1] == 7:
    print("Yes")
elif N[2] == 7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = 0
for i in range(1, n):
    if 0 != i%3 and 0 != i%5:
        ans += i
print(ans)

Submission status: Wrong Answer

Solution code:
N = sorted(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
count = 0
tenwari = n%10
baiwari = n%100
ichi = tenwari
jyu = (baiwari-tenwari)//10
hyaku = (n-jyu*10-ichi)//100

if ichi != 7:
  count = count + 1
if jyu != 7:
  count = count + 1
if hyaku != 7:
  count = count + 1
  
if count != 0:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
n = int(input())
if n is 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
num=input()
num=list(num)
if int(num[0])==7 or int(num[1])==7 or int(num[2])==7:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
import math
from functools import reduce

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

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

K = int(input())
ans = 0
for i in range(K):
    for j in range(K):
        for k in range(K):
            ans += gcd(i+1,j+1,k+1)
            #1-Kまで
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = input()

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

Submission status: Wrong Answer

Solution code:
N = input()
if N[0] == '7' or N[1] == '7' or N[2] == '7':
    print("yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
if 7 in range(n):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import math
from functools import reduce

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

K = int(input())

ans = 0
for i in range(1, K+1):
    for j in range(1, K+1):
        for l in range(1, K+1):
            ans += gcd_get(i, j, l)
print(ans)

Submission status: Wrong Answer

Solution code:
n=input()
ans=0
for i in range(0,len(n)):
  if n[i]==7:
    ans=1
if ans==1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
print(N*(N-1)//2-(3*(N//3)*(N//3-1)+5*(N//5)*(N//5-1))//2+15*(N//15)*(N//15-1)//2)

Submission status: Wrong Answer

Solution code:
n = int(input())

print(("YES" if "7" in str(n) else "NO"))

Submission status: Wrong Answer

Solution code:
N=input()
if N[0]=='7' or N[1]=='7' or N[2]=='7':
    print("yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = input()
li = list(n)
t = False
for i in li:
    if i == '7':
        t= True

print(t)

Submission status: Wrong Answer

Solution code:
n = int(input())
first = n // 100
second = (n % 100) // 10
third = (n % 10)

if (first == 7 or second == 7 or third == 7):
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = input()
#print(n[1])
if n[0] =='7' or n[1] == '7' or n[2] == '7':
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n = int(input())
 
nn = []
nn.append(n//100)
nn.append(n//10)
nn.append(n%10)
if 7 in nn:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import re

str = input()
print(type(str))
print(str)


search_result = re.search('7', str)

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

Submission status: Wrong Answer

Solution code:
num = int(input())
each_num = str(num)
for i in each_num:
  print(i)
if (int(i) % 7) == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import numpy as np
#N=map(int, input().split())
N=int(input())
a=N//100
b=(N-a*100)//10
c=N-a*100-b*10
if N==0:
    print("No")
elif a%7!=0 and b%7!=0 and c%7!=0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a = list(str(input()))
 
yes = 0
 
for i in a:
  print(i)
  if i == '7':
    yes += 1
if yes > 0:
  print('Yes')

Submission status: Wrong Answer

Solution code:
x = list(input())
j = 0
for i in x:
  if int(i) != 7:
    j = 1

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

Submission status: Wrong Answer

Solution code:
N = input()
F = 0

for i in range(2):
    if N[i] == '7':
        F = F + 1

if F != 1 :
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
string = input()
list_of_integers =[int(d) for d in str(string)]
ans = "No"
for i in range(0 , len(list_of_integers)-1):
  if list_of_integers[i] == 7:
    ans = "Yes"
  break
print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=int(n//100)
b=int(n%10)
c=int(n-100*a-b)
ans=0
if a==7:
  ans+=1
if b==7:
  ans+=1
if c==7:
  ans+=1
if ans==0:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:

n = int(input())
flg = True;
if n % 10 != 7 and (n - (n % 10)) % 100 != 70 and (n - (n % 10) - (n % 100)) % 1000 != 700:
  print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a = input()
for i in range(len(a)):
    if int(a[i]) == 7:
        flag = 1
        break
    else:
        flag = 0
if flag == 1:
    print('yes\n')
else:
    print('no\n')

Submission status: Wrong Answer

Solution code:
i = input()

i = int(i)

flg = False

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())

result = 0
for num in range(1, a+1):
  if (num%3 != 0) & (num%5 != 0):
    result += num
    
print(result)

Submission status: Wrong Answer

Solution code:
import math
from functools import lru_cache


@lru_cache(maxsize=None)
def gcd(a, b):
    return math.gcd(a, b)


K = int(input())

total = 0

for a in range(1, K + 1):
    for b in range(1, K + 1):
        for c in range(1, K + 1):
            total += gcd(gcd(a, b), c)

print(total)

Submission status: Wrong Answer

Solution code:
n = input()
isSeven = False


for i in n:
  if n == "7":
    isSeven = True
if(isSeven):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

Solution code:
string=input()
if string[0] or string[1] or string[2] in "7":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
s = input().split()
ans = 'No'
for e in s:
  if e == '7':
    ans = 'Yes'
    break
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
def gcd(a,b,c):
    a = math.gcd(a, b)
    a = math.gcd(a, c)
    return a
ans=0
K=int(input())
for i in range(1,K+1): 
    for j in range(1,K+1):
        for k in range(1, K+1):
            ans+=gcd(i,j,k)
print(ans)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

A = 123 #int(input())
      
B = A // 10
C = B // 10
 
if A % 10 == 7:
  print ("Yes")
elif B % 10 == 7:
  print ("Yes")
elif C % 10 == 7:
  print ("Yes")
else:
  print ("No")

Submission status: Wrong Answer

Solution code:
a, b, c = input()
flag = 'No'

if int(a)%7 == 0:
    flag = 'Yes'
elif int(b)%7 == 0:
    flag = 'Yes'
elif int(c)%7 == 0:
    flag = 'Yes'

print(flag)

Submission status: Wrong Answer

Solution code:
N = 15
N = str(N)
F = int(N)

#one =int(N[-1])
#two =int(N[-2])
#thr =int(N[-3])
#N = int (N)


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=int(input())

x1=x//100
x2=(x%100)//10
x3=x%10

if(x1==7 or x2==7 or x3==7):
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

Solution code:
num=input()
num=list(num)
if int(num[0])==7 or int(num[1])==7 or int(num[2])==7:
      print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
n = str(input())

for i in range(len(n)):
  if n[i]=="7":
    print("Yes")
  if i == len(n)-1:
    print("No")

Submission status: Wrong Answer

Solution code:
n = input().split()
n = [int(i) for i in n]
f = 0

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

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

Submission status: Wrong Answer

Solution code:
n = list(input())
c=0

for i in range(3):
	if n[i]=='7':
		print('Yes')
		c+=1
		break

if c==0:
	print('N0')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

def main():
    import math
    K = int(readline().strip().decode())
    cnt = 0
    for a in range(1,K+1):
        for b in range(1,K+1):
            for c in range(1,K+1):
                tmp = math.gcd(b, c)
                g = math.gcd(a, tmp)
                cnt += g
    print(cnt)
    return

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
s=str(input())

if s[0] != 7 and s[1] != 7 and s[2] != 7:
    print("No")

else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
n = input()
for i in range(3):
  if n[i] == '7':
    print('Yes')
if n[0]!='7' and n[1]!='7' and n[2]!='7':
  print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

a = N%10
b = (N//10)%10
c = (N//100)%10

print(a, b ,c)

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

Submission status: Wrong Answer

Solution code:
fizz = []
buzz = []
fizzbuzz = []
other = []
n = int(input())
for i in range(n):
    if (i % 3 != 0) & (i % 5 != 0):
        other.append(i)

b = 0
for i in range(len(other)):
    b += other[i]

print(b)

Submission status: Wrong Answer

Solution code:
N=input()
counts=0
for i in range(0,len(N)):
    #print(N[i])
    if N[i]=='7':
        counts+=1
        #print(counts)   
        
    else:
        counts=+0
#print(counts)   
if counts>0:        
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
a=n//100
b=n%100-n%10
c=n%10
if a==7 or b==7 or c==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = list(input())

yes = 0

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

Submission status: Wrong Answer

Solution code:
n = str(input())
for i in range(len(n)):
  if n[i] == '7':
    print('YES')
    exit()
print('NO')

Submission status: Wrong Answer

Solution code:
N=int(input())
if N/100==7:
	print("Yes")
elif N%100/10==7:
	print("Yes")
elif N%10==7:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
number = map(int, input().split()) 

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

Submission status: Wrong Answer

Solution code:
n=int(input())
f=0
c=0
while n>0:
      c=n%10
      if c==7:
           f=1
           print("Yes")
      n=n/10
if f==0:
      print("No")

Submission status: Wrong Answer

Solution code:
n = input().split()

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

Submission status: Wrong Answer

Solution code:
N = input()

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("Yes" if any([i == "7" for i in input().strip()]) else False)

Submission status: Wrong Answer

Solution code:
n=input()
flg = 0
for s in n:
    if s == '7':
        print(s)
        flg = 1
 
if flg == 1:
      print('Yes')
else:
      print('No')

Submission status: Wrong Answer

Solution code:
i_str = str(input())
if i_str.find('7') > 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
import sys
N = input()
for i in range(3):
  if N[i]==7:
    print('Yes')
    sys.exit()

print('No')

Submission status: Wrong Answer

Solution code:
a=list(input().split())
count=0  
for i in range(len(a)):
	if a[i]=='7':
		count+=1
if count>0:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
print(N)

Submission status: Wrong Answer

Solution code:
n="743"
if n[0]!="7" and n[1]!="7" and n[2]!="7":
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
import sys
 
X = input()
test = list(X)
print(test)
for num in test:
  tmp = int(num)
  if tmp == 7:
    print("Yes")
    sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:
import math
from functools import reduce
def gcd(*numbers):
    return reduce(math.gcd, numbers)

K = int(input())
S = 0

for i in range(1,K+1):
    for j in range(1,K+1):
        for k in range(1,K+1):
            S += gcd(i,j,k)

print (S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input()

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

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(0,3):
    if( n % 10 == 7):
        print("YES")
        break
    n = int(n / 10)
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
count=0
N=int(input())
for i in range(N):
	if (i+1)%3==0 and (i+1)%5==0:
		continue
	elif (i+1)%3==0:
		continue
	elif (i+1)%5==0:
		continue
	else:
		count+=(i+1)
print(count)

Submission status: Wrong Answer

Solution code:
a = input()
b = a[0]
c = a[1]
d = a[2]
if b == 7 or c == 7 or d == 7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

hyaku = N // 100
resi = N - (100 * hyaku)
ju = resi // 10
iti = resi % 10

n = hyaku * ju * iti

if n % 7 == 0:
  print('Yes')

else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = input()
if '7' in n:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a=str(input())
for b in a:
  if b == '7':
    print('Yes')
  else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if "7" in S:
    print("yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
lst = []
while N > 0:
    lst.append(N%10)
    N //= 10 # 必須
lst.reverse()
print(7 in lst)

Submission status: Wrong Answer

Solution code:
string = input()
list_of_integers =[int(d) for d in str(string)]
ans = "No"
for i in range(0 , len(list_of_integers)-1):
  if list_of_integers[i] == 7:
    ans = "Yes"
    break
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
a=0
for i in range(2):
    if N % 10 == 7:
        a=1
    N = N % 10
if a >= 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
def test(n):
    if '7' in str(n):
        return 'Yes'
    else:
        return 'No'

Submission status: Wrong Answer

Solution code:
m = list(input())
print(m)

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

Submission status: Wrong Answer

Solution code:
def test(n):
    if '7' in str(n):
        return 'Yes'
    else:
        return 'No'
test(117)
test(123)
test(777)

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
n = int(input())
n1 = n%10
n2 = (n-n1)%100
n3 = n//100

if (n1 == 7 or n2 == 7 or n3 == 7):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = input()
ans = "No"
for i in range(0,2):
  if N[i] == "7":
    ans = "Yes"
print(ans)

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

Solution code:
a = input()
b = a[1]
c = a[1]
d = a[2]
if b == 7 or c == 7 or d == 7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

Solution code:
import fractions
K=int(input())
ans=0
for i in range(1,K+1):
    for j in range(1,K+1):
        for k in range(1,K+1):
            a=fractions.gcd(i,j)
            b=fractions.gcd(a,k)
            ans=ans+b
print(ans)

Submission status: Wrong Answer

Solution code:
x = input()
print("7" in x)

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

Solution code:
n = int(input())
a = n % 10
b = ((n - a) // 10) % 10
c = ((n - a - 10 * b) // 10) % 10
if (a == 7 or b == 7 or c == 7) :
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

N = list(input())

for i in range(3):
  if ( N[i] == 7):
    print('yes')
    sys.exit()
print('No')

Submission status: Wrong Answer

Solution code:
# for #!/usr/bin/env python
import os
import sys
from io import BytesIO, IOBase


def main():
	for t in range(int(input())):
		n = input()
		if n.count("7")>0:
			print("Yes")
		else:
			print("No")
		
		


# region fastio

BUFSIZE = 8192


class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = "x" in file.mode or "r" not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b"\n") + (not b)
			ptr = self.buffer.tell()
			self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode("ascii"))
		self.read = lambda: self.buffer.read().decode("ascii")
		self.readline = lambda: self.buffer.readline().decode("ascii")


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

# endregion

if __name__ == "__main__":
	main()

Submission status: Wrong Answer

Solution code:
n=int(input())
a=int(n//100)
b=int(n%10)
c=n-100*a-b
ans=0
if a==7:
  ans+=1
if b==7:
  ans+=1
if c==7:
  ans+=1
if ans==0:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = input()

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