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()
    a = "No"
    for n in N:
      if n == "7":
        a = "Yes"
    print (a)

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

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

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())
k = 0
for i in range(n):
  if not ((i+1)%5)*((i+1)%3) == 0:
    k += i+1
print(k)

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):
def main():
    N = input()
    for i in N:
        if i == "7":
            print("Yes")
            return
    print("No")

    main()
        



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

main()
        



Verdicts: Wrong Answer

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

Submission attempts (in order):
N = input()
flag = 0
for i in N:
    if i == '7':
        flag = 1
        print('yes')
        break
if flag == 0:
    print('no')

N = input()
for i in N:
  if i == '7':
    print('yes')
    return 0
print('no')

    

N = input()
flag = 0
for i in N:
    if i == '7':
        flag = 1
        print('Yes')
        break
if flag == 0:
    print('No')

Verdicts: Wrong Answer

Runtime Error

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

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

n = str(input())
if n.count("7") >= 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):

def main():
    # -*- coding: utf-8 -*-
    
    a = int(input())
    
    # b, c = map(int, input().split())
    # b, c = map(int, input())

    
    # a = input()
    
    # print("{} {}".format(a+b+c, s))

    # mul = a

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


if __name__ == '__main__':
    # main('123')
    main()
    


def main():
    # -*- coding: utf-8 -*-
    
    # a = int(input())
    
    # b, c = map(int, input().split())
    # b, c = map(int, input())

    
    a = input()
    
    # print("{} {}".format(a+b+c, s))

    # mul = a

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


if __name__ == '__main__':
    # main('170')
    main()


def main():
    # -*- coding: utf-8 -*-
    
    # a = int(input())
    
    # b, c = map(int, input().split())
    # b, c = map(int, input())

    
    a = input()
    
    # print("{} {}".format(a+b+c, s))

    # mul = a

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


if __name__ == '__main__':
    # main('123')
    main()


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):
s = int(input())
sum = 0
for i in range(1,s+1):
    if i%3 == 0 and i%5 == 0:
        j=0
    elif i%3==0 or i%5==0:
        j=0
    else:
      
        sum += i
print(sum)    

s = input()
for '7' in list(s):
	print('Yes')
else:
	print('No')

s = input()
if '7' in list(s):
	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):
input = int(input())
a = []
while(i <= input):
    if i%3 == 0 or i%5 == 0:
        pass
    else:
        a.append(i)
    i += 1
sum = 0
for j in a:
    sum = sum + a[j]
print(sum)



input = int(input())
list = [int(x) for x in str(input)]
count = 0
for x in list:
  if x == 7:
    count = count + 1
if count >= 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):
n = input()
ans=0
for i in n:
    if i==7:
        ans=1
if ans==1:
    print("Yes")
else:
    print("No")


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


Verdicts: Wrong Answer

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

Submission attempts (in order):
def find_7(num):
	num_list = list(map(int, str(num)))
	count = 0
	for x in num_list:
		count += 1
		if x == 7:
			return "Yes"
		elif count == len(num_list):
			return "No"

if __name__ == '__main__':
	print (find_7())

def find_7(num):
	num_list = list(map(int, str(num)))
	count = 0
	for x in num_list:
		count += 1
		if x == 7:
			return "Yes"
		elif count == len(num_list):
			return "No"

num = input()

for x in num:
	if x == '7':
		print ("Yes")
		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):
a = str(input())
ans = 'yes'if any([i=='7' for i in a]) else 'no'
print(ans)

a = str(input())
ans = 'Yes' if any([i=='7' for i in a]) else 'No'
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):
def main():
    s = input()
    for c in s:
        if c == '7':
            return 'Yes'
        return 'No'


if __name__ == '__main__':
    print(main())


def main():
    s = input()
    for c in s:
        if c == '7':
            return 'Yes'
    return 'No'


if __name__ == '__main__':
    print(main())


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

#!/usr/bin/env python3
 
n = int(input())
 
n = list(str(n))
 
flag = 0
 
for i in n:
    if i == str(7):
        flag = 1
 
print("Yes" if flag == 1 else "No")

Verdicts: Wrong Answer

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

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


N = int(input())
a1 = N % 10
a2 = ((N % 100) - a1) / 10
a3 = N // 100
if a1 == 7 or a2 == 7 or a3 ==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()

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


N = str(input())

if N.count("7") > 0:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
if a%10==7:
  print(True)
elif( a%100 )//10==7:
  print(True)
