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=int(input())

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

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


N=input()

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

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

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

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

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


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: 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=input()
if s[0]==7: 
	print("Yes")
if s[1]==7:
    print("Yes")
if s[2]==7:
    print("Yes")
else:
    print("No")

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

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

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

Verdicts: 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):
a = int(input())
b = a//100
c = a//10 - b*10
d = a%10
if b != 7 and c != 7 and d != 7:
  print(No)
else:
  print(Yes)

a = int(input())
b = a//100
c = a//10 - b*10
d = a%10
if b != 7 and c != 7 and d != 7:
  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 = list(input())
b = False
for i in range(3):
    print(N[i])
    if N[i] == str(7):
        b = True
if b == False:
    print('No')
else:
    print('Yes') 


N = list(input())
b = False
for i in range(3):
    if N[i] == str(7):
        b = True
if b == False:
    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):
s = input()
if s.count('7') > 0:
  print('YES')
else:
  print('NO')

s = input()
if s.count('7') > 0:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

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

Submission attempts (in order):
N=input()
a=[int(c) for c in N]
if a[0]==7 or a[1]==7 or a[2]==7:
    print("YES")
else:
    print("NO")

N=int(input())
N1=N//100
N2=(N//10)%10
N3=N%10
if N1==7 or N2==7 or N3==7:
    print("YES")
else:
    print("NO")

N=input()
a=[int(c) for c in N]
if a[0]==7 or a[0]==7 or a[0]==7:
    print("YES")
else:
    print("NO")

N=int(input())
N1=N//100
N2=(N//10)%10
N3=N%10
if N1==7 or N2==7 or N3==7:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

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

if len(n) = 7:
  print("Yes")
elif len(n - 1) = 7:
  print("Yes")
elif len(n - 2) = 7:
  print("Yes")
else:
  print("No")

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

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

Verdicts: Runtime Error

Runtime Error

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

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

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

N=input()
if N[0] == '7':
     print("Yes")
elif N[1] == '7':
    print("Yes")
elif 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())

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())
h = N // 100
t = (N - h) // 10
o = N - h - t
if h = 7 or t = 7 or o = 7:
    print('Yes')
else:
    print('No') 

N = int(input())
h = N // 100
t = (N - h) // 10
o = N - h - t
if h == 7 or t == 7 or o == 7:
    print('Yes')
else:
    print('No') 

N = int(input())
h = N // 100
t = (N - h * 100) // 10
o = N - h * 100 - t * 10
if h == 7 or t == 7 or o == 7:
    print('Yes')
else:
    print('No') 

Verdicts: Runtime Error

Wrong Answer

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

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

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

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

Verdicts: 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 = int(input())
aa = list(str(a))
n = 0
for i in range(len(aa)):
	b = int(aa[i])
    if b == 7:
        n +=1
    else:
        n = n
if n > 0:
    print("Yes")
else:
    print("No")

a = int(input())
aa = list(str(a))
n = 0
for i in range(len(aa)):
    b = int(aa[i])
    if b == 7:
        n +=1
    else:
        n = n
if n > 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):
l,m,n = map(int,input().split())
ans='No'
if l==7 or m==7 or n==7:
  ans='Yes'
print(ans)

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

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

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

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):
import math

K = int(input())
ans = 0

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

print(ans)


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

N=str(N)

if N[0]==7:
  print("Yes")
  
elif N[1]==7:
  print("Yes")

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

N=int(input())

N=str(N)

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


num = input("Enter a number: ")
if len(num) == 3:
    if "7" in num:
        print("Yes")
    else:
        print("No")
else:
    print("The input is not of three digits.")



num = input("")
if len(num) == 3:
    if "7" in num:
        print("Yes")
    else:
        print("No")
else:
    print("The input is not of three digits.")

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

N = input()
flg = False

for i in N:
    if i == '7':
        flg = True
if flg:
    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("7" in input())

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

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

s = input()
print("Yes" if '7' in s 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):
# -*- coding: utf-8 -*-
a = int(input())
if a % 10 == 7 or a // 10 % 10 == 7 or a // 100 % 10 == 7:
	print("YES")
else:
	print("NO")

# -*- coding: utf-8 -*-
a = int(input())
if a % 10 == 7 or a // 10 % 10 == 7 or a // 100 % 10 == 7:
	print("YES")
