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):
a, b, c = input()
'Yes' if(a=='7' or b=='7' or c=='7') else 'No'

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

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
s = input()
f = False
for i in s:
    if i == '7':
        f = True
	break

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

s = input()
f = False
for i in s:
    if i == '7':
        f = True
        break

if f:
    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('7' in input())

print('7' in input())

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

x = input()
if x.count("7"):
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

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

Submission attempts (in order):
num = int(input())
list = list(num)
count = 0

for i in range(3):
  if list[i] == 7:
    print("Yes")
    break
  else:
    count += 1
    
if count == 3:
  print("No")
else:
  None
      

num = int(input("num: "))
list = list(str(num))
count = 0

for i in range(3):
  if list[i] == "7":
    print("Yes")
    break
  else:
    count += 1

if count == 3:
  print("No")
else:
  None

num = int(input())
list = list(str(num))
count = 0

for i in range(3):
  if list[i] == "7":
    print("Yes")
    break
  else:
    count += 1

if count == 3:
  print("No")
else:
  None

Verdicts: Runtime Error

Wrong Answer

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

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

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

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


Verdicts: Runtime Error

Runtime Error

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

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

a = list(input())

if "7" in a:
  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 python3

import re

x = str(input())

if len(x) == 3:
    if re.match("7", x):
        print("Yes")
    else:
        print("No")

#!/usr/bin/env python3

import re

x = str(input())

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

#!/usr/bin/env python3

import re

if int(input()) > 100 and int(input()) <= 999:
    x = str(input())
else:
    print("No")
    exit

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

#!/usr/bin/env python3

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

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

Submission attempts (in order):
N = input()
ans = "No"
for i in range(0,2):
  if N[i] == "7":
    ans = "Yes"
print(ans)    

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


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


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

a = [x for x in input()]
for i in range(len(a)):
    if a[i] == '7':
        a[i] = True
    else:
        a[i] = False
if any(a):
    print("Yes")
else:
    print("No")        
    

Verdicts: Runtime Error

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

Submission attempts (in order):
N = input()
print('7' in N)

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

Verdicts: Wrong Answer

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

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

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):
def u(a,b):
  if(a<b):
    z = b
    b = a
    a = z
  r = a % b
  while(r!=0):
    a = b
    b = r
    r = a % b
  return b
 
l = int(input())
s = 0
for i in range(1,l+1):
  for i2 in range(1,l+1):
    z = u(i,i2)
    for i3 in range(1,l+1):
      z2 = u(z,i3)
      s+=z2
print (s)

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

def u(a,b):
  if(a<b):
    z = b
    b = a
    a = z
  r = a % b
  while(r!=0):
    a = b
    b = r
    r = a % b
  return b
 
l = int(input())
s = 0
for i in range(1,l+1):
  for i2 in range(1,l+1):
    z = u(i,i2)
    for i3 in range(1,l+1):
      z2 = u(z,i3)
      s+=z2
print (s)

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

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

yesno = "No"

if int(n/100)==7:
  yesno = "Yes"
if n$10==7:
  yesno = "Yes"
n = n%100
if int(n/10)==7:
  yesno = "Yes"
print(yesno)

n = int(input())
 
yesno = "No"
 
if int(n/100)==7:
  yesno = "Yes"
if n%10==7:
  yesno = "Yes"
n = n%100
if int(n/10)==7:
  yesno = "Yes"
print(yesno)

Verdicts: Runtime Error

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

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


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

Verdicts: Runtime Error

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

Submission attempts (in order):
a=int(input())
s=str(a)
l=list(s)
y="7"
if y in l==1:
    print("Yes")
else:
    print("No")

a=int(input())
s=str(a)
l=list(s)
y="7"
if y in l:
    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())
f=0
c=0
while n>0:
  c=n%10
  if c==7:
    f=1
    print("Yes")
if f==0:
  print("No")
  

n=int(input())
f=0
while n>0:
  c=n%10
  if c==7:
    f=1
    print("yes")
    n=n/10
if f==0:
  print("no")
  

n=int(input())
f=0
while n>0:
      c=n%10
      if  c==7:
            f=1
            print("Yes")
            break
      n=int(n/10)
if f==0:
      print("No")

Verdicts: Time Limit Exceeded

Time Limit Exceeded

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

Submission attempts (in order):
N=input()
n=1
for i in range(2):
  if N[i] == "7":
    print("Yes")
    n=0
    break
