TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: We have a tree with N vertices numbered 1 to N. The i-th edge in this tree connects Vertex a_i and b_i. Additionally, each vertex is painted in a color, and the color of Vertex i is c_i. Here, the color of each vertex is represented by an integer between 1 and N (inclusive). The same integer corresponds to the same color; different integers correspond to different colors.  For each k=1, 2, ..., N, solve the following problem:    * Find the number of simple paths that visit a vertex painted in the color k one or more times.  **Note:** The simple paths from Vertex u to v and from v to u are not distinguished.

Submission attempts (in order):
import sys
import itertools

sys.setrecursionlimit(3 * 10**5)


class Node:
  def __init__(self, tpl):
    self.id = tpl[0] + 1
    self.c = int(tpl[1])
    self.children = []

  def add_child(self, node):
    self.children.append(node)

  @staticmethod
  def prepare_nodes(n):
    nodes = tuple(map(Node, enumerate(input().split())))
    for _ in range(n - 1):
      a, b = map(lambda x: int(x) - 1, input().split())
      nodes[a].add_child(nodes[b])
      nodes[b].add_child(nodes[a])

    return nodes


def main():
  n = int(input())
  nodes = Node.prepare_nodes(n)

  dp = [0 for _ in range(n)]
  ans_list = [n*(n + 1) // 2 for _ in range(n)]

  def update_ans(s, color):
    ans_list[color] -= (s + dp[color]) * (s + dp[color] + 1) // 2

  def dfs(s, node, parent):
    color = node.c
    pre_s = s + dp[color]
    for child in node.children:
      if child == parent: continue

      dp[color] = -s
      s = dfs(s, child, node)
      update_ans(s, color)

    s += 1
    dp[color] = pre_s - s

    return s

  s = dfs(0, nodes[0], Node((-1, -1)))

  for i in range(n):
    update_ans(s, i)

  print(*ans_list, sep='\n')


main()


import sys
import itertools

sys.setrecursionlimit(3 * 10**5)


class Node:
  def __init__(self, color):
    self.color = int(color) - 1
    self.children = []

  def add_child(self, node):
    self.children.append(node)

  @staticmethod
  def prepare_nodes(n):
    nodes = tuple(map(Node, input().split()))
    for _ in range(n - 1):
      a, b = map(lambda x: int(x) - 1, input().split())
      nodes[a].add_child(nodes[b])
      nodes[b].add_child(nodes[a])

    return nodes


def main():
  n = int(input())
  nodes = Node.prepare_nodes(n)

  dp = [0 for _ in range(n)]
  ans_list = [n*(n + 1) // 2 for _ in range(n)]

  def update_ans(s, color):
    ans_list[color] -= (s + dp[color]) * (s + dp[color] + 1) // 2

  def dfs(s, node, parent):
    color = node.color
    pre_s = s + dp[color]
    for child in node.children:
      if child == parent: continue

      dp[color] = -s
      s = dfs(s, child, node)
      update_ans(s, color)

    s += 1
    dp[color] = pre_s - s

    return s

  s = dfs(0, nodes[0], Node(-1))

  for i in range(n):
    update_ans(s, i)
    print(ans_list[i])


main()


Verdicts: Runtime Error

Accepted
Problem: We have a tree with N vertices numbered 1 to N. The i-th edge in this tree connects Vertex a_i and b_i. Additionally, each vertex is painted in a color, and the color of Vertex i is c_i. Here, the color of each vertex is represented by an integer between 1 and N (inclusive). The same integer corresponds to the same color; different integers correspond to different colors.  For each k=1, 2, ..., N, solve the following problem:    * Find the number of simple paths that visit a vertex painted in the color k one or more times.  **Note:** The simple paths from Vertex u to v and from v to u are not distinguished.

Submission attempts (in order):
#n = 5
#C = list(map(int,"1 2 3 4 5".split()))
#line = ["1 2", "2 3", "3 4", "3 5"]


n = int(input())
C = list(map(int,input().split()))
 
ci = [set() for _ in range(n)]
for i,c in enumerate(C):
    ci[c-1].add(i)

path = [set() for _ in range(n)]
 
#line = ["1 2", "2 3"]
    
for i in range(n-1):
    #a,b = map(int,input().split())
    a,b = map(int,line[i].split())
    a -= 1
    b -= 1
    path[a].add(b)
    path[b].add(a)
    
ans = [n*(n+1)//2]*n
size = [0]*n
cparent = [[] for _ in range(n)]
reached = [False]*n
root_size = [n]*n

def dfs (p):
    c = C[p] - 1
    cparent[c].append(p)
    s = 1
    for nxt in path[p]:
        #print (nxt)
        size[p] = 0
        if reached[nxt]:
            continue
        reached[nxt] = True
        ret = dfs(nxt)
        s += ret
        size[p] +=ret
        ans[c] -= size[p] * (size[p] + 1)//2
    cparent[c].pop()
    if cparent[c]:
        size[cparent[c][-1]] -=s
    else:
        root_size[c] -=s    
    return s

reached[0] = True
dfs (0)

for i in range(n):
    print (ans[i]-root_size[i]*(root_size[i]+1)//2)


import sys
sys.setrecursionlimit(10**6)
input = sys.stdin.readline

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

path = [set() for _ in range(n)]

for i in range(n-1):
    a,b = map(int,input().split())
    a -= 1
    b -= 1
    path[a].add(b)
    path[b].add(a)
    
ans = [n*(n+1)//2]*n
size = [0]*n
cparent = [[] for _ in range(n)]
reached = [False]*n
root_size = [n]*n

def dfs (p):
    c = C[p] - 1
    cparent[c].append(p)
    s = 1
    for nxt in path[p]:
        #print (nxt)
        
        if reached[nxt]:
            continue
        size[p] = 0
        reached[nxt] = True
        ret = dfs(nxt)
        s += ret
        size[p] +=ret
        ans[c] -= size[p] * (size[p] + 1)//2
    cparent[c].pop()
    if cparent[c]:
        size[cparent[c][-1]] -=s
    else:
        root_size[c] -=s    
    return s

reached[0] = True
dfs (0)

for i in range(n):
    print (ans[i]-root_size[i]*(root_size[i]+1)//2)

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 7 in a:
  print("Yes")
else:
  print("No")

a=list(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):
S = input()
if '7' in S:
  print('Yes')
else
  print('No')


S = 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):
a = int(input())
if a[1] == 7 or a[2] == 7 or a[3] == 7 :
  print(Yes)
else :
  print(No)

a = 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):
import math
from functools import reduce

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

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

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

a = int(input())
out =[int(x) for x in str(a)]
ans = out.count(7)
if ans != 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())
l = len(N)
for i in range(l):
  if N[i] ==7:
    print("Yes")
    exit()
print("No")    

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

N = int(input())
l = len(N)
for i in range(l):
  if N.index(i) ==7:
    print("Yes")
    exit()
print("No")    

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

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

Submission attempts (in order):
n = input()
if '7' in j:
  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 "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):
a = input()
for  _ in range(3):
  if a % 10 == 7:
    print("Yes")
    return
  a /= 10
print("No")
return

a = int(input())
for  _ in range(3):
  if a % 10 == 7:
    print("Yes")
   	break
  a /= 10
else:
  print("No")

a = input()
if '7' in a:
  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):
t=int(input())
S=0
for i in list(range(t+1)):
  if i%5!=0 and i%3!=0:
    S += i
print(S)

t=int(input())
S=0
for i in list(range(t+1)):
  if i%5!=0 and i%3!=0:
    sum += i
print(S)

string = input()
found = False
for i in string:
  if i == '7':
    found=True
    break
    
    
if found:
  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):
import math
 
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 += math.gcd(math.gcd(a,b),c)
 
print(total)

n = input()

for s in n:
    if s == '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):
def calc():
    for i in L:
        if L[i] == 7:
            print("Yes")
        else:
            return
    print("No")

N = int,input()

M = str(N)
print(M)

L = list(map(int, M))

calc()

N = int,input()

M = str(N)
print(M)

L = list(map(int, M))
print(L)

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

elif L[2] == 7:
    print("Yes")

else:
    print("No")

N = input()

M = str(N)

L = list(map(int, M))

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

elif L[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=str(input())
t='nt'
for(i in range(n)):
  if(n[i]=='7'):
    print("Yes")
    t='tr'
if(t='nt'):
  print("No")

n=input()
n=str(n)
t='nd'
for i in n;
	if i=='7':
    	print('Yes')
      	t='d'
if t=='nd':print('No')        

n=input()
n=str(n)
t='nd'
for i in n:
    if i=='7':
        print('Yes')
        t='d'
        break
if t=='nd':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 math
from functools import reduce
def gcd(*numbers):
    return reduce(math.gcd, numbers)

K = int(input())
S = 0

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

print (S)


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):
temp=list(map(int,input().rstrip().split()))
n=temp[0]
S=temp[1]
summ=0
count=0
while summ<S :
    if (S-summ)>=n :
        summ+=n

        count+=1
    else :
        count+=1
        break
print(count)

x = str(input())
y='No'
for k in x:
    if k == '7':
        y='Yes'

print(y)


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):
no = input()
c = false
while no > 0:
  if no%10 == 7:
    c = true