else:
	print("NO")


# -*- coding: utf-8 -*-
a = int(input())
if a % 10 == 7 or a // 10 % 10 == 7 or a // 100 % 10 == 7:
	print("Yes")
else:
	print("No")

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
li = list(map(int,input().split()))	
if li.count(7) > 0:
  print('Yes')
else:
  print('No')

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
S = input()
if "7" in S:
    print("yes")
else:
    print("No")


S = (list(input()))
if S[0] == "7" or S[1] == "7" or S[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 = input()

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

n = str(input())

index = n.find('7')
if (index != -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 = int(input())
A = list(range(N + 1))
k = 0
for i in A :
  if int(A[i]) / 3 !=0 or int(A[i]) / 5 != 0 :
    k += A[i]
    
print(k)

N = input()
if '7' in str(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):
import sys
a = sys.argv[1]
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 = list(map(str, input()))
ans = "NO"
for i in range(len(n)):
    if n[i] =="7":
        ans = "YES"
        break
print(ans)

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

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

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


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

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

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

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


Verdicts: 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 = str(input())
i_count = 0
for i in A:
  if i == int(7):
    i_count = i_count+1

if i_count == 0:
  print("No")
else:
  print("Yes")

A = str(input())
i_count = 0
for i in A:
  if i == str(7):
    i_count = i_count+1

if i_count == 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):
n = map(int, input())
x = list(n)
print("YES" if 7 in x else "NO")


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

Verdicts: Runtime Error

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

Submission attempts (in order):
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):
import math
N = int(input())
A = math.floor((N / 100))
B = math.floor(((N - (100*A)) / 10))
C = (N-100*A-10*B)



if A == 7:
    print("yes")
elif B == 7:
    print("yes")
elif C == 7:
    print("yes")
else:
    print("No")


import math
N = int(input())
A = math.floor((N / 100))
B = math.floor(((N - (100*A)) / 10))
C = (N-100*A-10*B)



if A == 7:
    print("Yes")
elif B == 7:
    print("Yes")
elif C == 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,b,c= input()
if a ==7 or b==7 or c ==7:
  print('Yes')
else:
  print('No')

a,b,c= input()
a=int(a)
b=int(b)
c=int(c)
if a ==7 or b==7 or c==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):
count=0
n=int(input())
l=list(map(str,input()))
i=0
while i<=n-3:
    j=i+1
    while i+1<=j and j<=n-2:
        if l[i]==l[j]:
            j+=1
        else:
            k=j+1
            while j+1<=k and k<=n-1 and k-j!=j-i:
                if l[i]!=l[j] and l[j]!=l[k]:
                    count+=1
                    k+=1
                else:
                    k+=1
            j+=1
    i+=1
print(count)

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

Verdicts: Runtime Error

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

Submission attempts (in order):
N = list(input())
print(N)
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()
cnt=0
for i in n:
  if i = '7':
    cnt=1
    break
if cnt==0:
  print('No')
else:
  print('Yes')

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

n=input()
cnt=0
for i in n:
  if i == '7':
    cnt=1
    break
if cnt==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 = input()
print('Yes' if 7 in N else 'No')


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

Verdicts: Runtime Error

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

Submission attempts (in order):
s = list(map(int,input()))
for i in s:
  if i == "7":
    print("Yes")
    return
print("No")  
    

s = list(input())
for i in s:
  if 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):
import math
K=int(input())
sum=0
for i in range(1,K+1):
    for j in range(1,K+1):
        tmp=math.gcd(i,j)
        for l in range(1,K+1):
            sum+=math.gcd(tmp,l)
print(sum)


def sort_2(a,b):
    if b<a:
        c=a
        a=b
        b=c
    return [a,b]


def GCDbase(a,b):
    D=b//a
    if b==D*a:
        return a
    else:
        return GCD(b-a*D,a)
    
def GCD(a,b):
    ab=sort_2(a,b)
    return GCDbase(ab[0],ab[1])
    
    
def sort_3(a,b,c):
    if b<a:
        d=a
        a=b
        b=d
    if c<b:
        d=c
        c=b
        b=d
    if b<a:
        d=a
        a=b
        b=d
    return [a,b,c]

def gcd(a,b,c):
    abc=sort_3(a,b,c)
    a=abc[0]
    b=abc[1]
    c=abc[2]
    return GCD(GCD(a,b),c) 

