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=Input("")
if N % 10 == 7 || (N - N % 10) / 10 % 10 == 7 || (N - N % 100)/100 == 7:
  print("Yes")
else:
  print("No")

N=int(Input(""))
if N % 10 == 7 || (N - N % 10) / 10 % 10 == 7 || (N - N % 100)/100 == 7:
  print("Yes")
else:
  print("No")

N=int(input(""))
if N % 10 == 7 or N // 10 % 10 == 7 or N //100 == 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= str(input())
if N.count("7")>=1:
	print ("yes")
else : 
  	print("No")

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

Verdicts: Wrong Answer

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

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

n = int(input())

n = str(n)

flag = 0

for i in n:
  if(i != '7'):
    flag = 0
  else:
    flag = 1

    
print(flag)



n = int(input())
 
n = str(n)
 
flag = 0
 
for i in n:
  if(i != '7'):
    flag = 0
  else:
    flag = 1
    break
 
    
if flag == 0:
  print('No')
else :
  print('Yes')

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

a=list(input())
count=0  
for i in range(len(a)):
	if a[i]=='7':
		count+=1
if count>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()
for n in N:
  if int(n)%7==0:
    print('Yes')
  else:
    print('No')

N=input()
for n in N:
  if n=='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):
#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)

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

Verdicts: Runtime Error

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

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

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

import math
ans=0
i = int(input())
for a in range(1,i+1):
  for b in range(1,i+1):
    for c in range(1,i+1):
      n=math.gcd(math.gcd(a,b),c)
      ans+=n
print(ans)
      

a = list(input())
if "7" in a:
  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):
# Code for A - Lucky 7
# Use input() to fetch data from STDIN
print("Hello world")

# Code for A - Lucky 7
# Use input() to fetch data from STDIN

def solve():
    n = input()
    for i in n:
        if i == "7":
            print("Yes")
            return
    print("No")
    return

solve()


Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
N=int(input())
A=N//100
M=N%100
 
B=M//10
C=M%10
 
if 7 in [A,B,C]:
    print(Yes)
else:
    print(No)

N=int(input())
A=N//100
M=N%100
 
B=M//10
C=M%10
 
if 7 in [A,B,C]:
    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

for line in sys.stdin:
    print(line)

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

N = input()
if '7' in str(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):
# -*- coding: utf-8 -*-
  
N = input()
for i in N:
    if i == '7':
        print('Yes')
        break
        
print('No')

# -*- coding: utf-8 -*-
  
N = input()
flag = 'No'
for i in N:
    if i == '7':
        flag = 'Yes'
        
print(flag)


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

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

 N= input()

seven_count=0 
for i in N:
    if i == '7':
        seven_count=seven_count + 1
        
if seven_count>=1:
    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

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

Submission attempts (in order):
N=[input()]
if N.count("7")>=1:
  print("Yes")
else:
  print("No")
 

N=input()
if N.count("7")>=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())
x = N
while x:
  if x % 10 == 7:
    print('Yes')
  x //= 10
print('No')

N = int(input())
x = N
while x:
    if x % 10 == 7:
        print('Yes')
    x //= 10
print('No')

N = int(input())
x = N
flg = False
while x:
    if x % 10 == 7:
        flg = True
        break
    x //= 10
if flg:
  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):
digits = str(input())
if '7' in digits:
    print('yes')
else:
    print('no')

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

# P3:
def get_gcd(numbers):
    """Helper function to get GCD of list of numbers."""
    import math
    from functools import reduce

    if 1 in numbers:
        return 1

    # gcd is associative
    return reduce(lambda x, y: math.gcd(x, y), numbers)


def sum_of_gcd_tuples():
    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 += get_gcd([a, b, c])

    print(total)


sum_of_gcd_tuples()

digits = input()
if '7' in digits:
    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):
import math
from math import gcd,pi,sqrt
INF = float("inf")

import sys
sys.setrecursionlimit(10**6)
import itertools
from collections import Counter,deque
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]


def main():
    n = i_input()
    n = str(n)
    if "7" in n:
        print("yes")
    else:
        print("No")




if __name__=="__main__":
    main()


import math
from math import gcd,pi,sqrt
INF = float("inf")

