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: Runtime Error

Solution code:
import sys
n = int(input())
s = list(input())
a_li = []
b_li = []
c_li = []
for i,ss in enumerate(s):
    if ss == 'R':
        a_li.append(i)
    elif ss == 'G':
        b_li.append(i)
    else:
        c_li.append(i)
if len(a_li) == 0 or len(b_li)== 0 or len(c_li) == 0:
    print(0)
    sys.exit()
all_count = 0
for a in a_li:
    for b in b_li:
        tmp = len(c_li)
        lili = []
        if (2*b - a)  in c_li:
            lili.append(2*b - a)
        if (2*a - b)  in c_li:
            lili.append(2*a - b)
        if (a + b)% 2 == 0 and (a + b)//2   in c_li:
            lili.append((a + b)//2)
        tmp -= len(set(lili))
        all_count += tmp
print(all_count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(input())
r = []
g = []
b = []
for i,j in enumerate(s):
    if j == "R":
        r.append(i)
    elif j == "G":
        g.append(i)
    else:
        b.append(i)
ans = 0
for i in r:
    for j in g:
        for k in b:
            a=[i,j,k]
            a.sort()
            if a[2]-a[1] != a[1]-a[0]:
                ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
score=117
if score==117
 print('Yes')
 
score=123
if score==123
 print('No')
  
score=777
if score==777
 print('Yes')

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
A = [[],[],[]]
ans = 0
for i in range(N):
    if S[i] == 'R':
        A[0].append(i)
    elif S[i] == 'G':
        A[1].append(i)
    else:
        A[2].append(i)

for i in A[0]:
    for j in A[1]:
        for k in A[2]:
            if  (i < j and j < k) or (k < j and j < i):
                if abs(i-j) != abs(j-k):
                    ans += 1
            elif (i < k and k < j) or (j < k and k < i):
                if abs(i-k) != abs(k-j):
                    ans += 1
            elif (j < i and i < k) or (k < i and i < j):
                if abs(j-i) != abs(k-i):
                    ans += 1

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = str(input())
enc = 0

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
s=list(input())

def my_index_multi(l, x):
    return [i for i, _x in enumerate(l) if _x == x]

R_index = my_index_multi(s,'R')
G_index = my_index_multi(s,'G')
B_index = my_index_multi(s,'B')

for i in range(len(R_index)):
    R_index[i] += 1
for j in range(len(G_index)):
    G_index[j] += 1
for k in range(len(B_index)):
    B_index[k] += 1

count = 0
for i in range(len(R_index)):
    for j in range(len(G_index)):
        for k in range(len(B_index)):
            li = [R_index[i],G_index[j],B_index[k]]
            li.sort()
            if (li[1]*2 != li[0]+li[2]):
                count = count +1

#print(R_index)
#print(G_index)
#print(B_index)
print(count)

Submission status: Runtime Error

Solution code:

has_seven = False
N = str(input())
for i in range(len(N)):
  	if N[i] == '7':
    	has_seven = True
    	break

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

Submission status: Runtime Error

Solution code:
n = long(input())
#n = 1000000
#a = []
sum = 0

for x in range(n):
	if x % 5 != 0 and x % 3 != 0:
		sum += x

print(long(sum))

Submission status: Runtime Error

Solution code:

has_seven = False
N = str(raw_input())
for i in range(len(N)):
  	if N[i] == '7':
    	has_seven = True
    	break

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

Submission status: Runtime Error

Solution code:
N=int(input())
if N>=100 and N<=999:
  for i in N:
    if i==7:
      print("Yes")
    else:
       print("No")
    i = i+1

Submission status: Runtime Error

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

if __name__ == "__main__":
  main()

Submission status: Runtime Error

Solution code:
a = int(input())
l = list(str(a))
for s in l:
  if s == '7':
    print('Yes')
    break
  else if l[2] != '7':
    print('No')

Submission status: Runtime Error

Solution code:
a = int(input())
l = list(str(a))
for s in l:
  if s === '7':
    print('Yes')
    break
  else if l[2] != '7':
    print('No')

Submission status: Runtime Error

Solution code:

has_seven = False
N = str(raw_input())
for i in range(len(N)):
  	if N[i] == '7':
    	has_seven = True
    break

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

Submission status: Runtime Error

Solution code:
a = str(input())
l = list(a)
for s in l:
  if s === '7':
    print('Yes')
    break
  else if l[2] != '7':
    print('No')

Submission status: Runtime Error

Solution code:
N = str(input())
enc = 0

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

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

Submission status: Runtime Error

Solution code:
n = []
n.add = (int(x) for x in input().split())

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

Submission status: Runtime Error

Solution code:

has_seven = False
N = str(N)
for i in range(len(N)):
  	if N[i] == '7':
    	has_seven = True
    	break

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#import sys
MOD = 10 ** 9 + 7
INFI = 10**10
#input = sys.stdin.readline
import math

import itertools
import heapq
#import bisect

import copy
from functools import lru_cache

def sosuhante(n):
    for k in range(2, int(math.sqrt(n))+1):
        if n% k ==0:
            return False
    return True
def cmb(n, r):
    if n - r < r: r = n - r
    if r == 0: return 1
    if r == 1: return n

    numerator = [n - r + k + 1 for k in range(r)]
    denominator = [k + 1 for k in range(r)]

    for p in range(2,r+1):
        pivot = denominator[p - 1]
        if pivot > 1:
            offset = (n - r) % p
            for k in range(p-1,r,p):
                numerator[k - offset] /= pivot
                denominator[k] /= pivot

    result = 1
    for k in range(r):
        if numerator[k] > 1:
            result *= int(numerator[k])

    return result

def kingaku(a,b,n):
    keta=len(str(n))
    return a*n+b*keta

def my_index(l, x, default=False):
    if x in l:
        return l.index(x)
    else:
        return default

#    h,w,a,b = map(int, input().split())
#    c = [[0 for j in range(n)] for i in range(n)]

def ret(a):
    c=[None]*(len(a)-1)
    if len(a)==1:
        return a[0]
    elif len(a)==0:
        return 0
    for i in range(1,len(a)):
        c[i-1]=abs(a[i]-a[i-1])
    return ret(c)


def main():
    n=int(input())
    s=list(input())
    for i in range(n+3):
        s.append("A")
    rr=0
    rg=0
    rb=0
    for i in range(n):
        if s[i]=="R":
            s[i]=-1
            rr+=1
        elif s[i]=="G":
            s[i]=1
            rg+=1
        elif s[i]=="B":
            s[i]=0
            rb+=1
    total=0
    for i in range(n-1):
        for j in range(i+1,n):
            if s[i]!=s[j]:
                if s[j*2-i]==(-1)*(s[i]+s[j]):
                    total-=1
    total+=rr*rg*rb


    print(total)



if __name__ == "__main__":

    main()

Submission status: Runtime Error

Solution code:
N=int(input())
if N>=100 and N<=999:
  for i in N:
    if i==7:
      print("Yes")
    else:
      print("No")
    i += 1

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
r=S.count("R")
g=S.count("G")
b=S.count("B")
ans=r*g*b
for i in range(N):
  x=S[i]
  for j in range(i+1,N):
    if(S[j]!=x):
      y=S[j]
      if(2*j-i>=0 and 2*j-i<N):
        if(S[2*j-i]!=x and S[2*j-i]!=y):
          ans-=1
print(ans)

Submission status: Runtime Error

Solution code:
x = map(str, input())
a = str[0]
b = str[1]
c = str[2]

if a==7:
  print("Yes")
elif b ==7:
  print("Yes")
elif c == 7:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
print("Yes" if N.contains("7") else "No")

Submission status: Runtime Error

Solution code:
import math
#数値ひとつ
#I = int(input())
#数値欲しいとき
#H, W = map(int, input().split())
#文字欲しいとき
A = input()
B = input()
C = input()

bool = False

if A == '7':
    bool = True

elif B == '7':
    bool = True

elif C == '7':
    bool = True


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

Submission status: Runtime Error

Solution code:
N=input()
s=str(N)
s1=s[-1]
s2=s[-2]
s3=s[-3]
if s1=='7':
    print('Yes')
    elif s2=='7':
          print('Yes')
        elif s3=='7':
              print('Yes')
            else:
                print('No')

Submission status: Runtime Error

Solution code:
n = list(str(input()))

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(input())

cnt = 0
for i in range(n):
  for j in range(i+1, n):
    for k in range(j+1, n):
      if s[i] != s[j] and s[i] != s[k] and s[j] != s[k]:
        if j-i != k-j:
          cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
import math
from functools import reduce
from itertools import product
import numpy

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

n = int(input())

l = product(range(1, 1+n), repeat=3)

print(numpy.cumsum([gcd(*i) for i in l])[-1])

Submission status: Runtime Error

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

if __name__ == "__main__":
  main()

Submission status: Runtime Error

Solution code:
N=input()
s=str(N)
s1=s[-1]
s2=s[-2]
s3=s[-3]
if s1==7:
    print('Yes')
    elif s2==7:
          print('Yes')
        elif s3==7:
              print('Yes')
            else:
                print('No')

Submission status: Runtime Error

Solution code:
N=int(input())
for i in N: 
  if i=7 in N:
    if N>=100 and N<=999:
      print("Yes")
    else:
      print("N0")
  else:
    print("N0")

Submission status: Runtime Error

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 = math.floor(n/10)

Submission status: Runtime Error

Solution code:
has_seven = False
for i in range(len(str(N))):
  if N[i] == '7':
    has_seven = True
    break
    
if has_seven:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = str(input())

for char in chars:
	if int(char) == 7:
		n = 1

	if n != 0:
		break

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

Submission status: Runtime Error

Solution code:
has_seven = False
for i in range(str(N)):
  if N[i] == '7':
    has_seven = True
    break
if has_seven:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = []
for n in range (3):
    n = int(input())
if n == 7:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = str(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
str = input()
flag = 0
for i in range(0,len(str)):
    if str[i]=='7':
        flag++
        break
if flag>1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
n = innput()
 
if "7" in n:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N = input()

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

Submission status: Runtime Error

Solution code:
# 入れる数きめる
int = input ()
a = int()

# if文
	if ( a[-1] = 7 or a[-2] = 7 or a[-3] = 7 )
		print ('Yes')
	else
    	print ('No')

Submission status: Runtime Error

Solution code:
str = input()
flag = 0
for i in range(0,len(str)):
    if str[i]=='7':
        flag+=
        break
if flag>1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
n = input().split
 
if n[len(n)] == 7:
  print("Yes")
elif n[len(n)- 1] == 7:
  print("Yes")
elif n[len(n)- 2] == 7:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
import math
#数値ひとつ
I = int(input())
#数値欲しいとき
#H, W = map(int, input().split())
#文字欲しいとき
#str = input()


list = I.list()

bool = False
for a in list:
    if a == 7:
        bool = True
        break

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
for i in N:
  if 7 in N:
    if N>=100 and N<=999:
      print("Yes")
    else:
      print("No")
  else: 
    print("N0")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
    N = input()
    a = "No"
    for n in N:
      if n == "7":
        a = "Yes"
    print (a)

Submission status: Runtime Error

Solution code:
#D
N=int(input())
S=str(input())
count=0
for i in range(N):
    for j in range(i+1,N):
        for k in range(j+1,N):
            if j-i!=k-j and S[i]!=S[j] and S[i]!=S[k] and S[j]!=S[k]:
                count+=1
print(count)

Submission status: Runtime Error

Solution code:
import sys, os, time, math
import numpy as np
import pandas as pd

 
# print("Start")
N = list(map(str, input().split()))
N = N[0]
# N = np.array(list(map(int, input().split())))
# print(N, K)
# print(N)
 
if (N[0] == "7") or (N[1] == "7") or (N[2] == "7"):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

if __name__ == "__main__":
  main()

Submission status: Runtime Error

Solution code:
N = input
a = "No"
for n in N:
  if n == "7":
    a = "Yes"
print (a)

Submission status: Runtime Error

Solution code:
N = input()
for i in range(len(N)):
  if int(N[i]) == 7:
    flag = 1
if flag == 1:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import sys, os, time, math
import numpy as np
import pandas as pd

import sys, os, time, math
import numpy as np
import pandas as pd
 
 
# print("Start")
N = list(map(str, input().split()))
N = N[0]
# N = np.array(list(map(int, input().split())))
# print(N, K)
# print(N)
 
if (N[0] == "7") or (N[1] == "7") or (N[2] == "7"):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
l,m,n = map(int,input().split())
ans='No'
if l==7 or m==7 or n==7:
  ans='Yes'
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys, os, time, math
import numpy as np
import pandas as pd

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, K)
# print(N)
 
if (N[0][0] == "7") or (N[0][1] == "7") or (N[0][2] == "7"):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(input())
ans = 0
 
for i in range(N):
    first_s = S[i]
    for j in range(i+1, N):
        if S[j] != first_s:
            second_s = S[j]
            for k in range(j+1, N):
                if k == 2*j-i:
                    if (S[k] != first_s) and (S[k] != second_s):
                        continue
                if (S[k] != first_s) and (S[k] != second_s):
                    ans += 1
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main(): # A162
    N = int(input())
    NUM = list(str(N))
    NUM = list(map(int,NUM))
    #A = list(map(int, input().split()))  # [1,2,3,4,5]
    for i in NUM:
        if int(i) == 7:
            print("Yes")
            exit(1)
    print("No")
    
main()

Submission status: Runtime Error

Solution code:
n = int(innput())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
for 7 in N:
  if N>=100 and N<=999:
    print("Yes")
  else: 
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
lucky = input()
a = int (lucky[1])
b = int (lucky[2])
c = int (lucky[3])

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

Submission status: Runtime Error

Solution code:
n =list(map(int, input().strip()))
if 7 in n:
  print(‘Yes’)
else:
  print(‘No’)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
 
a = 0
for i in range(3):
  if N[i] == '7':
    a = 1
    
if a = 1:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

if N in 7:
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
a,b,c = input()

if(a=="7"||b=="7"||c=="7"):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N=input()
#値を入力
s=str(N)
s1=s[-1]
s2=s[-2]
s3=s[-3]
if s1==7:
  print('Yes')
  elif s2==7:
    print('Yes')
    elif s3==7:
      print('Yes')
      else:
        print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
a = n.find("7")
if a>-1:
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
N = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = input()

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

Submission status: Runtime Error

Solution code:
N = input()
for i in range(len(N)):
    if N[i] = '7':
        print('Yes')
        break
else:
    print('No')

Submission status: Runtime Error

Solution code:
a=list(str(input()))
l=[0,1,2]
for i in a:
  for j in l:
    if i == '7':
      print('Yes')
      break
    else if l == 2:
      print('No')

Submission status: Runtime Error

Solution code:
a

Submission status: Runtime Error

Solution code:
#include<iostream>

using namespace std;


int main()
{
  bool yes = false;
  int i;
  cin >> i;
  if(i < 0) i *= -1;
  while(i > 0)
  {
    if(i % 10 == 7)
    {
      yes = true;
      break;
    }
    i /= 10;
  }
  string result = yes ? string("yes"):string("no");
  cout << result;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=str(input())
l1 = [1,2,3]
for i in a:
  for j in l1:
  	if i == '7':
      print('Yes')
        break
    else if l1 == 3:
      print('No')

Submission status: Runtime Error

Solution code:
num = map(int,input().split())
for i in num:
  if num[i] == 7:
    break
    print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
if N.count(7)>0:
	print('Yes')
else:
	print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
ans = 'No'
for i in range(len(N)):
    if N[i] == 7:
        global ans
        ans = 'Yes'
        break
    else:
        continue
print(ans)

Submission status: Runtime Error

Solution code:
word = input().split()
#print(word)
if word[0] == "7" :
    print("Yes")
elif word[1] == "7" :
    print("Yes")
elif word[2] == "7" :
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
import re
seven = re.pattern("7")
print("Yes") if seven.match(input()) else "No"

Submission status: Runtime Error

Solution code:
y = input()
if 100 <= y and y <= 999:
  x = str(y)
  flag = 0
  for i in x:
    if i == "7":
      print("Yes")
      flag = 1
      break
  if flag == 0:
    print("No")

Submission status: Runtime Error

Solution code:
N = input()
for i in range(len(N)):
  if N[i] == 7;
	flag = 1
if flag = 1:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
a = n.find("7")
if a>-1:
  print("Yes")
else :
  print("No")

Submission status: Runtime Error

Solution code:
n = 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: Runtime Error

Solution code:
# 整数の入力
list = list(str(input())

flag = 0

for i in list:
    if i == "7":
        print("Yes")
        flag = 1
        break

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = map(int,input.split())
if 7 in n:print('Yes')
else:print('No')

Submission status: Runtime Error

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

N = int(input())

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()

fizz = []
buzz = []
fizzbuzz = []
other = []
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: Runtime Error

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

Submission status: Runtime Error

Solution code:
str = input()
flag = 0
for i in range(0,len(str)):
    if str[i]=='7':
        flag+=
        break
if flag>1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in range(0,2):
  if(a[i]=="7"):
    print("yes")
  elif(i==2 and a[2] != "7"):
    print("No")

Submission status: Runtime Error

Solution code:
N = input()

print("Yes" if N.contains("7") else "No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
    def qqq(n):
     
        a = int(n/100)
        if a == 7: 
            return "Yes" 
        
        n %= 100
        b = int(n/10)
        if b == 7:
            return "Yes"
        
        n %= 10
        if n == 7:
            return "Yes"
     
        return "No"
     
    if __name__ == '__main__':
        N = int(input())
        print (qqq(N))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;
int main() {
  string s;
  cin >> s;
  if (s.at(0) == '7' or s.at(1) == '7' or s.at(2) == '7') {
    puts("Yes");
  } else {
    puts("No");
  }
  return 0;
}

Submission status: Runtime Error

Solution code:
# N, M = map(int, input().split())
N = map(int, input().split())


# 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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
vv = list(input())

ccc = "7" in vv

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if"7"in'117'
print(Yes)

if"7"not in'123'
print(No)

if"7"in'777'
print(Yes)

Submission status: Runtime Error

Solution code:
N = input()
l = [int(i) for i in l]
if 7 is in l:
  return 'Yes'
return 'No'

Submission status: Runtime Error

Solution code:
l = list(input())

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

print("No")

Submission status: Runtime Error

Solution code:
n,m,o=input().split()

if n != "7" and m != "7" and o !="7":
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
N = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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