if n==1:
  print("No")

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

num=int(input())
list_num=list(input)
for i in range(list_num):
  if i=7:
    return Yes
    
return No
  
    
  



N=input()
if N.count('7')==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):
input_string = input()
yes = 0
for n in input_string:
  if n == '7':
    print('Yes')
    yes = 1
    break
if yes:
  print('No')

input_string = input()
while n < len(input_string):
  if n == '7':
    print('Yes')
    n += 1
    break
  

input_string = input()
yes = 0
for n in input_string:
  if n == '7':
    print('Yes')
    yes = 1
    break
if not yes:
  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):
R=input()
print("yes" if R[0]=="7" else "yes" if R[1]=="7" else "yes"if R[2]=="7"else "no")

R=input()
print("yes" if R[0]=="7" else "yes" if R[1]=="7" else "yes"if R[2]=="7"else "no")

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

if n.count(7) != 0:
  print('Yes')
  exit()
  
print('No')

n = str(input())

if n.count('7') != 0:
  print('Yes')
  exit()
  
print('No')


Verdicts: Runtime Error

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

Submission attempts (in order):
import sys
N = input()
for i in range(3):
  if N[i]==7:
    print('Yes')
    sys.exit()

print('No')



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



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

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

print('No')

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

Verdicts: Wrong Answer

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

N = input()

print("Yes" if N.contains("7") else "No")