import sys
sys.setrecursionlimit(10**6)
import itertools
from collections import Counter,deque
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]


def main():
    n = s_input()
    if "7" in n:
        print("yes")
    else:
        print("No")




if __name__=="__main__":
    main()


import math
from math import gcd,pi,sqrt
INF = float("inf")

import sys
sys.setrecursionlimit(10**6)
import itertools
from collections import Counter,deque
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]


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




if __name__=="__main__":
    main()


Verdicts: Wrong Answer

Wrong Answer

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

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

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



a = input()
if a.count('7') == 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):
s = str(input())
if s[0]==7 or s[1]==7 or s[2]==7:
  print('Yes')
else:
  print('No'9

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

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

Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
num= int(input())
if '7'in str(num):
  print('yes')
else:
  print('no')
  

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

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

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

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

count = False
for i in range(len(a)):
    if i == "7":
        count = True
        break

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

a = input()

count = False
for i in range(len(a)):
    if a[i] == "7":
        count = True
        break

if count:
    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()
num=list(num)
if int(num[0])==7 or int(num[1])==7 or int(num[2])==7:
      print("No")
else:
  print("Yes")

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

num=int(input())
if num%15==0:
  num=(num-num%15)/15
  print(int(num*(num+1)*15/2))
elif num%15==2:
  num=(num-2)/15
  print(int(num*(num+1)*15/2)+num*30+3)
elif num%15==4:
  num=(num-4)/15
  print(int(num*(num+1)*15/2)+num*120+7)
elif num%15==1:
  num=(num-1)/15
  print(int(num*(num+1)*15/2)+num*15+1)
elif num%15==7:
  num=(num-7)/15
  print(int(num*(num+1)*15/2)+num*210+14)
elif num%15==8:
  num=(num-8)/15
  print(int(num*(num+1)*15/2)+num*240+22)
elif num%15==11:
  num=(num-11)/15
  print(int(num*(num+1)*15/2)+num*330+33)
elif num%15==13:
  num=(num-13)/15
  print(int(num*(num+1)*15/2)+num*390+46)
elif num%15==14:
  num=(num-14)/15
  print(int(num*(num+1)*15/2)+num*420+60)

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

num=input()
num=list(num)
if int(num[0])==7 or int(num[1])==7 or int(num[2])==7:
  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):
N  = int(input())
judge = "No"
for i in range(3):
  K = N/(10**(2-i))
  N -= K*(10**(2-i))
  if(K==7):
    judge = "Yes"
    break
print(judge)

N  = int(input())
k = str(N)
m = list(k)
ans = "No"
if("7" in m):
  ans = "Yes"
print(ans)  


Verdicts: Wrong Answer

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

Submission attempts (in order):
a,b,c=input()

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

a=(input())

print('Yes' if '7' in a 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):
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')

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

a = int(input())
#a = 118
l = [int(x) for x in list(str(a))]
flag = False

for x in l:
	if x == 7:
		flag = True

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

Verdicts: Runtime Error

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

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

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

n = int(input())

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

n = int(input())

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

n = int(input())

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


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
a=int(input())
while a>0:
    if(a%10==7):
        print('Yes')
        print(a)
        break
    else:a=a//10
if a==0:print('No')
print(a)

a=int(input())
while a>0:
    if(a%10==7):
        print('Yes')
        break
    else:a=a//10
if a==0:print('No')


Verdicts: Wrong Answer

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

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

import math
from functools import reduce

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

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

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

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
n = input()
while n<100 or n>999:
    n = input()
x = len(n)
for i in range(x):
    if n[i] is '7':
        print('Yes')
        break

n = input()
if n<100 or n>999:
    n = 107
x = len(n)
for i in range(x):
    if n[i] is '7':
        print('Yes')
        break

n = input()
if n<100 or n>999:
	x = len(n)
	for i in range(x):
    	if n[i] is '7':
       		print('Yes')
        	break
else:
  print('No')

n = input()
x = len(n)
b = 'false'
for i in range(x):
    if n[i] is '7':
        b = 'true'
        print('Yes')
        break
if b is not 'true':
  print('No')

Verdicts: Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
N = input()
for i in range(N):
    if N[i] = '7':
        print('Yes')
        break