if c == true:
  print("Yes")
else :
  print("No")

def check(n):
	while n > 0:
		if n%10 == 7:
			return "Yes"
		n = int(n/10)
	return "No"

no = int(input())
print(check(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):
word = input().split()
#print(word)
if word[0] == "7" :
    print("Yes")
elif word[1] == "7" :
    print("Yes")
elif word[2] == "7" :
    print("Yes")
else:
    print("No")


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

num = input()
word = list(num)
#print(word)
if word[0] == "7" :
    print("Yes")
elif word[1] == "7" :
    print("Yes")
elif word[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):
l = list(map(int, input()))
if 7 in list:
  print("Yes")
else:
  print("No")
  

l = list(map(int, input()))
if 7 in l:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

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

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

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

N=list(map(int,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()
#print(n[1])
if n[0] =='7' or n[1] == '7' or n[2] == '7':
    print('YES')
else:
    print('NO')

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

n = input()
#print(n[1])
if n[0] =='7' or n[1] == '7' or 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=int(input())
a=n//100
b=(n-a*100)//10
c=n%100
ans="Yes"
if a!=7 and b!=7 and c!=7:
  ans="No"
print(ans)

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
N=int(input())
C=str(N)
c=0
for i in range(len(C)):
  if C[i]==7:
    c+=1
if c==0:
  print("No")
else:
  print("Yes")

N=int(input())
C=str(N)
c=0
for i in range(len(C)):
  if int(C[i])==7:
    c+=1
if c==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 = std(input())

a = N.split()

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

  

N = str(input())

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

N = input()

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


  

N = str(input())

list = [N[0], N[1], N[2]]
if "7" in list:
  print("Yes")
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):
N = input()
print(N*(N-1)//2-(3*(N//3)+5*(N//5))+15*(N//15))

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


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

print("Yes" if("7"in input())else"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):
x = input().split()
j = 0
for i in x:
  if int(i) != 7:
    j = 1

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

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

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

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

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

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

if j == 1:
  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):
t=list(input())

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

t=list(input())

if t[0]=='7' or t[1]=='7' or t[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()) 
res="No" 
for i in range(3):
  if n%7==0:
    res="Yes"
  n//=10
print (res) 

n=int(input()) 

res="No" 

for i in range(3):

  if n%10==7:

    res="Yes"

  n//=10

print (res) 



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 range(3):
    if (N[i]=='7'):
        print("YES")
        sys.exit()

print("NO")


import sys

N = input()

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

print("NO")


n = int(input())
flag = 1

n_1 = (n-(n//10)*10)
n_10 = (n-(n//100)*100 - n_1)//10
n_100 = (n - n_1 - n_10*10)//100

if(n_1!=7 && n_10!=7 && n_100!=7):
  flag = 0

if flag == 0 :
  print("NO")
else:
  print("YES")

import sys

n = input()
for i in range(3):
  if(n[i] == "7"):
    print("YES")
    sys.exit()

print("NO")

import sys

n = input()
for i in range(3):
  if(n[i] == "7"):
    printf("YES")
    sys.exit()

printf("NO")

n = input()
flag = 0

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

if flag == 0 :
  print("NO")
else:
  print("YES")

import sys

n = input()
for i in range(3):
  if(n[i] == "7"):
    print('YES')
    sys.exit()

print('NO')

n = int(input())
flag = 1

n_1 = (n-(n//10)*10)
n_10 = (n-(n//100)*100 - n_1)//10
n_100 = (n - n_1 - n_10*10)//100

if(n_1!=7 and n_10!=7 and n_100!=7):
  flag = 0

if flag == 0 :
  print("NO")
else:
  print("YES")


import sys

n = input()
for i in range(3):
    if(n[i] == "7"):
        print("Yes")
        sys.exit()

print("No")


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

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

N = input()
flag = 1
for i in range(3):
  if N[i] == '7':
    print('Yes')
    flag = 0
    break

if flag:
  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 ni in n:
    if ni == '7':
        print('YES')
        quit()
print('NO')


n = input()
for ni in n:
    if ni == '7':
        print('Yes')
        quit()
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 N in 7:
  print('Yes')
else:
  print('No')

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

n=input().count('7')
if n>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())
a=n//100
b=(n-a*100)//10
c=n%10
print(a,b,c)
if a==7 or b==7 or c==7:
    print("Yes")
else:
    print("No")

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

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

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

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

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

for i in range(len(N)):
    if N[i]==7:
        print('Yes')
        sys.exit()

print('No')

N = input()
F = 0

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

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

import sys
N = input()

for i in range(len(N)):
    if N[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().strip()
print('7' in N)

N = input().strip()

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().split()
n = [int(i) for i in n]
f = 0

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

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

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

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

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

n = input()
f = 0

for i in range(len(n)):
 if n[i] == "7":
  f = 1

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

s = str(N)
if s.count("7")>0:
	print(True)
else:
	print(False)

a = input()
if a.count("7")>0:
	print("YES")
else:
	print("NO")

s = str(input())
if s.count("7")>0:
	print(True)
else:
	print(False)

N = 123

s = str(N)
if s.count("7")>0:
	print(True)
else:
	print(False)

s = str(N)
if s.count("7")>0:
	print(True)
else:
	print(False)

a = input()
if a.count("7")>0:
	print("YES")
else:
	print("NO")

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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
# input
n = input()
# judge
if (re.match('.*7.*', n)):
    print("YES")
else:
    print("NO")

import re
# input
n = input()
if (re.match('.*7.*', 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):
a=list(map(int, input().sprit()))
b=True
for i in a
	if i==7:
    	print('Yes')
        b=False
        break;
if b:
  print('No')


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

a=input()
ans='No'
for i in a:
  if i==7:
    ans='Yes'
print(ans)

a=input()
ans='No'
for i in a:
  if i=='7':
    ans='Yes'
    break
print(ans)

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=input()
s=int(n/100)
if s==7:
    print("Yes")
    exit()
elif n%10 == 7:
    print("Yes")
    exit()
elif n%100>=70 and n%100<80:
    print("Yes")
    exit()
else:
    print("No")

n=int(input())
s=int(n/100)
if s==7:
    print("Yes")
    exit()
elif n%10 == 7:
    print("Yes")
    exit()
elif n%100>=70 and n%100<80:
    print("Yes")
    exit()
else:
    print("No")

Verdicts: Runtime Error

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

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
if 7 in N:
  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 itertools
import functools
import math

def OK():
    N = int(input())

    sum = 0
    cnt = 0
    for i in range(1,N+1):
        for j in range(1,N+1):
            chk = math.gcd(i,j)
            for k in range(1,N+1):
                sum += math.gcd(chk,k)

    print(sum)

OK()


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

N=(input())
result=0
for i in N:
    if '7' in i:
        result+=1
if result>=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())
lis = str(input())
a = []
b = []
for pair in itertools.combinations(lis, 3):
    a.append(list(pair))

lis_num = range(len(lis))
for i in itertools.combinations(lis_num, 3):
    b.append(list(i))

count = 0
for i in range(len(a)):
    if (a[i][0]!=a[i][1] and a[i][1]!=a[i][2] and a[i][2] != a[i][0] and b[i][0]!=b[i][1] and b[i][1] != b[i][2]):
        count += 1
print(count)

s = str(input())

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

n=input()
n=int(n)
if(n%10==7)
  print("Yes")
  else
    print("No")

n=input()
n=int(n)
og=n
flag=0
while(n>0):
    d=n%10
    n=n//10
    if(d==7):
        flag=flag+1
        
if(flag>0):
    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())
  
B = A // 10
C = B // 10

  if A % 10 == 7:
   print ("Yes")

elif B % 10 == 7:
     print ("Yes")
  
elif C % 10 == 7:
  print ("Yes")
else:
  print ("No")

import sys
input = sys.stdin.readline

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

import sys
input = sys.stdin.readline

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

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 fractions

K = int(input())

total = 0

listK = list(range(K))

for i in listK:
    for j in listK:
        for k in listK:
            gcd1 = fractions.gcd(i+1,j+1)
            total += fractions.gcd(gcd1,k+1)

print(total)


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):
import sys
sys.setrecursionlimit(99999999)

inputno = input()

sum = 0
for i in range(int(inputno)):
  
  if (i % 3 != 0) and (i % 5 != 0):
    sum += i  
  
print(sum)

inputno = input()
cnt = inputno.count("7")
if cnt >= 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 itertools
import math

k = int(input())
klis = list(range(1,k+1))
lis = list(itertools.product(klis, klis, klis))

def gcd2(x):
    return math.gcd(x[0],math.gcd(x[1],x[2]))

result = sum(list(map(gcd2, lis)))
print(result)

#ABC083B - Some Sums
n = input()
n_list = list(n)
if ("7" in n_list):
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

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

Submission attempts (in order):
N = int(input())
S = input()
r = 0
g = 0
b = 0
for i in range(N):
    if S[i] == "R":
        r += 1
    elif S[i] == "G":
        g += 1
    else:
        b += 1
ans = r * g * b

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

print(ans)


N = input()
ans = "No"
for i in N:
    if i == "7":
        ans = "Yes"

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):
import sys
import math
from functools import reduce


def main():
    input = sys.stdin.readline
    K = int(input())
    assert 1 <= K <= 200
    total = 0
    for i in range(1, K+1):
        for j in range(1, K+1):
            a = euclidean_algorithm(i, j)
            for k in range(1, K+1):
                total += euclidean_algorithm(a, k)
    print(total)


def euclidean_algorithm(a, b):
    r = a % b
    while r != 0:
        a = b
        b = r
        r = a % b
    return b


if __name__ == "__main__":
    main()


import sys
import math
from functools import reduce


def main():
    input = sys.stdin.readline
    K = int(input())
    assert 1 <= K <= 200
    total = 0
    for i in range(1, K+1):
        for j in range(1, K+1):
            a = euclidean_algorithm(i, j)
            for k in range(1, K+1):
                total += euclidean_algorithm(a, k)
    print(total)


def euclidean_algorithm(a, b):
    r = a % b
    while r != 0:
        a = b
        b = r
        r = a % b
    return b


if __name__ == "__main__":
    main()


import sys
import collections
input = sys.stdin.readline
N = int(input())
S = input().strip()
assert 1 <= N <= 4000
assert N == len(S)
r = S.count("R")
g = S.count("G")
b = S.count("B")
total = 0
for j in range(1, N-1):
    for i in range(j):
        k = 2*j-i
        if k < len(S):
            if S[i] != S[j] and S[i] != S[k] and S[j] != S[k]:
                total += 1
# print(c["R"]*c["G"]*c["B"]-total)
print(r*g*b - total)


import sys
import math
from functools import reduce


def main():
    input = sys.stdin.readline
    K = int(input())
    assert 1 <= K <= 200
    total = 0
    for i in range(1, K+1):
        for j in range(1, K+1):
            a = euclidean_algorithm(i, j)
            for k in range(1, K+1):
                total += euclidean_algorithm(a, k)
    print(total)


def gcd_list(numbers):
    return reduce(euclidean_algorithm, numbers)


def euclidean_algorithm(a, b):
    r = a % b
    while r != 0:
        a = b
        b = r
        r = a % b
    return b


if __name__ == "__main__":
    main()


import sys
input = sys.stdin.readline
N = input()
assert 100 <= int(N) <= 999
print("Yes") if str(7) in N else print("No")


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

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

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

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

N =input()

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

if flag == 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):
raw_input = input().split()
for r in raw_input:
  if '7' == r:
    print('Yes')
    break
else:
  print('No')

raw_input = input().split()
for r in raw_input[0]:
  if '7' == r:
    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):
N = int(input())
S = input()
cnt = 0
for k in range(N):
    for j in range(k):
        for i in range(j) :
            if j - i != k - j:
                if S[k] != S[j] and S[j] != S[i] and S[k] != S[i]:
                    cnt = cnt + 1
                else:
                    cnt = cnt + 0

print(cnt)



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

Verdicts: Runtime Error

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

Submission attempts (in order):
N = int(input())
S = input()
count = 0
for i in range(1, N+1:
    for j in range(i + 1, N+1):
        for k in range(j + 1, N+1):
            if S[i-1] != S[j-1] and S[j-1] != S[k-1] and S[i-1] != S[k-1] and j - i != k - j:
                count += 1
print(count)

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

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

N = int(input())
if "7" in str(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 = str(input())
if n[0] and n[1] and n[2] != 7:
    print("No")
else:
    print("Yes")


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



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

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 = innput()
 
if "7" in n:
  print("Yes")
else:
  print("No")

n = int(innput())

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

n = str(input())
m = "7"
if m 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 = input()
third = a % 100
second = a % 10 - thrid * 10
first = a - (third *100 +second*10)
if(third == 7 or second == 7 or first == 7):
  print("Yes")
else:
  print("No")

a = int(input("数値を入力してください"))
third = a // 100
second = a // 10 - third * 10
first = a - (third *100 +second*10)
if(third == 7 or second == 7 or first == 7):
  print("Yes")
else:
  print("No")


a = int(input("数値を入力してください"))
third = a // 100
second = a // 10 - third * 10
first = a - (third *100 +second*10)
if(third == 7 or second == 7 or first == 7):
  print("Yes")
else:
  print("No")


a = int(input())
third = a // 100
second = a // 10 - third * 10
first = a - (third *100 +second*10)
if(third == 7 or second == 7 or first == 7):
  print("Yes")
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):
N = int(input())
count = 0
for n in range(N+1):
  if (n%5)*(n%3) != 0:
    count += n
print(count)

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

Verdicts: Wrong Answer

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

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

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

N = list(input())

for i in N：
    if i == "7"
    print("Yes")
    break
    
else：
    print("No")

N = list(input())

for i in N：
    if i == "7"
        print("Yes")
        break
    
else：
    print("No")

N = list(input())

for i in N：
    if i == "7"
     print("Yes")
     break
    
else：
    print("No")

N = list(input())

for i in N：
    if i == "7"
      print("Yes")
      break
    
else：
    print("No")

N = list(input())

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

N = input()
if N[0] != '7' and N[1] != '7' and N[2] != '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 = input()

if(n[0]=='7' and n[1]=='7' and 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):
inp = input()
if inp.contains('7'):
  print("Yes")
 else:
  print("No")

N = input()

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

N = input()

print('Yes' if '7' in str(N) else '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()

def a(N):
	for c in N:
  		if c = "7":
    		return "Yes"
    return "No"
 
print(a(N))

N = input()

def a(N):
	for c in N:
		if c == "7":
			return "Yes"
	return "No"
 
print(a(N))

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:
    pritn('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

I = int(input())

#H, W = map(int, input().split())

#N = input()

#listA = list(N)
I = I + 1
a = 0
for num in range(I):
    if num%3 == 0 and num%5 == 0:
        print('FizzBuzz')
    elif num%3 == 0:
        print('Fizz')
    elif num%5 == 0:
        print('Buzz')
    else:
        a = a + num

print(a)

import math

I = int(input())

#H, W = map(int, input().split())

#str = input()


list = I.list()

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

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

import math

#I = int(input())

#H, W = map(int, input().split())

str = input()


list = str.split()

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

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

import math

#I = int(input())

#H, W = map(int, input().split())

A = input()
B = input()
C = input()

bool = False

if A == '7':
    bool = True

elif B == '7':
    bool = True

elif C == '7':
    bool = True


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


import math

#I = int(input())

#H, W = map(int, input().split())


N = input()
listA = list(N)

A = listA[0]
B = listA[1]
C = listA[2]

bool = False

if A == '7':
    bool = True

elif B == '7':
    bool = True

elif C == '7':
    bool = True


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

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

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

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

a = int(input())
ans  = 0
for i in range(1,a+1):
    if i%3 == 0 or i%5 == 0:
        continue
    else:
        ans += i

print(ans)

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

N = input()
if ( '5' in N ):
	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):
flg = 0
for s in n:
    if s == '7':
        print(s)
        flg = 1

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


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

n=input()
flg = 0
for s in n:
    if s == '7':
        flg = 1
 
if flg == 1:
      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 = map(int, list(input()))
if 7 in N:
    print("yes")
else:
    print("no")

N = map(int, 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=int(input())
ans = 0
for n in range(1,N+1):
  if n % 3 != 0 and n % 5 != 0:
    ans += n
print(ans)

N=input()
tf = False
for n in N:
  if n == "7":
    tf = True
    break
if tf == True:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

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

Submission attempts (in order):
n = list(int(input()))
ans = "No"
for i in range(0 , len(n)):
  if n[i] = 7
  ans = "Yes"
  break
print(ans)

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

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


a_string = input()
a_list = a_string.split()
map_object = map(int, a_list)


list_of_integers = list(map_object)
ans = "No"
for i in range(0 , len(list_of_integers)):
  if list_of_integers[i] == "7":
    ans = "Yes"
    break
print(ans)


string = input()
list_of_integers =[int(d) for d in str(string)]

l = len(list_of_integers)
ans = "No"
for i in list_of_integers:
  if (i == 7):
    ans = "Yes"
  
print(ans)

Verdicts: 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 = list(input())
for i in range(2):
  if N[i] == "7":
    print("Yes")
  break
else:
  print("No")

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

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

N = str(input())
if "7" in "N":
  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):
s = input().split()
ans = 'No'
for e in s:
  if e = '7':
    ans = 'Yes'
    break
print(ans)


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


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


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 = int(input())
b = []
if a <= 1000000:
for i in range(a):
    if i % 15 == 0:
      pass
    elif i % 3 == 0:
      pass
    elif i % 5 == 0:
      pass
    else:
      b.append(i)
print(sum(b))


a = input()

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

Verdicts: Runtime Error

Accepted