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

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

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

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

Verdicts: Runtime Error

Runtime Error

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

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

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

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


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

N = input()
if '7' in str(N):
    print("yes")
print("No")

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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

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

N = list(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()

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


N = input()

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


Verdicts: Runtime Error

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

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

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

Verdicts: Wrong Answer

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

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

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

N = str(input())

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

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

N = str(input())

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

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):
print('Yes' if all([i = '7' for i in input()]) else 'No')

print('Yes' if all([i == '7' for i in input()]) else 'No')

print('Yes' if any([i == '7' for i in input()]) 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):
N = inport()
Ans = 0
for i in range(1,N):
  if not i % 3 == 0:
    if not i % 5 == 0:
      Ans = Ans + i
Ans

A = [0, 0, 0]
bool = 0
for i in range(3):
  A[i] = N % 10
  N = (N - A[i])/10
  if A[i] == 7:
    print('Yes')
    bool = 1
    break
if bool == 0:
    print('No')


n = input():
A = [0, 0, 0]
bool = 0
for i in range(3):
  A[i] = N % 10
  N = (N - A[i])/10
  if A[i] == 7:
    print('Yes')
    bool = 1
    break
if bool == 0:
    print('No')

N = int(input())
A = [0, 0, 0]
bool = 0
for i in range(3):
  A[i] = N % 10
  N = (N - A[i])/10
  if A[i] == 7:
    print('Yes')
    bool = 1
    break
if bool == 0:
    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())

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

n = str(input())

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

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


n = str(input())

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


Verdicts: Runtime Error

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

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

def gcd(a,b):
    if a % b == 0:
      return b
    return gcd(b, a%b)

for i in range(1, n+1):
    for j in range(1, n+1):
        x = gcd(i, j)
        for k in range(1, n+1):
            ans += gcd(x, k)
print(ans)

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


Verdicts: Wrong Answer

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

Submission attempts (in order):
N = int(input())
S = list(input())
import itertools as itr

A = {'R':[] ,'G':[] ,'B':[]}
sum = 0

for i in range(N):
    A[S[i]].append(i+1)



for i,j,k in itr.product(A['R'],A['B'],A['G']):
            if not i-j == k-j:
                l = [i,j,k]
                l.sort()
                if not l[1] - l[0] == l[2] - l[1]:
                    sum += 1

print(sum)


N = int(input())

if str(7)in [str(N)[0],str(N)[1],str(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):
def fizzbuzz(n):
    ans = 0
    for i in range(n):
        if (i+1)%3 != 0 and (i+1)%5 != 0:
            ans += i+1
            # print(i+1, ans)
    print(ans)

n = int(input())
fizzbuzz(n)

def lucky(n):
    flag = 'No'
    for i in n:
        if i == '7':
            flag = 'Yes'
    print(flag)

n = input()
lucky(n)

Verdicts: Wrong Answer

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

Submission attempts (in order):
in=input()
for i in range(len(in)):
  if(in[i]=="7"):
    print("Yes")
    exit(0)
print("No")
s = input()
for i in range(len(s)):
  if(s[i]=='7'):
    print("Yes")
    exit(0)
print("No")


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

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

input(nm)
num=int(nm)
num3=num/100
num2=num/10%10
num1=num%10
if(num3==7 or num2==7 or num1==7):
    print("Yes")
else:
    print("No")
    




num=int(input(""))
num3=num//100
num2=num//10%10
num1=num%10
if(num3==7 or num2==7 or num1==7):
    print("Yes")
else:
    print("No")
    



Verdicts: Runtime Error

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

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

if N[-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

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

ret = None
if param in '7':
  ret = 'Yes'
else:
  ret = 'No'
  
print(f'{ret}')

param = input()

ret = None
if '7' in param:
    ret = 'Yes'
else:
    ret = 'No'

print(f'{ret}')

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

[int(N) for c in str(N)]

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

n=input()
for c in n:
 if c=='7': 
   print('Yes')
   break
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())
for i in n:
  if str(i) == 7:
    print('Yes')
    exit()
print('No')


n = list(input())
for i in n:
  if int(i) == 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):