N = input()
print("Yes" if N.__contains__("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):
l = list(input())
if 7 in l:
         print('Yes')
else:
         print('No')

l = input()
if l[0] == '7' or l[1] == '7' or l[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):
s=input()
if "7" in s:
   print("YES")
else:
  print("NO")
  

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


Verdicts: Wrong Answer

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

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

if x % 3 == 0 and x % 5 == 0:
    print('FizzBuzz')
elif x % 3 == 0 and x % 5 != 0:
    print('Fizz')
elif x % 3 != 0 and x % 5 == 0:
    print('Buzz')
else:
    print(x)
    

x = input()
x = [int(d) for d in str(x)]

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


Verdicts: Wrong Answer

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

Submission attempts (in order):
def index(n):
    result = "OK" if '7' in n else "NO"
    return result
print(index(str(input())))

def index(n):
    result = "Yes" if '7' in n else "No"
    return result

print(index(str(input())))

Verdicts: Wrong Answer

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

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



N = input()

N1 = N[]
print(N1)
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):
x = input()
for i in range(len(x)):
  if x[i] == "7":
    return "Yes"

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

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

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

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

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

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



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

n = input()

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

Verdicts: Runtime Error

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

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

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

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

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

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


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


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

N = input()
 
a = int(N/100)
b = int( (N-a*100)/10 )
c = int(N-a*100-b*10)
 
if( a == 7 or b == 7 or c == 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

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
#include <bits/stdc++.h>

#define __STDC_FORMAT_MACROS
#define p64 PRId64


#define REP(i, n) FOR (i, 0, n)
#define ALL(f, x, ...)                                                         \
    ([&] (decltype ((x)) ALL) {                                                \
        return (f) (begin (ALL), end (ALL), ##__VA_ARGS__);                    \
    }) (x)

using namespace std;
using ll = int64_t;

int main() {
    string line;
    cin >> line;
    cout << (ALL (find, line, '7') == line.end() ? "No" : "Yes") << endl;
    return 0;
}


def main():
    line = str(input())
    print("No" if line.find("7") == -1 else "Yes")
    return


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

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

N = int(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

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 = int(input())
l = list(str(a))
for s in l:
  if s == '7':
    print('Yes')
    break
  else if l[2] != '7':
    print('No')

a = int(input())
l = list(str(a))
for s in l:
  if s === '7':
    print('Yes')
    break
  else if l[2] != '7':
    print('No')

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

a=str(input())
l1 = [1,2,3]
for i in a:
  for j in l1:
  	if i == '7':
      print('Yes')
        break
    else if l1 == 3:
      print('No')

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

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

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

a = str(input())
l = list(a)
for s in l:
  if s === '7':
    print('Yes')
    break
  else if l[2] != '7':
    print('No')

a=list(str(input()))
l=[0,1,2]
for i in a:
  for j in l:
    if i == '7':
      print('Yes')
      break
    else if l == 2:
      print('No')

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

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

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

print("7" in input())

print("Yes" if "7" in input() 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):
s=input()
if s.find('7'):
    print("No")
else:
    print("Yes")




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


Verdicts: Wrong Answer

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

Submission attempts (in order):
N = int(input())
S = list(input())
f=0
ijk = list()
for i in range(N):
    for j in range(N):
        for k in range(N):
            if(k>j>i):
                if(k == j+(j-i)):
                    pass
                elif(i == j-(j-k)):
                    pass
                else:
                    ijk.append([i+1,j+1,k+1])
# print(S)


for i in range(len(ijk)):
    if(S[ijk[i][0]-1]== S[ijk[i][1]-1]):pass
    elif(S[ijk[i][0]-1]== S[ijk[i][2]-1]):pass
    elif(S[ijk[i][1]-1]== S[ijk[i][2]-1]):pass
    else:f+=1
print(f)

N = str(input())
array = list(map(str,N))
i= 0
while all:
    if(array[i]=='7'):
        print("Yes")
        break
    if(i==2):
        print("No")
        break
    i+=1


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

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

N = str(input())

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

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
import sys
input = sys.stdin.readline

N = int(input())
I = input()

R =0
G =0
B =0
for i in range(N):
    if (I[i] == 'R'):
        R+=1
    if (I[i] == 'G'):
        G+=1
    if (I[i] == 'B'):
        B+=1


sum = R * G * B
count = 0

for i in range(N):
    for j in range(i+1,N):
        if I[i] != I[j]:
            k = j + j - i
            if k >= N:
                continue
            if I[i] != I[k] and I[j] != I[k]:
                count += 1

print(sum - count)

import sys
input = sys.stdin.readline

N = int(input())
I = input()

R =0
G =0
B =0
for i in range(N):
    if (I[i] == 'R'):
        R+=1
    if (I[i] == 'G'):
        G+=1
    if (I[i] == 'B'):
        B+=1


sum = R * G * B
count = 0

for i in range(N):
    for j in range(i+1,N):
        if I[i] != I[j]:
            k = j + j - i
            if k >= N:
                continue
            if I[i] != I[k] and I[j] != I[k]:
                count += 1

print(sum - count)

import sys
input = sys.stdin.readline

def main():

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


main()

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 = list(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):
n =list(map(int, input().strip()))
if 7 in n:
  print(‘Yes’)
else:
  print(‘No’)

n = input().strip()
m = int(n)
a = int(len(m))
for i in range(a):
  if i == 7:
    print('Yes')
  else:
    print('No')

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

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

Verdicts: Runtime Error

Runtime Error

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

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
def main():
    N = int(input())
    print(sum(i for i in range(N+1) if i % 3 == 0 or i % 5 == 0))
if __name__ == '__main__':
    main()


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

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


n = list(int,input())
if 7 in n:
  print('Yes')
elif:
  print('No')


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
from sys import stdin, stdout
def main():
    n=stdin.readline().rstrip()
    if '7' in n:
        print('YES')
        return
    print('NO')
    return
main()


from sys import stdin, stdout
def main():
    n=stdin.readline().rstrip()
    if '7' in n:
        print('Yes')
        return
    print('No')
    return
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):
import math

n = (int)(input())

ret = False
while n > 0:
    if n % 10 == 7:
        ret = True
        break
    n = math.floor(n / 10)

print("{}".format(ret))

import math

n = (int)(input())

ret = "No"
while n > 0:
    if n % 10 == 7:
        ret = "Yes"
        break
    n = math.floor(n / 10)

print("{}".format(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()
i = 3
j = 5
k = 15
total3 = 0
total5 = 0
total15 = 0
while i<=N:
  total3 += i
  i = i + 3
while j<=N:
  total5 += j
  j = j + 5
while k<=N:
  total15 += k
  k = k + 15
N_sum = (1 + N) * N / 2

ans = N_sum - i - j + k

print(ans)


N=input()
s=str(N)
s1=s[-1]
s2=s[-2]
s3=s[-3]
if s1=='7':
    print('Yes')
    elif s2=='7':
          print('Yes')
        elif s3=='7':
              print('Yes')
            else:
                print('No')
                


N=input()
s=str(N)
s1=s[-1]
s2=s[-2]
s3=s[-3]
if s1==7:
    print('Yes')
    elif s2==7:
          print('Yes')
        elif s3==7:
              print('Yes')
            else:
                print('No')
                

# -*- coding: utf-8 -*-
N=input()

s=str(N)
s1=s[-1]
s2=s[-2]
s3=s[-3]
if s1==7:
  print('Yes')
  elif s2==7:
    print('Yes')
    elif s3==7:
      print('Yes')
      else:
        print('No')
      

N=input()
s=str(N)
s1=s[-1]
s2=s[-2]
s3=s[-3]
if s1 == '7':
    print('Yes')
elif s2 == '7':
    print('Yes')
elif s3=='7':
    print('Yes')
else:
    print('No')
                

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

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

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

Verdicts: Runtime Error

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

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

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

n=str(input())
a=0
for i in range(len(n)):
    if int(n[i])==7:
        a=1
        break
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 = 0
k = int(input())

def gcd(p,q):
    if p%q == 0:
        return q
    return gcd(q, p%q)
    
for a in range(1,k+1):
    for b in range(1,k+1):
        for c in range(1,k+1):
            s += gcd(gcd(a,b),c)
            
print(s)

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 = [i for i in raw_input()]
print "Yes" if "7" in n else "No"


n = [i for i in 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):
num = map(int,input().split())
for i in num:
  if num[i] == 7:
    break
    print("Yes")
else:
  print("No")

nums = [int(i) for i in list(input())]
for i in nums:
  if  i == 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):
if 7 in N
print('Yes')
if not 7 in N
print('No')


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

N=int(input())
a=n//3
b=n//5
c=n//15
A=3*a*(a+1)//2+5*b*(b+1)//2-15*c*(c+1)//2
print(n*(n+1)//2-A)

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


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

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

n = list(map(int, input().split()))
for i in range(3):
  if n[i] == 7:
    print('Yes')
  else:
    print('No')

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

n1, n2, n3 = map(int, input().split())
n = [n1, n2, n3]
if 7 in n:
    print('Yes')
else:
    print('No')

n = list(map(int, input().split()))
for i in range(3)
if n[i] == 7:
  print('Yes')
else:
  print('No')

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

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

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


Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

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

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


n = list(input())
ans = 'No'
for i in range(len(n)):
  if n[i] = '7':
    ans = 'Yes'
    break
print(ans)


n = list(input())
ans = 'No'
for i in range(len(n)):
  if n[i] == '7':
    ans = 'Yes'
    break
print(ans)


Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
x=input()
for y in x:
  if y=="7":
    return "Yes"
return "No"


x=input()
for y in x:
  if y=="7":
    print("Yes")
  else:
	print("No")


x=str(N)
for y in x:
  if y=="7":
    return "Yes"
return "No"

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


x=input()
z="No"
for y in x:
  if y=="7":
    z="Yes"
print(z)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

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

Submission attempts (in order):
import sys

input = sys.stdin.readline

N = input().split()

for letter in N:
    if letter == '7':
        print('Yes')
        exit()
print('No')

import sys

input = sys.stdin.readline

N = input().split()

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

import sys

input = sys.stdin.readline

N = input().strip()

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

Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
tmp = input().split()
N1 = int(tmp[0][0])
N2 = int(tmp[0][1])
N3 = int(tmp[0][2])

if N1 == 7 or N2 == 7 or N3 == 7:
    print('yes')
else:
    print('No')
    


tmp = input().split()
N1 = int(tmp[0][0])
N2 = int(tmp[0][1])
N3 = int(tmp[0][2])

if N1 == 7 or N2 == 7 or N3 == 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()

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

a = input()

for i in a:
    if i == "7":
        ans = "Yes"
        break
    else:
        ans = "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):
n = int( input() )

while n > 0:
    if n%10 == 7:
        print("YES")
        exit()
    else:
        n = n // 10

print("NO")

n = int( input() )

while n > 0:
    if n%10 == 7:
        print("YES")
        exit()
    else:
        n = int( n / 10 )

print("NO")

n = int( input() )

while n > 0:
    if n%10 == 7:
        print("YES")
        exit()
    else:
        n = int( n / 10 )

print("NO")

n = int( input() )
flag = 0

while n > 0:
    if n%10 == 7:
        flag = 1
        print("YES")
        break
    else:
        n = int( n / 10 )

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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

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

a = input()
if "7" in a:
  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 = int(input())
toprint = False
while N > 0 :
 	last_digit = a % 10
 		a = a // 10
	if last_digit == 7 :
   		toprint = True
 
	elif toprint == True :
 		print ("Yes")
	else :
 		print ("No")

a = int(input())
toprint = False
while a > 0 :
 	last_digit = a % 10
 	a = a // 10
 	if last_digit == 7 :
   		toprint = True
 
	if toprint == True :
 		print ("Yes")
	else :
 		print ("No")

a = int(input())
toprint = False
while a > 0 :
 last_digit = a % 10
 a = a // 10
 if last_digit == 7 :
   toprint = True
 
if toprint == True :
 print ("Yes")
else :
 print ("No")

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
t=input()
if t.count("7")!= 0:
    print("YES")
else:
    print("NO")


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


t=input()
if t.count("7")!= 0:
    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):
x = int(input())
j = False
for i in range(len(x)):
  if x[i] == 7:
    j = True
if j:
  print('Yes')
else:
  print('No')

x = int(input())
j = False
for i in range(len(x))
  if x[i] == 7:
    j = True
if j:
  print('Yes')
else:
  print('No')

x = input()
j = False
for i in range(len(x)):
  if x[i] == '7':
    j = True
if j:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Runtime Error

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

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

n = list(str(input()))
flag = True 
for i in range(len(n)):
  if n[i] == '7':
    print('YES')
    flag = False 
    break
if flag:
  print('NO')

n = input()
if '7' in n:
  print('YES')
else:
  print('NO')

n = list(input())
if '7' in n:
  print('YES')
else:
  print('NO')

 = list(input())
if '7' in n:
  print('YES')
else:
  print('NO')


n = str(input())
for i in range(len(n)):
  if n[i] == '7':
    print('YES')
    exit()
print('NO')

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

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

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

for i in range(len(n)):
  if n[i]=="7":
    print("Yes")
  if i == n-1:
    print("No")


n = str(input())

for i in range(len(n)):
  if n[i]=="7":
    print("Yes")
  if i == len(n)-1:
    print("No")

n = str(input())

for i in range(len(n)):
  if n[i]=="7":
    print("Yes")
    break
  if i == len(n)-1:
    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):
def compute_gcm(x, y):
  if x == y:
    return x
  if x < y:
    s = x
    x = y
    y = s
  if x==1:
    return 1
  a = x%y
  if a == 0:
    return y
  return compute_gcm(y, a)

#print(compute_gcm(4,compute_gcm(2,2)))
k = int(input())
res = k**3-(k-1)**3
same1 = 0
same2 = 0
rate = [6,3,1]
for p in range(2,k+1):
  for q in range(p, k+1):
    same1 = int(p==q)
    gcm1 = compute_gcm(q,p)
    for r in range(q, k+1):
      same2 = int(q==r)
      gcm = compute_gcm(r,gcm1)
      res += gcm*rate[same1+same2]
      
print(res)

data = input().split("")
res = "No"
for i in data:
  if i=="7":
    res = "Yes"
    break
print(res)   
 

data = input()
#print(data)
res = "No"
for i in range(len(data)):
  if data[i]=="7":
    res = "Yes"
    break
print(res)   

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

N = str(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:
    print('Yes')
elif N[1] == 7:
    print("Yes")
elif N[2] == 7:
    print("Yes")
else:
    print("No")

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

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

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

print("No")

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

Verdicts: Runtime Error

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

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


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

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


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):
x = 117
if '7' in x
    print('yes')
else:
    print('no')

x = 117
if '7' in x:
    print('yes')
else:
    print('no')

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

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

Wrong Answer

Runtime Error

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

Submission attempts (in order):
import math
x=input()
y=float(x)
if math.floor(y/100)==7:
    print("Yes")
elif math.floor(y/10)==7:
    print("Yes")
elif math.floor(y)==7:
    print("Yes")
else:
    print("No")

x=input()
y=str(x)
if int(y[-1])==7:
   print("Yes")
elif int(y[-2])==7:
   print("Yes")
elif int(y[-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):
from math import gcd

k = int(input())
ans = 0
for x in range(1, k + 1):
    for y in range(1, k + 1):
        for z in range(1, k + 1):
            ans += gcd(gcd(x, y), z)
print(ans)


num = int(input())

N = list(str(num))

keta = len(N)

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


Verdicts: Wrong Answer

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

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

if n in 7:
  print("Yes")
elif n not in 7:
  print("No")

N = input()

if N.count("7") >= 1:
  print("yes")
else:
  print("No")

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

n = int(input())

counted = n.count(7)

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

N = int(input())

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

N =input()
if N.count("7") >= 1:
  pirnt("Yes)
else:
	print("No"9

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

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

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

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

Submission attempts (in order):
number = map(int, input().split()) 

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

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

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

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

n =int(input())

c = 1
for i in str(n):
    if i == str(7):
        print('Yes')
        c = 0
        break
    else:
        pass
if c != 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):
print("YNeos"["7" in input()::2])

print("NYoe s"["7"in input()::2])

Verdicts: Wrong Answer

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

Submission attempts (in order):
x = False
N = str(input())
for i in N:
  if i == 7:
    x = True
if x == True:
  print("Yes")

N = str(input())
x = False
for i in N:
    i = int(i)
    if i == 7:
        x = True
if x:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

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

Submission attempts (in order):
n = int(input())
flag = 0
for i in range(3):
  t = n%10
  if t == 7:
    print("YES")
    flag = 1
    break
  n = n/10
if flag == 0:
  print("NO")

n = int(input())
flag = 0
for i in range(3):
  t = n%10
  if t == 7:
    print("YES")
    flag = 1
    break
  n = int(n/10)
if flag == 0:
  print("NO")


n = int(input())
flag = 0
for i in range(3):
  t = n%10
  if t == 7:
    print("Yes")
    flag = 1
    break
  n = int(n/10)
if flag == 0:
  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(map(int, input().split())) for _ in range(2)]

print(n)

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

ruisekiR = [0] * (n+1)
ruisekiG = [0] * (n+1)
ruisekiB = [0] * (n+1)

for i,c in enumerate(s):
    ruisekiR[i+1] = ruisekiR[i] + ( 1 if c == "R" else 0)
    ruisekiG[i+1] = ruisekiG[i] + ( 1 if c == "G" else 0)
    ruisekiB[i+1] = ruisekiB[i] + ( 1 if c == "B" else 0)

ans = 0

for i in range(n-2):
    for j in range(i+1, n-1):
        if s[i] == s[j]:
            continue
        c = "R"
        if "R" in (s[i], s[j]):
            c = "G"
            if "G" in (s[i], s[j]):
                c = "B"

        if c == "R":
            ans += (ruisekiR[n] - ruisekiR[j])
          elif c == "G":
              ans += (ruisekiG[n] - ruisekiG[j])
            else:
                ans += (ruisekiB[n] - ruisekiB[j])

        if j+(j-i)<n and s[j+(j-i)] == c:
            ans -= 1

print(ans)

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

ruisekiR = [0] * (n+1)
ruisekiG = [0] * (n+1)
ruisekiB = [0] * (n+1)

for i,c in enumerate(s):
    ruisekiR[i+1] = ruisekiR[i] + ( 1 if c == "R" else 0)
    ruisekiG[i+1] = ruisekiG[i] + ( 1 if c == "G" else 0)
    ruisekiB[i+1] = ruisekiB[i] + ( 1 if c == "B" else 0)

ans = 0

for i in range(n-2):
    for j in range(i+1, n-1):
        if s[i] == s[j]:
            continue
        c = "R"
        if "R" in (s[i], s[j]):
            c = "G"
            if "G" in (s[i], s[j]):
                c = "B"

        if c == "R":
            ans += (ruisekiR[n] - ruisekiR[j])
        if c == "G":
            ans += (ruisekiG[n] - ruisekiG[j])
        if c == "B":
            ans += (ruisekiB[n] - ruisekiB[j])

        if j+(j-i)<n and s[j+(j-i)] == c:
            ans -= 1

print(ans)

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
import math
K = int(input())
S = 0
for a in range(1,K+1):
    for b in range(1,K+1):
        for c in range(1,K+1):
            S += math.gcd(math.gcd(a,b),c)
print(S)

A = input()
Alist = list(A)
j=0
for i in range(3):
    if Alist[i] == '7':
        j+=1
if j>=1:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

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

Submission attempts (in order):
N = list(map(int, input()))
ck = 'No'
for i in N:
  if N == 7:
    ck = 'Yes'
print(ck)

N = int(input())
N = str(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):
s = str(input())

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

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


s = str(input())

n = len(s)
cnt = 0
for i in range(n):
    if s[i] == '7':
        cnt = 1
        break

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
n = input()
if "7" in n:
    print("Yss")
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):
k = int(input())

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

ans = 0

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

print(ans)


n = input()

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


Verdicts: Wrong Answer

Accepted