else:
    print('No')

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

N = input()
for i in range(len(N)):
    if N[i] == '7':
        print('Yes')
        break
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())
S = input()

Rs = []
Gs = []
Bs = []
for i, il in enumerate(S):
    if il == 'R':
        Rs.append(i)
    if il == 'G':
        Gs.append(i)
    if il == 'B':
        Bs.append(i)
num = 0
for i in Rs:
    for j in Gs:
        for k in Bs:
            if (2*i - j - k)*(2*j - k - i)*(2*k - i - j):
                num += 1
print(num)


N = input()
YN = False
for i in N:
    if int(i) == 7:
        YN = True
if YN:
    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 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):
from itertools import product

x1 = int(input())
x2 = input()

R_i = [i for i, x in enumerate(x2) if x == "R"]
G_i = [i for i, x in enumerate(x2) if x == "G"]
B_i = [i for i, x in enumerate(x2) if x == "B"]

R = len(R_i)
G = len(G_i)
B = len(B_i)

xs = map(sorted, product(R_i, G_i))

s = 0
for a in xs:
    k = a[1]*2 - a[0]  # 2j-i
    if k in B_i:
        s +=1
    i = a[0]*2 - a[1]  # 2j-k
    if i in B_i:
        s +=1
    j = (a[0] + a[1]) / 2
    if j.is_integer():
        j = int(j)
        if j in B_i:
            s +=1
print(R*G*B - s)

from itertools import product

x1 = int(input())
x2 = input()

R = [i for i, x in enumerate(x2) if x == "R"]
G = [i for i, x in enumerate(x2) if x == "G"]
B = [i for i, x in enumerate(x2) if x == "B"]

group = map(sorted, product(R, G, B))
voter = [1 for i in group if (i[1] - i[0]) != (i[2] - i[1])]
print(sum(voter))

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

item = input()
if "7" in item:
  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):
x=input()
for i in x:
  if i=="7":
    print("Yes")
else:
  print("No")

n=input()
for i in n:
    if(i=="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):
k = list(input())
re = False
for i in range(len(k)):
  if i == '7':
    re = True

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

k = list(str(input()))
re = False
for i in range(len(k)):
  if i == '7':
    re = True
    
if re:
  print('Yes')
else:
  print('No')

k = list(str(input()))
re = False
for i in k:
  if i == '7':
    re = True
    
if re:
  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=list(map(int,input().split()))
if 7 in s:
  print("Yes")
else:
  print("No")

s=list(input())
for i in range(3):
  s[i]=int(s[i])
if 7 in s:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

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

Submission attempts (in order):
given = int(input())
sums  = 0
for i in range(1, given + 1):
  if i % 3 == 0 or i % 5 == 0:continue
  sums += i
print(sums)  


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

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
S = list(input())
if S.count(7)==0:
  print('No')
else:
  print('Yes')
  


S = list(input())
if S.count(7):
  print('Yes')
else:
  print('No')
  


S = list(input())
if S.count(7)==0:
  print(No)
else:
  print(Yes)
  


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


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

S = list(input())
if S.count('7'):
  print('Yes')
else:
  print('No')
  


Verdicts: Wrong Answer

Wrong Answer

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
import itertools
from numba import njit

@njit
def culc_gcd_of_3(l_p):
    answer = 0
    for x in l_p:
        temp = math.gcd(x[0], x[1])
        answer += math.gcd(x[2], temp)
    
    return answer


K = int(input())
l_p = list(itertools.product(range(1, K+1), range(1, K+1), range(1, K+1)))

culc_gcd_of_3(l_p)

N = int(input())

N_str = str(N)
flag = 0
for x in N_str:
    if x == '7':
        print('Yes')
        flag = 1
        break

if not flag:
    print('No') 

Verdicts: Time Limit Exceeded

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

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
def a(N):
  return Yes if 7 in N else No

def func(N):
  return 'Yes'if 7 in N else 'No'

N=input()
def d(N):
    return "Yes" if "7" in N else "No"
print(d(n))

def function (N):
    return 'Yes' if 7 in N else 'No'
a= function(N)
print(a)

def func(x):
  return yes if 7 in x else no

n=map(int,input().split())
def d(n):
    return "Yes" if 7 in n else "No"
print(d(n))

def func (x):
  return Yes if 7 in x else No

def a(N):
    return 'Yes' if 7 in N else 'No'


def a(N):
    return 'Yes' if 7 in N else 'No'
nun=a(N)
print num

def a(N):
  return 'Yes' if 7 in N else 'No'

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

n=input().split()
def d(n):
    return "Yes" if "7" in n else "No"
print(d(n))

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

n=input().split())
def d(n):
    return "Yes" if "7" in n else "No"