a = str(input())
b = a[0]
c = a[1]
d = a[2]
if b == 7 or c == 7 or d == 7:
    print("Yes")
else:
    print("No")


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


a = [int(input()) for i in range(3)]
b = a[1]
c = a[1]
d = a[2]
if b == 7 or c == 7 or d == 7:
    print("Yes")
else:
    print("No")

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

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


Verdicts: 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):
line = str(input())
print(line in "7")

line = str(input())
if "7" in line:
  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):
r=int(input())
c=0
if r>699 and r<800:
    c+=1
r=r%100
if r>69 and r<80:
    c+=1
r=r%100
if r==7:
    c+=1


if c>0:
    print("Yes")
if c==0:
    print("No")


r=int(input())
c=0
if r>699 and r<800:
    c+=1
r=r%100
if r>69 and r<80:
    c+=1
r=r%10
if r==7:
    c+=1


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

n = int(input())
a = n//100
b = (n-a*100)//10
c = n-a*100-b*10
if (a == 7)or(b == 7)or(c == 7):
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: 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 fizz_buzz(n):
    total = 0
    for i in range(1,n+1):
        if i % 15 == 0:
            continue
        elif i % 3 == 0:
            continue
        elif i % 5 == 0:
            continue
        else:
            total += i
    return total


if __name__ == "__main__":
    n = int(input())
    print(fizz_buzz(n))
    

    

n = input()
n_list = [int(i) for i in list(str(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):

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




arg = int(raw_input())

s = str(arg)
if '7' in s:
    print('Yes')
else:
    print('No')




s = input()
if '7' in s:
    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()
c=0
for x in n:
    if x=="7":
        print("Yes")
        c+=1
        break
    else:
        pass
if c=3:
    print("No")

n = input()
c=0
for x in n:
    if x=="7":
        print("Yes")
        c+=1
        break
    else:
        pass
if c!=3:
    print("No")

n = input()
n_list = []
for i in n:
    n_list.append(i)

print("Yes") if n_list[0] == "7" or n_list[1] == "7" or n_list[2] == "7" 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 sys

N = list(input())

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

import sys

N=list(input())

for i in range(3):
  if (N[i]=='7'):
    print('Yes')
    sys.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 = []
n.add = (int(x) for x in input().split())

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

num = [int(x) for x in input().split()]

for i in range(2):
    if num[i] == 7:
        print("Yes")
        break
    elif num[i] != 7:
        pass
    elif i == 2 & num[i] != 7:
        print("No")

num = [int(x) for x in input().split()]

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

num = [int(x) for x in input().split()]

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

num = [int(x) for x in input()]

for i in range(3):
    if num[i] == 7:
        print("Yes")
        break
    elif i == 2:
        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):
import time
startTime = time.time()

N = 476
s = str(N)
b = "No"
if "7" in s:
    b = "yes"
print(b)

endTime = time.time()
elapsed_time = endTime-startTime
print(f"経過時間：{elapsed_time}")

N = str(input())
b = "No"
if "7" in N:
    b = "yes"
print(b)

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


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

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

n = input()
if int(n[0]) == 7 or int(n[1]) == 7 or int(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):


import math
import itertools

n = int(input())
ans =0
for a,b,c in itertools.product(range(1,n+1),repeat=3):

    g = math.gcd(math.gcd(a,b),c)
    ans +=g
print(ans)
    

S=int(input())
result = 0
while S >0:
    S, m = divmod(S,10)
    if m ==7:
        result = 1
        break
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):
#A
N = list(input())
if any(N) ==7:
    print('Yes')
else:
    print('No')