elif( a//100 )==7:
  print(True)
else:
  print(False)



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

a = input()
if a%10==7:
  print(True)
elif( a%100 )//10==7:
  print(True)
elif( a//100 )==7:
  print(True)
else:
  print(False)

a = input()
a = int(a)
if a%10==7:
  print("Yes")
elif( a%100 )//10==7:
  print("Yes")
elif( a//100 )==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):
n = input()
print('Yes') if n in '7' 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):
import math
k = int(input())

ans = 0
for a in range(1,k+1):
  for b in range(1,k+1):
    tmp = math.gcd(a,b)
    for c in range(1,k+1):
      ans += math.gcd(tmp,c)

print(ans)


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

Verdicts: Wrong Answer

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

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

N = str(input())
a=1
for i in range(len(N)):
    if N[i]=='7':
        a=0
        break
if a==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):
a = input()
b=list(a)
res= 0
for i in b:
    if i == '7':
        print("yes")
        res = res+1

if res == 0:
    print("no")

a = input()
b=list(a)
res= 0
for i in b:
    if i == '7':
        print("Yes")
        res = res+1
        break
if res == 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 = input()
b = 0
for i in n:
    if i == '7':
        b= 1
        break

if b == 1:
    print("YES")
else:
    print("NO")

n = input()
b = 0
for i in n:
    if i == '7':
        b= 1
        break

if b == 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 = input()
print(n[-1], n[-2], n[-3])
if n[-1]==7 or n[-2]==7 or n[-3]==7:
    print("Yes")
else:
    print("No")

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

n = input()
if n[-1]=='7' or n[-2]=='7' or n[-3]=='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())
if N.count(7) >0:
  print(Yes)
else:
  print(No)

N = int(input())
m = 0
for i in range(N+1):
  if not i % 3 == 0 or i % 5 == 0:
    m += i
 
print (m)

N = input()
if N.count("7") >0:
  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 = list(map(int, 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: 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 i in range(1,N+1):
    if(not(i%3==0 or i%5==0)):
        ans += i
print(ans)

N

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


Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
A = input()
for a in range(3):
  if A[a] == '7':
    print('yes')
    break
  if a == 2:
    print('No')

A = input()
for a in range(3):
  if A[a] == '7':
    print(yes)
    break
  if a == 2:
    print('No')

A = input()
for a in range(3):
  if A[a] == '7':
    print('yes')
    break
  if a == 2:
    print('No')

A = input()
for a in range(3):
  if A[a] == '7':
    print('Yes')
    break
  if a == 2:
    print('No')

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

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

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


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

Runtime Error

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
if '7' in str(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):
print("YES" if "7" in input() else "NO")

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

Verdicts: Wrong Answer

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

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

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

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

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

print(b)





n = input()

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

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

print(b)

a = str(input())

if "7" in a:
	print("Yes")
else:
	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 = int(input())

A=  N//100
B = (N//10)%10
C = N%10

if (A==7) or (B==7) or (B==7):
  print("Yes")
else:
  print("No")


N = int(input())

A=  N//100
B = (N//10)%10
C = N%10

if (A==7) or (B==7) or (B==7):
  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

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

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

n = list(str(input()))

cnt = 0
for i in range(0, len(n)):
    if int(n[i]) == 7:
        print("Yes")
        cnt += 1
        break
if cnt == 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):
def main():
  s = input()
  print('7' in s)

if __name__ == '__main__':
  main()

def main():
  s = input()
  r = '7' in s
  if r:
    print('Yes')
  else:
    print('No')

if __name__ == '__main__':
  main()

Verdicts: Wrong Answer

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

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

n = 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

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())
ans = 0
for i in range(n+1):
    if i%15!=0 and i%3!=0 and i%5!=0:
        ans += i
print(ans)

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

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()
a=[int(c) for c in s]
flag=False
for i in a:
  if i==7:
    flag=True
if flag==True:
  print("YES")
else:
  print("NO")

s=input()
a=[int(c) for c in s]
flag=False
for i in a:
  if i==7:
    flag=True
if flag==True:
  print("Yes")
else:
  print("No")

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):
m = list(input())
print(m)

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


m = list(input())

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

N = input()

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

Verdicts: Runtime Error

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

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

str = input()
if str[0] == "7" or str[1] == "7" or str[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 = 0
if N[0] =="7":
	n += 1
if N[1] == "7":
	n +=1
if N[2} == "7":
	n += 1
 
if n > 0:
	print("Yes")
else:
	print("No")

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

Verdicts: Runtime Error

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

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

from math import gcd


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

print(sum)

K = int(input())

from math import gcd


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

print(sum)

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




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



n = list(input())

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

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


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

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

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

	if n != 0:
		break

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

import sys

chars = sys.argv[1]
n = 0

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

	if n != 0:
		break

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

chars = str(input())
n = 0

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

	if n != 0:
		break

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

Verdicts: Runtime Error

Runtime Error

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

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

n = list(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

x=int(input())
s=math.floor(x/3)
f=math.floor(x/5)
sf=math.floor(x/15)

s_sum=math.floor(3*s*(s+1)/2)
f_sum=math.floor(5*f*(f+1)/2)
sf_sum=math.floor(15*sf*(sf+1)/2)

sum=s_sum+f_sum-sf_sum
print(math.floor(sum))


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

x=input()
a=x[0]
b=x[1]
c=x[2]
if a=="7":
  print("Yes")
elif b=="7":
  print("Yes")
elif c=="7":
  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):
print('7' in input())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
s = N

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

str = N

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

s = str(N)

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


N = input()
s = str(N)

if s[0] == '7' or s[1] == '7' or s[2] == '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):
i = input()
i1=int(i/100)
i2=int((i-i1*100)/10)
i3=i-i1*100-i2*10

if (i1 == 7 or i2 == 7 or i3 == 7):
    print ('Yes')
else:
    print ('No')


i = input()

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

Verdicts: Runtime Error

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

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

ans='No'

if n//100==7 or n//10==7 or n%10==7:
    ans='Yes'
elif :
    ans='No'
print(ans)

n=input()

ans='No'

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

n=list(input())

ans='No'

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

n=int(input())

ans='No'

if n//100==7 or n//10==7 or n%10==7 (n//10)%10==7:
    ans='Yes'
else :
    ans='No'
print(ans)

n=input()

ans='No'

if '7' in n:
    ans='Yes'
print(ans)

Verdicts: Runtime Error

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

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
N=int(input())
if N.count(7)>0:
	print('Yes')
else:
	print('No')

N=input()

if N.count('7')>0:
  print('Yes')

else:
  print('No')

Verdicts: Runtime Error

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

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

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


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

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




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


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


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

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




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

print(total)


 N = input()
total = 0
for i in range(N):
	if i % 3 != 0 and i % 5 != 0:
	total += i

print(total)


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

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





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

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




 N = input()
total = 0
for i in range(N):
	if i % 3 != 0 and i % 5 != 0:
		total += i

print(total)

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

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




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


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

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



Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
#!/usr/bin/env python
import sys
from collections import Counter
from itertools import permutations, combinations
from fractions import gcd
from math import ceil, floor
sys.setrecursionlimit(10 ** 6)

def input():
    return sys.stdin.readline()[:-1]

def main():
    N = input()
    for l in N:
        if l == '7':
            print("Yes")
        else:
            "No"

if __name__ == '__main__':
    main()

x = input()
for l in x:
    if l == "7":
        print("Yes")
        exit()
print("No")

Verdicts: Wrong Answer

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

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

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):
A=list(map(int,input()))
b=0

for i in range(0,2):
    if A[i]==7:
        b+=1

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


A=list(map(int,input()))
b=0
print(A)
for i in range(0,3):
    if A[i]==7:
        b+=1

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


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

for i in range(0,3):
    if A[i]==7:
        b+=1

if b==0:
    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 = input()

for char in N:
  if char = '7':
    print('Yes')

print('No')

N = input()

for char in N:
  if char == '7':
    print('Yes')

print('No')


N = input()

flag = False

for char in N:
  if char == '7':
    print('Yes')
    flag = True
    break

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

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

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

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

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

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

Verdicts: Runtime Error

Runtime Error

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

a = int(n / 100)

b = int(n % 100 / 10)
c = int(n % 10)

print(b)
if 7 in (a, b, c):
  print('Yes')
else:
  print('No')

n = int(input())

a = int(n / 100)

b = int(n % 100 / 10)
c = int(n % 10)

if 7 in (a, b, c):
  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 fractions

K = int(input())
g = 0
for i in range(1, K+1):
    for j in range(1, i+1):
        for k in range(1, j+1):
            a = fractions.gcd(i, j)
            b = fractions.gcd(a, k)
            if i != j != k:
                g += b*6
            elif i == j == k:
                g += b
            else:
                g += b*3


print(g)

z = map(int, list(str(input())))
print(True if 7 in z else False)

z = map(int, list(str(input())))
print('Yes' if 7 in z else '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):
A=input()

if A in "7":
  print("Yes")

else:
  print("No
")

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

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

A=(int, input())
print(A)

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

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

Verdicts: Runtime Error

Wrong Answer

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()
num = list(n)
print("7" in num)

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

Verdicts: Wrong Answer

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

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

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

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

N = int(input())

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

N = input()

if len(str(N)) == 3:
    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):
def solve(pick, idx):

    if pick == 0: return 0
    if idx >= n: return -float('inf')
    if (pick, idx) in dp: return dp[pick, idx]
    if n-idx+2 < pick*2: return -float('inf')
    total = max(A[idx] + solve(pick-1, idx+2), solve(pick, idx+1))

    dp[(pick, idx)] = total
    return total

n = int(input())
A = list(map(int, input().split()))
dp = {}
pick = n//2

print(solve(pick, 0))


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

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):
    DVSR = 1000000007
    def POW(x, y): return pow(x, y, DVSR)
    def INV(x, d=DVSR): return pow(x, d - 2, d)
    def DIV(x, y, d=DVSR): return (x * INV(y, d)) % d
    def LI(): return [int(x) for x in input().split()]
    def LF(): return [float(x) for x in input().split()]
    def LS(): return input().split()
    def II(): return int(input())
    
    n = II()
    n = str(n)
    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 = int(input())
t = int(s % 10)
u = int(s / 10)
while True:
    t = int(u % 10)
    u = int(u / 10)
    if t == 7:
        print("Yes")
        break
    elif u == 0:
        print("No")
        break

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

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

s = input()
print('Yes' if s[0] =='7' or s[1] =='7' or s[2] =='7' 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):
#!/usr/bin/env python

import sys

N = int(sys.stdin.readline())

mods = []

order = 100
for i in range(3):
    mods.append(N // order)
    N = N - (order * mods[-1])


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


#!/usr/bin/env python

import sys

N = sys.stdin.readline()

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

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

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

Verdicts: Runtime Error

Wrong Answer

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

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


S = int(input())
if S // 100 == 7:
    print('Yes')
elif (S % 100) // 10 == 7:
    print('Yes')
elif (S % 100) % 10 == 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):
i = int(input())
fizz=[]
for x in range(i):
  if x % 3 ==0 and x%5==0:
    continue
  elif x % 3==0:
    continue
  elif x%5==0:
    continue 
  else:
    fizz.append(x)
print(sum(fizz))

a=list(input())
b="Yes" if "7" in a else "No"
print(b)

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

lst = [_ for _ in range(1, n+1)]
lst2 = list(itertools.permutations(lst, 3))
lst3 = list(itertools.permutations(lst, 2))
l2 = sum([math.gcd(math.gcd(_[0],_[1]),_[2]) for _ in lst2])
l3 = sum([math.gcd(_[0], _[1]) for _ in lst3]) * 3
l4 = sum(lst)

ans = l2 + l3 + l4

print(ans)


n = list(str(input()))

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
from math import gcd

k = int(input())
ans = 0

for a in range(1,k+1):
    if i == 1:
        ans += k*k
        continue
    for b in range(1,k+1):
        n = gcd(a,b)
        if n == 1:
            ans += k
            continue
        for c in range(1,k+1):
            ans += gcd(n,c)
print(ans)

n = input()

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

Verdicts: Runtime Error

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

Submission attempts (in order):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

if __name__ == '__main__':
    main()



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

def main():
    N = input()
    c = N.count('7')
    print('Yes' if c != 0 else 'No')
    return

if __name__ == '__main__':
    main()



Verdicts: Wrong Answer

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

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

ans = 'Yes'
for n in N:
    if n == '7':
        ans = 'No'
print(ans)



N = input()

ans = 'No'
for n in N:
    if n == '7':
        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):
import math

n = int(input())
s = input()

r_count = s.count('R')
g_count = s.count('G')
b_count = s.count('B')

answer = r_count*g_count*b_count


for k in range(1, min(n, math.ceil(n/3)+6)):
    for i in range(k):
        extracted = s[i::k]
        if len(extracted) >= 3:
            for l in range(len(extracted)-2):
                temp = extracted[l:l+3]
                if temp.count('R') == 1 and temp.count('G')==1 and temp.count('B'):
                    answer -= 1

print(answer)

import math

n = int(input())
s = input()

r_count = s.count('R')
g_count = s.count('G')
b_count = s.count('B')

answer = r_count*g_count*b_count


n_temp = min(n, math.ceil(n/3)+6)
for k in range(1, n_temp):
    for i in range(k):
        extracted = s[i::k]
        if len(extracted) >= 3:
            for l in range(len(extracted)-2):
                temp = extracted[l:l+3]
                if temp.count('R') == 1 and temp.count('G')==1 and temp.count('B'):
                    answer -= 1

print(answer)

n = str(input())
if n.find('7') != -1:
    print('Yes')
else:
    print('No')


Verdicts: Runtime Error

Runtime Error

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

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

N = input()
if '7'==N[0] or '7'==N[1] or '7'==N[2]:
  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):