K=int(input())
sum=0
for i in range(1,K+1):
    for j in range(1,K+1):
        for l in range(1,K+1):
            sum+=gcd(i,j,l)
print(sum)

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

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

def sort_2(a,b):
    if b<a:
        c=a
        a=b
        b=c
    return [a,b]


def GCDbase(a,b):
    D=b//a
    if b==D*a:
        return a
    else:
        return GCD(b-a*D,a)
    
def GCD(a,b):
    ab=sort_2(a,b)
    return GCDbase(ab[0],ab[1])
    
    

K=int(input())
sum=0
for i in range(1,K+1):
    for j in range(1,K+1):
	tmp=GCD(i,j)
        for l in range(1,K+1):
            sum+=GCD(tmp,l)
print(sum)

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

Verdicts: Wrong Answer

Wrong Answer

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=str(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())
print(n[0])
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

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=0
for i in range(0,len(n)):
  if n[i]==7:
    ans=1
if ans==1:
  print("Yes")
else:
  print("No")

n=str(input())
ans=0
for i in range(0,len(n)):
  if n[i]=='7':
    ans=1
if ans==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 = int(input)
keta = n//10 + 1
count = 0
for i in range(0, keta):
  if n[i] == 7:
    count = count
  else:
    count = count + 1
    
if count == keta:
  print('No')
else:
  print('Yes')


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


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


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


Verdicts: 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):
N=str(inut())
if int(N[0])==7 or int(N[1])==7 or int(N[2])==7:
    print("Yes")
else:
    print("No")

N=str(input())
if int(N[0])==7 or int(N[1])==7 or int(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 = list(input())
print("Yes") if all([i == "7" for i in n]) else print("No")


n = list(input())
print("Yes") if any([i == "7" for i 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):
x = input()
if '7' in x :
	print(Yes)
else :
	print(No)

x = input()
if '7' in x :
    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):
import sys
N = int(input())
for d in str(N):
    if d == "7":
        print("yes")
        sys.exit()
print("no")

N = int(input())
re = 0
for i in range(N):
    if i % 3 == 0 or i % 5 == 0:
        re = re + 0
    else:
        re = re + i
print(re)

import sys
N = int(input())
for d in str(N):
    if d == "7":
        print("yes")
        sys.exit()
print("no")

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

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

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

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

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

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

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

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

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


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
n = input()
ans = 0
for i in range(len(n)):
  if n[i] == "7":
	ans += 1
print("Yes" if ans > 0 else "No")

n = list(input())
ans = 0
for i in range(len(n)):
  if n[i] == "7":
    ans += 1
print("Yes" if ans > 0 else "No")

Verdicts: Runtime Error

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

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

# print(N)

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

N = str(input())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
#200412A
N = int(input())
flag = 0
if N%100 ==7:
    flag = 1
n=N//10
if n%10 ==7:
    flag =1
if N//100 ==7:
    flag = 1
if flag ==1:
    print("Yes")
else:
    print("No")

#200412A
N = int(input())
flag = 0
if N%10 ==7:
    flag = 1
n=N//10
if n%10 ==7:
    flag =1
if N//100 ==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 = list(input())
print(n)
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=str(input())
if "7" in N:
  print("Yes")
else:
  print("No)


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

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

if '7' in list(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 = input()
n = [int(c) for c in s]
for ni in n:
  if ni == 7:
    print("Yes")
    exit()
print("No")
    

N = input()
n = [int(c) for c in N]
for ni in n:
  if ni == 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):
def check_has_7(i):
    for n in range(len(str(i))):
        print(str(i)[n])
        if(str(i)[n] == '7'):
            return "Yes"
    return "No"

a = int(input())
print(format(check_has_7(a)))



def check_has_7(i):
    for n in range(len(str(i))):
        if(str(i)[n] == '7'):
            return "Yes"
    return "No"

a = int(input())
print(format(check_has_7(a)))



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):
is_lucky = any(i == "7" for i in input().split())
print("Yes" if is_luckey else "No")


numbers = [i for i in input()]
print("Yes" if "7" in numbers else "No")


Verdicts: Runtime Error

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

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

s = map(str, input())
print("Yes" if "7" in s 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):
nums = list(str(input()))
if "7" in nums:
    print("YES")
else:
    print("NO")

nums = list(str(input()))
if "7" in nums:
    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):