print(d(n))

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

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

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

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

n=list(map(int,input().split()))

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

n= input()

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

Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
import numpy as np

n = int(input())
a = list(map(int, input().split()))

a_array = np.array(a)

ans_array = np.zeros((n//2, n), dtype = np.int)

if n >=4:

  ans_array[0, 0] = a_array[0]
  ans_array[0, 1] = a_array[1]
  ans_array[0, 2] = a_array[2]

  for i in range(1, n//2):
    j = 2*(i+1)
    # print(i, j)
    ans_array[i, j-2] = ans_array[i-1, j-4] + a_array[j-2]
    ans_array[i, j-1] = max(ans_array[i-1, j-4], ans_array[i-1, j-3]) + a_array[j-1]
    if j < n:
      ans_array[i, j]  = max(ans_array[i-1, j-3], ans_array[i-1, j-2]) + a_array[j]
  # print(ans_array)

  print(np.max(ans_array[-1, -3:]))

else:
  print(max(a_array))

import numpy as np

n = int(input())
a = list(map(int, input().split()))

a_array = np.array(a)

if n % 2 == 3:
  sum_1 = np.sum(a_array[0:-1:2])
  sum_2 = np.sum(a_array[1::2])
  ans = max(sum_1, sum_2)

else:
  max_value = np.zeros((2, n), dtype = np.int)
  max_value[0, 0] = a_array[0]
  max_value[1, 0] = 1
  max_value[0, 1] = a_array[1]
  max_value[1, 1] = 1
  max_value[0, 2] = max((max_value[0,0] + a_array[2]), a_array[2])
  if (max_value[0, 0] + a_array[2]) > a_array[2]:
    max_value[1, 2] = 2
  else:
    max_value[1, 2] = 1 

  for i in range (3, n):
    if (a_array[i] + max_value[0, i-2]) >= (a_array[i] + max_value[0, i-3]):
      if ((i-1) // 2) <= (max_value[1, i-2] + 1) == (i+1) // 2:
        max_value[0, i] = a_array[i] + max_value[0, i-2]
        max_value[1, i] = max_value[1, i-2] + 1
      else:
        max_value[0, i] = a_array[i] + max_value[0, i-3]
        max_value[1, i] = max_value[1, i-3] + 1
    else:
      if ((i-1) //2) <= (max_value[1, i-3] + 1) == (i+1) // 2:        
        max_value[0, i] = a_array[i] + max_value[0, i-3]
        max_value[1, i] = max_value[1, i-3] + 1
      else:
        max_value[0, i] = a_array[i] + max_value[0, i-2]
        max_value[1, i] = max_value[1, i-2] + 1
  # print(max_value)
  # print(max_value[1, -1], max_value[1, -2], max_value[1, -3])
  # print(max_value[0, -1], max_value[0, -2], max_value[0, -3])
  if max_value[1, -1] == n // 2:
    ans_1 = max_value[0, -1]
  else: 
    ans_1 = -9999999999999999
  if max_value[1, -2] == n // 2:
    ans_2 = max_value[0, -2]
  else: 
    ans_1 = -9999999999999999
  if max_value[1, -3] == n // 2:
    ans_3 = max_value[0, -3]
  else: 
    ans_3 = -9999999999999999
  ans = max(max(ans_1, ans_2), ans_3)

print(ans)

n = list(input())

# print(n)
ans = "No"

for i in range(3):
  if n[i] == '7':
    ans = 'Yes'

print(ans)

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
n = input()
return "7" in n

n = input()
print("7" in n)

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

Verdicts: Runtime Error

Wrong Answer

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

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


N = int(input())
if N[0] == 7, or N[1] == 7, N[2] == 7:
  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):
import sys

def lucky_seven(num_string):
  for num in line:
    if num == '7':
      return 'YES'
  return 'NO'

for line in sys.stdin:
  lucky_seven(line)

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

import sys

def lucky_seven(num_string):
  for num in line:
    if num == '7':
      return 'YES'
  return 'NO'

for line in sys.stdin:
  out = lucky_seven(line)
  sys.stdout.write(out)

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
N=int(input())
import sys
for i in range(3):
  if N%10==7:
    print ('Yes')
    sys.exit
  N=N//10
print ('No')

N=int(input())
for i in range(3):
    if N%10==7:
        print ('Yes')
        break
    N=N//10
if N==0:
    print ('No')

Verdicts: Wrong Answer

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

Submission attempts (in order):
n = int(input())
li = map(int, list(str(n)))
if '7' in li:
    print('Yes')
else:
    print('No')

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
N=int(input())
S=str(input())
list_R=[]
list_G=[]
list_B=[]
count=0
for i in range(N):
    if S[i]=="R":
        list_R.append(i)
    if S[i]=="G":
        list_G.append(i)
    if S[i]=="B":
        list_B.append(i)
for i in range(N):
    for j in range(N):
        if i+2*j>N-1:
            break
        if S[i]!=S[i+j] and S[i+j]!=S[i+j*2] and S[i+2*j]!=S[i]:
            count=count+1

print(len(list_B)*len(list_G)*len(list_R)-count)
        


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

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

Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
n =input()
if "7" in n:
  prnt("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())
count = 0
for i in range(N+1):
  if i % 3 != 0 and i % 5 != 0:
    count += i
print(count)

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

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

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

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

Submission attempts (in order):
n=int(input())
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())
has = False
for n in N:
	if n == 7:
		has = True
		break
	
if has:
	print("Yes")
else:
	print("No")
	

N = int(input())
has = False
for n in str(N):
	if n == "7":
		has = True
		break
	
if has:
	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):
i = input()
s = str(i)
print(s[-1])
if s[-1] == "7":
    print("Yes")
elif s[-2] == "7":
    print("Yes")
elif s[-3] == "7":
    print("Yes")
else:
    print("No")

i = input()
s = str(i)
if s[-1] == "7":
    print("Yes")
elif s[-2] == "7":
    print("Yes")
elif s[-3] == "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 = input()

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
N = input()
if "7" in S:
    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")

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

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

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
N = int(input())
lA = list(str(N))
flag = 0
for _ in range(3):
  lA[i] == '7':
    flag += 1
if flag != 0:
  print('Yes')
else:
  print('No')

N = int(input())
lA = list(str(N))
flag = 0
for i in range(3):
    if lA[i] == '7':
        flag += 1
if flag != 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):
def lucky7(n):
  if '7' in str(n):
    print("Yes")
  else:
    print("No")


def lucky7(n):
  if '7' in str(n):
    return 'Yes'
  else:
    return 'No'

N = str(input())

if len(N) == 3 and '7' in N:
  print("Yes")
else:
  print("No")


Verdicts: Wrong Answer

Wrong Answer

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

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

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

Num = input()
if "7" in Num:
  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(x) for x in input().split()]

X = str(N)

if "7" in X:
    print("True")
else:
    print("False")

N = int(input())

X = str(N)

if "7" in X:
    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):