# -*- coding: utf-8 -*-
N = input()
print('7' in N)

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

Verdicts: Wrong Answer

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

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

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

n = input()
print("Yes" if "7" in 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):
a=int(input())

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

a=int(input())

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

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 = 0
for i in range(3):
  if N[i] == 7:
    a = 1
    
if a = 1:
  print('Yes')
else:
  print('No')

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

N = input()

a = 0
for i in range(3):
  if N[i] == '7':
    a = 1
    
if a == 1:
  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):
S = input()
S = list(input())
S_len = len(S)
ans = 0
i = 0
for _ in range(S_len):
  if S[0] == 'R':
    ans += S[1:].count('B') * S[1:].count('G')
    for j in range(int(len(S)/2+1)):
      try:
        if S[j+1] != S[j*2+2] and S[j*2+2] !='R' and S[j+1] !='R':
          ans-=1
      except:
        pass
  if S[0] == 'B':
    ans += S[1:].count('R') * S[1:].count('G')
    for j in range(int(len(S)/2+1)):
      try:
        if S[j+1] != S[j*2+2] and S[j*2+2] !='B' and S[j+1] !='B':
          ans-=1
      except:
        pass
  if S[0] == 'G':
    ans += S[1:].count('B') * S[1:].count('R')
    for j in range(int(len(S)/2+1)):
      try:
        if S[j+1] != S[j*2+2] and S[j*2+2] !='G' and S[j+1] !='G':
          ans-=1
      except:
        pass
  S  = S[1:]