#A
N = list(input())
if any([int(i) ==7 for i 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):
i=int(input())
print(i%10)

i=input()
if i[2]=='7':
	print('Yes')
elif i[0]=='7':
	print('Yes')
elif i[1]=='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()
print('Yes' if n in '7' else 'No')

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

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
N=int(input())
A=N//100
B=N//10
C=N-(A*100)-(B*100)
if A==7 or B==7 or C==7:
    print("Yes")
else:
    print("No")

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

Verdicts: 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
n = n % 100
b = n // 10
n = n % 10
c = n
if a == 7 | b ==7 | c == 7:
    print("Yes")
else:
    print("No")



n = int(input())

a = n // 100
n = n % 100
b = n // 10
n = n % 10
c = n
if a == 7 | b ==7 | c == 7:
    print("Yes")
else:
    print("No")



n = list(input())

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):
a,b,c = input()

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

a,b,c = input().split()

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

a,b,c = input()

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

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))

DP = [[-10**9 for i in range((N+1)//2)] for i in range(N)]

DP[0][0] = A[0]
for i in range(1,N):
    DP[i][0] = max(DP[i-1][0],A[i])

for i in range(1,N//2-1):
    DP[2*i][i] = DP[2*(i-1)][i-1] + A[2*i]

for i in range(3,N):
    for j in range(i//2-1,(i+1)//2):
        DP[i][j] = max(DP[i-1][j],DP[i-2][j-1]+A[i])

print(DP[N-1][N//2-1])


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):
        if S[i-1] == S[j-1]:
            pass
        else:
            for k in range(j+1, N+1):
                if (S[i-1] != S[k-1]) and (S[j-1] != S[k-1]) and ((j-i) != (k-j)):
                    count += 1

print(count)

N = input()

flag = 0

if N[0] == '7':
    flag = 1
if N[1] == '7':
    flag = 1
if N[2] == '7':
    flag = 1

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):
n = input()
print("Yes" if s.count("7") >= 1 else "No")


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


Verdicts: Runtime Error

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

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

Accepted
Problem: 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_cnt=s.count("R")
g_cnt=s.count("G")
b_cnt=s.count("B")

ans=r_cnt*g_cnt*b*cnt

for i in range(n):
    for d in range(n):
        j=i+d
        k=j+d
        if s[i]!=s[j] and s[j]!=s[k] and s[k]!=s[i]:
            ans-=1

print(ans)

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

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

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

Verdicts: Runtime Error

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

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

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
from sys import stdin
import math
import fractions

n = stdin.readline().rstrip()

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

from sys import stdin
import math
import fractions

n = stdin.readline().rstrip()

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("7" in n)

n = int(input())

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

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

Accepted
Problem: 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=s.count("R")
G=s.count("G")
B=s.count("B")
ans=R*G*B


for i in range(N-2):
  a=s[i]
  for j in range(i+1,N-1):
    if a==s[j]:
      continue
    b=s[j]
    k=2*j-i
    if "R" not in a+b:
      try:
        if s[k]=="R":
          ans-=1
      except:
        pass
      
    if "G" not in a+b:
      try:
        if s[k]=="G":
          ans-=1
      except:
        pass
      
    if "B" not in a+b:
      try:
        if s[k]=="B":
          ans-=1
      except:
        pass

print(ans)


print("Yes" if input().count("7")!=0 else "No")

Verdicts: Runtime Error

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

Submission attempts (in order):
import collections
n=int(input())
s=str(input())
d=collections.defaultdict(list)
count=0
v=collections.defaultdict(int)
for i in range(n):
    d[s[i]].append(i)
for i in range(len(d["R"])):
    for j in range(i,len(d["G"])):
        if j>i:
            for k in range(j,len(d["B"])):
                if k>j:
                    if j-i!=k-j:
                        count+=1
for i in range(len(d["R"])):
    for j in range(i,len(d["B"])):
        if j>i:
            for k in range(j,len(d["G"])):
                if k>j:
                    if j-i!=k-j:
                        count+=1
for i in range(len(d["G"])):
    for j in range(i,len(d["R"])):
        if j>i:
            for k in range(j,len(d["B"])):
                if k>j:
                    if j-i!=k-j:
                        count+=1
for i in range(len(d["G"])):
    for j in range(i,len(d["B"])):
        if j>i:
            for k in range(j,len(d["R"])):
                if k>j:
                    if j-i!=k-j:
                        count+=1
for i in range(len(d["B"])):
    for j in range(i,len(d["R"])):
        if j>i:
            for k in range(j,len(d["G"])):
                if k>j:
                    if j-i!=k-j:
                        count+=1
for i in range(len(d["B"])):
    for j in range(i,len(d["G"])):
        if j>i:
            for k in range(j,len(d["R"])):
                if k>j:
                    if j-i!=k-j:
                        count+=1
                #v[(i,j,k)]+=1
print(count)
#print(v)
#print(len(v))

n=int(input())
c=0
while n!=0:
    s=n%10
    if s==7:
        c=1
        break
    n=n//10
if c==0:
    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):
if __name__ == "__main__":
  n = input()
  if '7' in n:
  	print('yes')
  else:
  	print('no')

if __name__ == "__main__":
  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 ni in n:
    if ni == '7'
        print( 'Yes' )
        quit()
print( 'No' )

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

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

N=input()
x=N.count("7")
print("Yes" if x>0
      else "No")

Verdicts: Runtime Error

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

Submission attempts (in order):
n=int(input())
s=[]
for i in range(1:n+1):
  if i%3==0:
    continue
  elif i%5==0:
    continue
  else:
    s.append(i)
print(sum(s))

n=int(input())
s=[]
for i in range(1:n+1):
  if a%3==0:
    continue
  elif a%5==0:
    continue
  else:
    s.append(i)
print(sum(s))

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

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())
A = list(map(int,input().split()))

DP = [0,0,0]
m = N//2*2
if N%2 == 0:
    for i in range(0,m,2):
        DP[0] += A[i]
        DP[1] += A[i+1]
        DP[1] = max(DP[0],DP[1])

    print(DP[1])

else:
    for i in range(0,m,2):
        DP[0] += A[i]
        DP[1] += A[i+1]
        DP[2] += A[i+2]

        DP[1] = max(DP[0],DP[1])
        DP[2] = max(DP[1],DP[2])

    print(DP[2])


N = input()

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


Verdicts: Runtime Error

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

Submission attempts (in order):
from math import gcd
K=int(input())+1
sum=0
for a in range(1,K):
    for b in range(1,K):
        for c in range(1,K):
            AB = int(gcd(a,b))
            BC = int(gcd(b,c))
            ABC = int(gcd(AB,BC))
            sum = sum+ABC
print(sum)

import math
K=int(input())
sum=0
for a in range(1,K+1):
    for b in range(1,K+1):
        for c in range(1,K+1):
            gcd1 = int(math.gcd(a,b))
            gcd2 = int(math.gcd(b,c))
            
            #print(gcd1,gcd2)
            gcd = gcd1 = int(math.gcd(gcd1,gcd2))

            sum = sum+gcd
print(sum)

from math import gcd
K=int(input())+1
sum=0
for a in range(1,K):
    for b in range(1,K):
        for c in range(1,K):
            AB = gcd(a,b)
            BC = gcd(b,c)
            ABC = gcd(AB,BC)
            sum = sum+ABC
print(sum)

a=input()
txt=str(a)

if int(txt[0])==7 :
    print("Yes")
elif int(txt[1])==7:
    print("Yes")
elif int(txt[2])==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):
input_num = input("Enter a number between 100 and 999: " )
N = int(input_num)
 
if  N > 999 or N < 100:
    print("error")
 
elif str(N)[-1] == '7':
  print("Yes")
elif str(N)[-2] == '7':
  print("Yes")
elif str(N)[-3] == '7':
  print('Yes')
else:
  print('No')

N = int(input())
 
if  N > 999 or N < 100:
    print("error")
 
elif str(N)[-1] == '7':
  print("Yes")
elif str(N)[-2] == '7':
  print("Yes")
elif str(N)[-3] == '7':
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

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

Submission attempts (in order):
N = list(map(int, input()))
cnt = 0
for i in N:
  if i=='7':
    cnt += 1
if cnt==0:
  print('No')
else:
  print('Yes')

N = list(map(int, input()))
cnt = 0
for i in N:
    if i==7:
        cnt += 1
if cnt==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 = str(input())
result = any(True if m== '7' else False for n in N)


if result;
	print('yes')
  
else ;
	print('no')

N = int(input())

if (N - 7)% 10 ==0 or (N//10 - 7) % 10==0 or (N//100 % 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):
List = [int(input()) for i in range(n)]
if(List.index(7)) print('Yes'):
  else: print('No')

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

a, b, c = input()  
if(a=="7" or b=="7" or c=="7"): print("Yes")
elif( a=="7" and b=="7"): print("Yes")
elif( c=="7" and b=="7"): print("Yes")
elif( c=="7" and a=="7"): print("Yes")
elif(a=="7" and b=="7" and 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):
xs = input().split(" ")

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

xs = input()

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

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):
A
#input
N = int(input())

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

#input
N = int(input())

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

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

if a=='7' or b=='7' or c=='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())
N = str(N)
list_N = list(N)
list_N = [int(s) for s in list_N]
print(list_N)

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

N = 123
N_sp = N.split("")

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

N = 127
N = str(N)
list_N = list(N)
list_N = [int(s) for s in list_N]
print(list_N)

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

N = int(input())
N = str(N)
list_N = list(N)
list_N = [int(s) for s in list_N]
print(list_N)

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


N = input()
list_N = list(N)
list_N = [int(s) for s in list_N]

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


Verdicts: 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=int(input())
for i in range(3):
    if (N%10)==7:
        break
    N=N//10
if N!=0:
    print("yes")
else:
    print("No")

N=int(imput())
for i in range(3):
    if (N%10)==7:
        break
    N=N//10
if N!=0:
    print("yes")
else:
    print("No")


N=int(input())
for i in range(3):
    if (N%10)==7:
        break
    N=N//10
if N!=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):
a, b, c = input()
if a == 7:
    print('Yes')
elif b == 7:
    print('Yes')
elif c == 7:
    print('Yes')
else:
    print('No')

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

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

#N, K, C = map(int, readline().split())  int
#S = read().rstrip().decode()  string
# N =int(read())


x=read()
if '7' in x:
	print("Yes")
else:
	print("No")

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

#N, K, C = map(int, readline().split())  int
#S = read().rstrip().decode()  string
# N =int(read())


x=read()
if ''7' in x:
	print("Yes")
else:
	print("No")


x=input()

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


Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
a = input()
f=0
for i in a:
  if(a=='7'):
    f = 1
    break
if(f==0):print("No")
else:print("Yes")

a = input()
f=0
for i in a:
    if(i=='7'):
        f = 1
        break
if(f==0):print("No")
else:print("Yes")


Verdicts: Wrong Answer

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

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

n=int(input())
s=input()
a = [str(c) for c in s]
ans=0
r=0
g=0
b=0
er=0
for i in range(n):
    if a[i]=='R':
        r+=1
        ans=ans+g*b
    elif a[i]=='G':
        g+=1
        ans=ans+r*b
    else:
        b+=1
        ans=ans+g*r
for i in range(1,n+1//3):
    for j in range(i,n):
        k=j+i
        l=k+i
        if l<n:
            if a[l]!=a[j] and a[j]!=a[k] and a[k]!=a[l]:
                er+=1
print(ans-er)

s=(input())
a = [int(c) for c in s]
if a[0]==7 or a[1]==7 or a[2]==7:
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Runtime Error

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

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

n  = input()

if (int(n[0]) != 7 and int(n[1]) != 7 and int(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())
if n%100 == 7:
  print(‘Yes’)
elif (n//10)%10 == 7:
  print(‘Yes’)
elif n//100 == 7:
  print(‘Yes’)
else:
  print(‘No’)


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

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

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

N= int(input())
list(N)

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

N=input()
n=list(N)
x= '7' in n
if x is True:
  print("yes")
else:
  print("no")
  

N=input()
n=list(N)
x= '7' in n
if x is True:
  print("yes")
else:
  print("no")
  

N=input()
n=list(N)
x= '7' in n
if x is True:
  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):
a=input()
if(list(a).count('7')>=0):

	print("YES")
else:
	print("NO")
  


a=input()
if(list(a).count('7')>=0):
  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: 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 = str(input())
seven = "7"
if seven 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):
#JMD


 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
t=1
for tt in range(t):
    n=str(input())
    if '7' in n:
        print("YES")
    else:
        print("NO")
    #n,k,s= map(int, sys.stdin.readline().split(' '))
    #a=list(map(int,sys.stdin.readline().split(' ')))
    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

#JMD


 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=1
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
t=1
for tt in range(t):
    n=str(input())
    if '7' in n:
        print("Yes")
    else:
        print("No")
    #n,k,s= map(int, sys.stdin.readline().split(' '))
    #a=list(map(int,sys.stdin.readline().split(' ')))
    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

#JMD


 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
t=1
for tt in range(t):
    n=str(input())
    if '7' in n:
        print("Yes")
    else:
        print("No")
    #n,k,s= map(int, sys.stdin.readline().split(' '))
    #a=list(map(int,sys.stdin.readline().split(' ')))
    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()


Verdicts: Wrong Answer

Runtime Error

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

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

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

a,b,c = map(int,input())

if a*b*c == 0 :
  print("No")
elif a*b*c%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 = str(input())
print("Yes","No")[N[0]!="7" and N[1]!="7" and N[2]!="7"]

N = str(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 "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):
#!usr/bin/env pypy3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS():return [list(x) for x in sys.stdin.readline().split()]
def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res
def IR(n):
    return [I() for i in range(n)]
def LIR(n):
    return [LI() for i in range(n)]
def SR(n):
    return [S() for i in range(n)]
def LSR(n):
    return [LS() for i in range(n)]

sys.setrecursionlimit(1000000)

def main():
    A = LI()
    print(A.index(0)+1)

main()


#!usr/bin/env pypy3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect


def LI(): return [int(x) for x in sys.stdin.readline().split()]


def I(): return int(sys.stdin.readline())


def LS(): return [list(x) for x in sys.stdin.readline().split()]


def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res


def IR(n):
    return [I() for i in range(n)]


def LIR(n):
    return [LI() for i in range(n)]


def SR(n):
    return [S() for i in range(n)]


def LSR(n):
    return [LS() for i in range(n)]


sys.setrecursionlimit(1000000)


def main():
    a = list(input())
    print("Yes" if "7" in a else "No")


main()


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

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

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

s = str(input())
if s[0] is "7":
  print("Yes")
elif s[1] is "7":
  print("Yes")
elif s[2] is "7":
  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())
s=input()
lst=list(s)
r=[i for i,j in enumerate(lst) if j=="R"]
g=[i for i,j in enumerate(lst) if j=="G"]
b=[i for i,j in enumerate(lst) if j=="B"]
comb=len(r)*len(g)*len(b)
out=0
for i in r:
  for j in g:
    for k in b:
      if (i+j)==2*k or (j+k)==2*i or (k+i)==2*j:
        out+=1
print(comb-out)


from collections import deque
d=deque(input())
if "7" in d:
  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,m,o=input().split()

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

t=input()
n=t[0]
m=t[1]
o=t[2]

if n != "7" and m != "7" and o !="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()
for idx in range(len(N)):
  if N[idx] == 7:
    print('Yes')
    break
else:
  print('No')


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

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


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

K = int(input())
sumGCD = K * K * K
for a in range(2, K + 1, 1):
    for b in range(2, K + 1, 1):
        for c in range(2, K + 1, 1):
            arr = [a, b, c]
            gcdNum = math.gcd(math.gcd(a, b), c)
            
            # print(arr)
            # print(gcdNum)
            sumGCD += gcdNum - 1
print(sumGCD)


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


Verdicts: Wrong Answer

Accepted