in=input()
ok=0
for i in range(len(in)):
  if(in[i]=='7'):
    print("Yes")
    ok=1
    break
if(ok==0):
  print("No")

inp=input()
ok=0
for i in range(len(inp)):
  if(inp[i]=='7'):
    print("Yes")
    ok=1
    break
if(ok==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):
N = str(input())
if N in 7:
  print("Yes")
else:
  print("No")

import sys
A = 1
N = str(input())
for i in N:
  if int(i) == 7:
    print("Yes")
    exit()
  else:
    A = 0
    
if A == 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):
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = str(sys.stdin.read())
flag = False

for s in N:
    print(s)

    if s == '7':
        flag = True

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


import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = str(sys.stdin.read())
flag = False

for s in N:
    if s == '7':
        flag = True

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

s=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):
a = input()
x = int(a)//100
y = (int(a)-x*100)//10
z = int(a) - y*10 - x*100
print(x,y,z)
if x == 7 or y == 7 or z == 7:
    print('Yes')
else:
    print('No')


a = input()
x = int(a)//100
y = (int(a)-x*100)//10
z = int(a) - y*10 - x*100
if x == 7 or y == 7 or z == 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):
import sys
n=input()
for i in n:
	if i=='7':
		print('Yes')
        sys.exit()
print('No')