# -*- coding: utf-8 -*-
import numpy as np

n = str(input())

for i in range(3):
    if n[i] == str(7):
        print('YES')
        break
    else:
        if i == 2:
            print('NO')
        else:
            continue
            


# -*- coding: utf-8 -*-
#import numpy as np

n = str(input())

for i in range(3):
    if n[i] == str(7):
        print('Yes')
        break
    else:
        if i == 2:
            print('No')
        else:
            continue



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 = "NO"
for i in n :
    print(i)
    if int(i)==7:
        flag="YES"
        break
    else:
        flag="NO"
print (flag)

n = input()

flag = "No"
for i in n :
    print(i)
    if int(i)==7:
        flag="Yes"
        break
    else:
        flag="No"
print (flag)

n = input()

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

n = input()
 
flag = "No"
for i in n :
    #print(int(i))
    if int(i)==7:
        flag="Yes"
        break
    else:
        flag="No"
print (flag)

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):
K=str(input())
if int(K[0])%7==0 or int(K[1])%7==0 or int(K[1])%7==0:
    print('Yes')
else:
    print('No')

K=str(input())
if (int(K[0])%7==0 and int(K[0])!=0 )or (int(K[1])%7==0 and int(K[1])!=0 ) or (int(K[2])%7==0 and int(K[2])!=0 ):
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

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

Submission attempts (in order):

n = int(input())
c = list(input())

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

ans = r*g*b
count  = 0
sub1 = 0

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


print(ans-sub1)


N = int(input());

if N%10 == 7:
  print("Yes")
elif (N - N%10)%100 == 70:
  print("Yes")
elif (N - N%100) == 700:
  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):
import math

k = int(input())
sum = 0

for i in range(1, k + 1):
    for j in range(1, k + 1):
        sum1 = math.gcd(i , j)
        for l in range(1, k + 1):
            sum += math.gcd(sum1, l)
print(sum)


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


Verdicts: Wrong Answer

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

Submission attempts (in order):
import math

N = int(input())


while N!=0:
    ketasu = int(math.log10(N)//1 + 1)
    top_keta = N // 10**(ketasu-1)
    print(top_keta)
    if top_keta == 7:
        print("Yes")
        break
    N = N - top_keta*10**(ketasu-1)
else:
    print("No")

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
n = input()
ans = 'No'
for s in n:
    if s == '7'
    ans = 'Yes'
    break
print(ans)

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

Verdicts: Runtime Error

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

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

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

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

n = str(input())
x = 0
for num in n:
    if int(num) == 7 :
        x += 1
if x == 0 :
    print('No')
else:
    print('Yes')

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):
import numpy as np
N = int(input())
if N >= 2 :
    An = np.zeros(N+2)
    #An = [[] for _ in range(1,N+2)]
    #print(An)
    for s in range(1,N+1) :
        #print(s)
        if s%3 != 0 and s%5 != 0 :
            An[s] = int(s) 
            #print(s)
            #print(An[s])
    ans = np.sum(An)

else:
    ans = int(1)

print (int(ans))

import math as mat
N = int(input())
A = int(mat.floor(N/100))
B = int(mat.floor((N-A*100)/10))
C = int(mat.floor(N-A*100-B*10))
if A == 7 or B == 7 or C == 7 :
    ans = 'yes'
else:
    ans = 'no'

print(ans)

import math as mat
N = int(input())
A = int(mat.floor(N/100))
B = int(mat.floor((N-A*100)/10))
C = int(mat.floor(N-A*100-B*10))
if A == 7 or B == 7 or C == 7 :
    ans = str('yes')
else:
    ans = str('no')

print(ans)

import math as mat
N = int(input())
A = int(mat.floor(N/100))
B = int(mat.floor((N-A*100)/10))
C = int(mat.floor(N-A*100-B*10))
if A == 7 or B == 7 or C == 7 :
    ans = 'yes'
else:
    ans = 'no'

print(ans)

import math as mat
N = int(input())
A = int(mat.floor(N/100))
B = int(mat.floor((N-A*100)/10))
C = int(mat.floor(N-A*100-B*10))
if A == 7 or B == 7 or C == 7 :
    ans = str('Yes')