print(ans)

a = input()

b = 0
for i in a:
  if i == '7':
    print('Yes')
    break
  b+=1
  if b == 3:
    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(map(int, input().split()))
a = s.count(7)
if a == 0:
  print('No')
else:
  print('Yes')

s = list[map(int, input().split())]
a = s.count(7)
if a == 0:
  print('No')
else:
  print('Yes')

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

Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
n = int(input())
s = input()
cnt = s.count('R')*s.count('G')*s.count('B')
for i in range(n-2):
    for j in range(i+1,n-1):
        if s[i] != s[j]:
            if 2*j-i <= n-1:
                if s[2*j-i] not in(s[i],s[j]):
                    cnt -= 1
print(cnt)


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

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())
first = n // 100
second = (n % 100) // 10
third = (n % 10)

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

n = input()
first = n // 100
second = (n % 100) // 10
third = (n % 10)

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

n = input()
first = n // 100
second = (n % 100) // 10
third = (n % 10)

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

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

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


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 = iter(list(input().split()))
  
if next(N) == "7":
  print("Yes")

else print("No")

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

Verdicts: Runtime Error

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

Submission attempts (in order):
from math import gcd

k = int(input())
ans = 0

for i in range(k):
    for j in range(k):
        for ii in range(k):
            ans += gcd(i+1,gcd(j+1,ii+1))

print(ans)


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):
x = input

for i in range(3)
	if x[i] == '7'
  		print("Yes")
    else
    	print("No")



s = input()

for c in s:
	if '7' in s:
		print("Yes")
		break
	else:
		print("No")
		break

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 = map(str, input())
a = str[0]
b = str[1]
c = str[2]

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

x = str(input())
a = x[0]
b = x[1]
c = x[2]

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

x = str(input())
a = x[0]
b = x[1]
c = x[2]

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


Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
n = int(input)
Flag = False
for i in n:
  if i == 7:
    Flag = True
if Flag:
  print("Yes")
else:
  print("No")
  

n = input()
Flag = False
for i in n:
  if i == "7":
    Flag = True
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):
N = input()
if N in '7':
  print('Yes')
else:
  print('No')


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

Runtime Error

Accepted