import itertools
k=int(input())
def solve(a,b):
	if a<b:
		if b%a==0:
			return a
		else:
			return solve(a,b%a)
	if a%b==0:
		return b
	else:
		return solve(b,a%b)
arr=[i+1 for i in range(k)]

l = [p for p in itertools.product(arr, repeat=3)]
s=0
dic={}
for i in l:
	a,b,c=i
	s+=solve(c,solve(a,b))
print(s)

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

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

n = input()

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

Verdicts: Wrong Answer

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

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

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


Verdicts: Runtime Error

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

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


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


Verdicts: Wrong Answer

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

Submission attempts (in order):

list = list(str(input())

flag = 0

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

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

list = list(str(input()))

YN_flag = 0

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

if YN_flag == 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):
N=input()
if N[0]=='7' or N[1]=='7' or N[2]=='7':
    print("yes")
else:
    print("No")

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

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

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

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

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

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

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

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

N=input()
if N.find('7')==1:
    print('yes')
else:
    print('no')

N=int(input())
a=int(N/100)
b=int((N-a*100)/10)
c=int(N-100*a-10*b)
l=int()
if a*b*c==7l:
    print('yes')
else:
    print('no')

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

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

Submission attempts (in order):
n = input().split()
for i in range(len(n)):
    if ('7'==n):
        print("Yes")
print("No")

n = input().split()
for i in range(len(n)):
    if ('7'==n[i]):
        print("Yes")
print("No")

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

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
N = int(input().rstrip)
count = 0
for i in N:
  if i == 7:
    count += 1
if count > 0:
  print("Yes")
else:
  print("No")

N = input()
word = "7"
if word 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):
lucky = input()

for i in range(3)
	if int(lucky[i]) == 7 :
  		print ("Yes")
    else :
        print ("No")

lucky = input()

for i in range(3)
	if int(lucky[i]) = 7 :
  		print ("Yes")
    else :
        print ("No")

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

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

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

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


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

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('YNeos'['7'in input()::2])

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

Verdicts: Wrong Answer

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

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

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

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

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

N = input()

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

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



Verdicts: Wrong Answer

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

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

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

Verdicts: Runtime Error

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

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

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

N = str(input())

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

N = input()

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

Verdicts: Wrong Answer

Wrong Answer

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

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
n = int(input())
num = []
while n>0:
  num.append(n%10)
  n //= 10

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

print("No")

import math
k = int(input())
sum = 0
for a in range(1,k+1):
  for b in range(1,k+1):
    ab = math.gcd(a,b)
    for c in range(1,k+1):
      sum += math.gcd(ab,c)
print(sum)
  


n = int(input())

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

n = int(input())
num = []
while n>0:
  num.append(n%10)
  n //= 10

ans = 0
for i in num:
  if i == 7:
    ans+=1
    break
  else:
    ans = 0
    
if ans >= 1:
  print("Yes")
elif ans==0:
  print("No")

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

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

Submission attempts (in order):
num=input()
flag=0
for i in range(3):
  if int(num[i])==7:
    flag=1
if flag==0:
  print("Yes")
else:
  print("No")

num=input()
flag=0
for i in range(3):
  if int(num[i])==7:
    flag=1
if flag==1:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

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

Submission attempts (in order):
import re

str = input()

if re.match(str, "7"):
  print("Yes")
else:
  print("No")

import re
 
str = input()

if re.search("7", str):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

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

Submission attempts (in order):
import math
K =int(input())
list =[]
for a in range(1,K+1) :
    for b in range(1,K+1) :  
        t = math.gcd(a,b)    
        for c in range(1,K+1) :
           list.append(math.gcd(t,c))  
print(sum(list))

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

Verdicts: Wrong Answer

Accepted