else:
    ans = str('No')

print(ans)

Verdicts: 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):
s = int(input())
if s/100==7:
    print("Yes")
elif s/10==7:
    print("Yes")
elif s%100==7:
    print("Yes")
else:
    print('NO')

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

s = int(input())
t=s//10
if s//100==7:
    print("Yes")
elif t%10==7:
    print("Yes")
elif s%10==7:
    print("Yes")
else:
    print('No')


Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
N = input()
if int(x[2])=7:
    print("Yes")
elif int(x[1])=7:
    print("Yes")
elif int(x[0])=7:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

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

import sys

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

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

Verdicts: Wrong Answer

Runtime Error

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

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

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

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

Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
a,b,c=input()
if a=='7' or b=='7' or c=='7';
  print(Yes)
else;
  print(No)

N=input().split()
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)

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

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

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

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

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

Verdicts: Runtime Error

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):
from math import gcd
n = int(input())
sum = 0
for i in range(1, n+1):
    for j in range(1, n+1):
        for k in range(1, n+1):
            sum += gcd(gcd(i, j), k)
print(sum)

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

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

Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
n = int(input())
a = n.find("7")
if a>-1:
    print("Yes")
else :
    print("No")

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

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

n = int(input())
a = str(n).find("7")
if a>-1:
    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):
"
ABC162A
https://atcoder.jp/contests/abc162/tasks/abc162_a
"


puts (gets.chomp.split("").include?("7")) ? "Yes" : "No"

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

Verdicts: Runtime Error

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

Submission attempts (in order):
a = input()
for i in range(len(a)):
    if int(a[i]) == 7:
        flag = 1
        break
    else:
        flag = 0
if flag == 1:
    print('yes')
else:
    print('no')

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

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

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

S = input()
if S.count('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()
print('YES') if N.count('7') else print('NO')

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


Verdicts: Wrong Answer

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

Submission attempts (in order):
n = str(input())
for i in n:
  if (i == 7):
    print("Yes")
    i = True;
    break
if (i!=True):
	print("No")

n = str(input())
count = 0

for i in n:
  if (i=='7'):
    count++
    break
    
if (count!=0):
	print("Yes")
else:
	print("No")

#include<stdio.h>

int main(){
  
  	int N, summ, i;
  	i = 1;
  	summ = 0;
  
  	scanf("%d", &N);
  
  	while(i <= N){
    	if (N%3==0||N%5==0){
        	summ = summ;
        }
      	else{
        	summ += i;
        }
      	i++;
    }
  
  	printf("%d", summ);
	return 0;
}

n = input()
n = str(n)
count = 0
 
for i in n:
  if (i=='7'):
    count = 1
    break
    
if (count!=0):
	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=input()

print("7" in N)

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):
print("YES" if "7" in list(input()) else "NO")


print("Yes" if "7" in list(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):
import math
N = int(input())
v = False
while N != 0:
    i = N - (N // 10) * 10
    v |= (i == 7)
    N //= 10
print(v)

import math
N = int(input())
v = False
while N != 0:
    i = N - (N // 10) * 10
    v |= (i == 7)
    N //= 10
if v == 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):
s=input()
for e in s:
  if e=="7":
    print("YES")
    break
else:
  print("NO")

s=input()

for e in s:
  if e="7":
    print("Yes")
    break
else:
  print("No")

s=input()

for e in s:
  if e=="7":
    print("Yes")
    break
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):
import scipy

import sys
stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)

def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())

def LI(): return list(map(int, sys.stdin.readline().split()))

def LLI(rows_number): return [LI() for _ in range(rows_number)]

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


Verdicts: Wrong Answer

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

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

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

Verdicts: Runtime Error

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

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

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

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


Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
import re

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


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

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

import re

str = input()

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
s=str(input())

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

else:
    print("Yes")


s=str(input())

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

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

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


n=input()
if '7' in n:
  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):
import sys
n = input()
for i in n:
	if i == '7'
		print('Yes')
		sys.exit(0)
print('No')



import sys
n = input()
for i in n:
	if i == '7':
		print('Yes')
		sys.exit(0)
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 = list(int(input()))

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

A = list(map(int, input()))

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

else:
  print('No')


Verdicts: Runtime Error

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

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

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

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


Verdicts: Runtime Error

Runtime Error

Accepted