Problem:


Score : 100 points

Problem Statement

Given is a three-digit integer N. Does N contain the digit 7?

If so, print Yes; otherwise, print No.

Constraints

100 \leq N \leq 999

Input

Input is given from Standard Input in the following format:

N

Output

If N contains the digit 7, print Yes; otherwise, print No.

Sample Input 1

117

Sample Output 1

Yes

117 contains 7 as its last digit.

Sample Input 2

123

Sample Output 2

No

123 does not contain the digit 7.

Sample Input 3

777

Sample Output 3

Yes



Sample input:
117


Sample output:
Yes

Submission status: Runtime Error

Solution code:
n = int(input())

counted = n.count(7)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# A - Lucky 7
N = input()
if '7' in a:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

from collections import Counter
rgb = dict(Counter(s))
if len(rgb) < 3:
    print('0')
else:
    p = rgb['R'] * rgb['G'] * rgb['B']
    for i in range(1, (len(s)-1)//2 + 1):
        for j in range(len(s) - 2*i):
            if {s[j], s[j + i], s[j + 2*i]} == {'R', 'G', 'B'}:
                p -= 1
    print(p)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

from collections import Counter
rgb = dict(Counter(s))
p = rgb['R'] * rgb['G'] * rgb['B']
for i in range(1, len(s)//2):
    for j in range(len(s) - 2*i):
        if {s[j], s[j + i], s[j + 2*i]} == {'R', 'G', 'B'}:
            p -= 1
print(p)

Submission status: Runtime Error

Solution code:
N = input()
a = N[0]
b = N[1]
c = N[2]
d = 'No'
for i in (a,b,c):
  if i % 7 == 0:
    d ='Yes'
    break
print(d)

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

Solution code:
import itertools


input()
s = list(input())
r =[]
g =[]
b =[]
n= len(s)
ans =0
for i in range(n):
    if s[i]== "R":
        r.append(i+1)
    elif s[i]== "G":
        g.append(i+1)
    else:
        b.append(i+1)

for ri , gi in itertools.product(r,g):
    rg=gi-a
    if rg+gi in b:
        ans -=1
    if  ri-rg in b:
        ans -=1
    if (gi+ri)/2 in b:
        ans -=1

ans += len(r)*len(b)*len(g)
print(ans)

Submission status: Runtime Error

Solution code:
x = input

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

Submission status: Runtime Error

Solution code:
N = str(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
keta1 = int(str(n)[0])
keta2 = int(str(n)[1])
keta3 = int(str(n)[2])
if (keta1 * keta2 * keta3 + 7) // 7 != o:
  print("No")

else:
  print("Yes")

Submission status: Runtime Error

Solution code:
n = int(input())
keta1 = int(str(n)[0])
keta2 = int(str(n)[1])
keta3 = int(str(n)[2])
if keta1 * keta2 * keta3 // 7 != o:
  print("No")

else:
  print("Yes")

Submission status: Runtime Error

Solution code:
N = input()

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

Submission status: Runtime Error

Solution code:
number = input()
if number[1] == 7 or number[2] == 7 or number[3] == 7:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

Solution code:
N = input()
judge = "No"
for i in 3:
  if N[i] == 7:
    judge = "Yes"
    break
print(judge)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = input()
y = x % 7
if y == 0:
	print('Yes')
else:
	print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
if int(N[0]) == 7, or int(N[1]) == 7, int(N[2]) == 7:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
if N[0] == 7, or N[1] == 7, N[2] == 7:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
i = 0
while (i < 3):
  if (N[i] == 7):
    print("Yes")
    break
  if (i == 2):
    print("No")
  i ++

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
dict={}
dict["R"]=[]
dict["G"]=[]
dict["B"]=[]
res=0
for i in range(n):
  if s[i]=="R":
    dict["R"].append(i)
  elif s[i]=="G":
    dict["G"].append(i)
  elif s[i]=="B":
    dict["B"].append(i)
  else:
    raise Exception
for r in dict["R"]:
  for g in dict["G"]:
    if r<g:
      for b in dict["B"]:
        if g<b:
          if 2*r!=g+b and 2*g!=r+b and 2*b!=r+g:
            res+=1           
print(res)

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
dict={}
dict["R"]=[]
dict["G"]=[]
dict["B"]=[]
res=0
for i in range(n):
  if s[i]=="R":
    dict["R"].append(i)
  elif s[i]=="G":
    dict["G"].append(i)
  elif s[i]=="B":
    dict["B"].append(i)
  else:
    raise Exception
for r in dict["R"]:
  for g in dict["G"]:
      for b in dict["B"]:
        if 2*r!=g+b and 2*g!=r+b and 2*b!=r+g:
          res+=1           
print(res)

Submission status: Runtime Error

Solution code:
import sys
N = int(input)

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

print('No')

Submission status: Runtime Error

Solution code:
S = input()
if S.count(7):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
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])

Submission status: Runtime Error

Solution code:
n=int(input())
num=map(int,str(n))
if num[-1]=="7" or num[-3]=="7" or num[-2]=="7":
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

Solution code:
N=input()
if N[-1] == '7':
     print("Yes")
elif N[-2] == '7':
    prnt("Yes")
elif N[-3] == '7':
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
if N[-1] == '7':
     print("Yes")
elif N[-2] == '7':
    prnt("Yes")
elif N[-3] == '7':
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
if N[-1] == 7:
     print("Yes")
elif N[-2] == 7:
    prnt("Yes")
elif N[-3] == 7:
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
N=int(input())

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

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

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
N=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")

Submission status: Runtime Error

Solution code:
N=input()

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

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

Submission status: Runtime Error

Solution code:
N=input()

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

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

Submission status: Runtime Error

Solution code:
n = inport()
if "7" in n:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
Source Code 

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a= input()
i=0
while i< len(s):
  j=s[i:i+1]
  if j==7:
    print('Yes')
    break
  i+=1

Submission status: Runtime Error

Solution code:
N = int(input())
h = N // 100
t = (N - h) // 10
o = N - h - t
if h = 7 or t = 7 or o = 7:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
if N.count('7')==0:
  print('No')
  
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
N, M = map(int,input().split())
H=list(map(int,input().split()))

A=[0]*(N+1)
for i in range(M):
    x,y=map(int,input().split())
    A[x]=max(A[x],H[y-1])
    A[y]=max(A[y],H[x-1])

count=0
for i in range(1,N+1):
    if H[i-1]>A[i]:
        count+=1

print(count)

Submission status: Runtime Error

Solution code:
n = input()

if n.index('7'):
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = input()

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

print("No")

Submission status: Runtime Error

Solution code:
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        ios_base::sync_with_stdio(false);
        cin.tie(NULL);
     
        string N;
        cin>>N;
     
      if(N[0]=='7'|| N[1]=='7'||N[2]=='7')
        {
            cout<<"Yes"<<"\n";
        }
        else{
            cout<<"No"<<"\n";
        }
     
        return 0;
    }

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;

int main(){
    string n;
    cin >> n[3];
    if (n[0] == 7 || n[1] ==7 || n[2] ==7){
        cout << "Yes" << "\n";
    }
    else cout << "No" << "\n";

    

    return 0;
}

Submission status: Runtime Error

Solution code:
#include<iostream>
using namespace std;

int main(){
    int n;
    scanf("%d",&n);
    int b, c, d;
    b =n / 100;
    c = (n- 100*b)/10;
    d = (n-100*b - 10*c);
    if (b == 7 || c ==7 || d ==7){
        cout << "Yes" << "\n";
    }
    else cout << "No" << "\n";

    

    return 0;
}

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;

int main(){
    int n;
    scanf("%d",&n);
    int b, c, d;
    b =n / 100;
    c = (n- 100*b)/10;
    d = (n-100*b - 10*c);
    if (b == 7 || c ==7 || d ==7){
        cout << "Yes" << "\n";
    }
    else cout << "No" << "\n";

    

    return 0;
}

Submission status: Runtime Error

Solution code:
N = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
S=input()
dictR=[]
dictG=[]
dictB=[]
r=0
g=0
b=0
r=S.count("R")
g=S.count("G")
b=S.count("B")
sum=r*g*b
for i in range(n):
    for j in range(i+1,n):
        for k in range(j+1,n):
            si=S[i]
            sj=S[j]
            sk=S[k]
            if k-j==j-i and(si!=sj and sj!=sk and si!=sk):
                sum-=1



print(sum)

Submission status: Runtime Error

Solution code:
n=int(input())
S=input()
dictR=[]
dictG=[]
dictB=[]
r=0
g=0
b=0
for i in range(len(S)):
    if S[i]=="R":
        dictR.append(i)
        r+=1
    elif S[i]=="G":
        dictG.append(i)
        g+=1
    else:
        dictB.append(i)
        b+=1
sum=r*g*b
if sum!=0:
    for i in dictR:
        for j in dictG:
            for k in dictB:
                maxi=max(i,max(j,k))
                mini=min(i,min(j,k))
                medi=i+j+k-maxi-mini
                if maxi-medi==medi-mini:
                    sum-=1

print(sum)

Submission status: Runtime Error

Solution code:
def numS(S):
    x=len(S)
    if x<4:
        return 0
    T=S[1:]
   # print(T)
    l=x-1
    sum=0
    now=S[0]
    for i in range(l):
        now2=T[i]
    #    print(now2)
        if now2!=now:
            for j in range(i+1,l):
                now3=T[j]
     #           print(now,now2,now3)
                if now3!=now2 and now3!=now:
      #              print(i,j)
                    sum+=1
                    if 2*i+1==j:
                        sum-=1
    return numS(T)+sum
n=int(input())
S=input()
print(numS(S))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = intput()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
l=int(input())
if 7 in l:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = list(int(input()))

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

Submission status: Runtime Error

Solution code:
n = int(input())
flag = 1

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

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

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

Submission status: Runtime Error

Solution code:
import sys

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

printf("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=input()

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

Submission status: Runtime Error

Solution code:
s=input()
c=0
for i in range(len(s)):
	if s[i]==7:
    	c=c+1
    
if c>0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(map(str,input()))
ans = 0
b = 0
for i in range(N):
  for j in range(i,N):
    if S[i] != S[j]:
      for k in range(j,N):
        if S[i] != S[k] and S[j] != S[k] and j - i != k-j:
          ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
def a(n):
  while n//10 :
    if n % 10 == 7: return "Yes"
    n = n//10
  if not n%10 return "No"

Submission status: Runtime Error

Solution code:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.binary_location = 'C:\\Users\\tomo6\\Downloads\\edgedriver_win32\\msedgedriver.exe'
options.add_argument('--headless')
driver = webdriver.Edge(options)
print(driver.current_url)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=input()
n=int(N)
if n%100==7:
  print('Yes')
elif (n-(n%100)*100)%10==7:
  print('Yes')
elif n-(n-(n%100)*100)*10=7:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = input()
list(n)
han=False
for i in n:
    print(i)
    if i=="7":
        han=True
if han=True:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:

  n = input()

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

Submission status: Runtime Error

Solution code:
a=int(input())

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

Submission status: Runtime Error

Solution code:
a=int(input())

if a[0]==7:
  print("Yes")

else:
  if a[1]==7:
    print("Yes")
  else:
    if a[2]==7:
      print("Yes")
    else:
      print("No")

Submission status: Runtime Error

Solution code:
import math
k=int(input())
list=[]
for a in range(1,k+1):
  for b in range(1,k+1):
    for c in range(1,k+1):
      list.append(math.gcd((a,b),c))
print(sum(list))

Submission status: Runtime Error

Solution code:
A = list(map(input().split()))
print(A.count("7"))

Submission status: Runtime Error

Solution code:
n=str(input())
f=1
for _ in range(len(n)):
  if n[i]=='7':
    f=1
    break
  else:
    f=0
if f==1:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
def sort_2(a,b):
    if b<a:
        c=a
        a=b
        b=c
    return [a,b]


def GCDbase(a,b):
    D=b//a
    if b==D*a:
        return a
    else:
        return GCD(b-a*D,a)
    
def GCD(a,b):
    ab=sort_2(a,b)
    return GCDbase(ab[0],ab[1])
    
    

K=int(input())
sum=0
for i in range(1,K+1):
    for j in range(1,K+1):
	tmp=GCD(i,j)
        for l in range(1,K+1):
            sum+=GCD(tmp,l)
print(sum)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = list(input())
if int(n[0]) == 7:
	print("Yes")
else:
	if int(n[1]) == 7:
    	print("Yes")
    else:
		if int(n[2]) == 7:
			print("Yes")
        else:
        print("No")

Submission status: Runtime Error

Solution code:
n = list(input())
if n[0] ==7:
 	print("Yes")
 else:
 	if n[1] ==7:
 		print("Yes")
    else:
    	if n[2] ==7:
 			print("Yes")
        else:
        	print("No")

Submission status: Runtime Error

Solution code:
N = int(input())

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
A = [int(c) for c in N]
for i in range(3):
	if A[i] == 7:
    	print ("Yes")
else:
	print ("No")

Submission status: Runtime Error

Solution code:
N = input()
A = [int(c) for c in N]
for i=０ in range(0,2):
	if A[i] == 7:
    	print ("Yes")
	else:
 		print ("No")

Submission status: Runtime Error

Solution code:
N = input()
A = [str(c) for c in N]
for i=０ in range(0,2):
	if A[i] == "7":
    	print ("Yes")
	else:
  		print ("No")

Submission status: Runtime Error

Solution code:
N = input()
A = [int(c) for c in N]
for i=０ in range(0,2):
	if A[i] == 7:
      print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N = input()
A = [int(c) for c in N]
for i=０ in range(0,2):
	if A[i] == 7:
      print "Yes"
else:
  print "No"

Submission status: Runtime Error

Solution code:
N = input()
A = [int(c) for c in N]
for i=０ in range(0,2):
	if A[i] == "7":
      print "Yes"
else:
  print "No"

Submission status: Runtime Error

Solution code:
N = input()
A = [int(c) for c in N]
for i=０ in range(0,2):
	if N[i] == "7":
      print "Yes"
else:
  print "No"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N =
if N % 7 == 0:
	print("Yes")
else:
  	print("No")

Submission status: Runtime Error

Solution code:
N = map(int,input().split())
if N % 7 == 0:
	print("Yes")
else:
  	print("No")

Submission status: Runtime Error

Solution code:
N = map(int,input().split())
if N % 3 ==0:
	print("Yes")
else:
  	print("No")

Submission status: Runtime Error

Solution code:
N = map(int,input().split())
if N % 3:
	print("Yes")
else:
  	print("No")

Submission status: Runtime Error

Solution code:
if N % 3:
	print("Yes")
else:
  	print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input()
X = 0
for i in range(3):
    if A [i] == 7:
        X += 1
if X == 0:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
N = str(input())
if N.isin('7'):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N=input()
S=input()
R=[]
G=[]
B=[]
for i in range(len(S)):
    if S[i]=='R':
        R.append(i)
    if S[i]=='G':
        G.append(i)
    if S[i]=='B':
        B.append(i)

count=0
for i in range(len(R)):
    for j in range(len(G)):

        if max(R[i],G[j])+abs(R[i]-G[j]) in B:
            count+=1

        if min(R[i],G[j])-abs(R[i]-G[j]) in B:
            count+=1

        if (R[i]+G[j])/2 in B:
            count+=1


print(str((len(R)*len(G)*len(B))-count))

Submission status: Runtime Error

Solution code:
N=input()
S=input()
Sn=[]
R=0
G=0
B=0
for i in range(len(S)):
    if S[i]=='R':
        R+=1
        Sn.append(1)
    elif S[i]=='G':
        G+=1
        Sn.append(2)
    else:
        B+=1
        Sn.append(3)

count=0
for start in range(len(S)):
        for diff in range(1,int((len(S)-start+1)/2)):
            if (Sn[start]-Sn[start+diff])*(Sn[start+diff]-Sn[start+(2*diff)])*(Sn[start]-Sn[start+(2*diff)])!=0: 
                count+=1
                
print(str((R*G*B)-count))

Submission status: Runtime Error

Solution code:
N=input()
S=input()
Sn=[]
R=0
G=0
B=0
for i in range(len(S)):
    if S[i]=='R':
        R+=1
        Sn.append(1)
    elif S[i]=='G':
        G+=1
        Sn.append(2)
    else:
        B+=1
        Sn.append(3)

count=0
for start in range(len(S)):
        for diff in range(1,int((len(S)-start+1)/2)):
      
            if (Sn[start]-Sn[start+diff])*(Sn[start+diff]-Sn[start+(2*diff)])*(Sn[start]-Sn[start+(2*diff)])!=0: 
                count+=1
                
print(str((R*G*B)-count))

Submission status: Runtime Error

Solution code:
N = int(input())

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

Submission status: Runtime Error

Solution code:
import numpy as np
N = input()
S = input()

res = 0
for i in range(N-2):
    n = 1
    while True:
        j = i+n
        k = j+n
        if k > N-1: break
        res += (S[i] != S[j] and S[j] != S[k] and S[k] != S[i])
        n += 1
    
    
rgb = S.count("R") * S.count("G") * S.count("B")
print(rgb - res)

Submission status: Runtime Error

Solution code:
import numpy as np
N = int(input())
S = input()

res = 0
for i in range(N-2):
    n = 1
    while True:
        j = i+n
        k = j+n
        if k > N-1: break
        res += (S[i] != S[j] and S[j] != S[k] and S[k] != S[i])
        n += 1
    
    
rgb = S.count("R") * S.count("G") * S.count("B")
print(rgb - res)

Submission status: Runtime Error

Solution code:
n=int(input())
a,b,c=map(int,input().split())
n=abc
if a==7 or b==7 or c==7:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = input()

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

Submission status: Runtime Error

Solution code:
temp=list(map(int,input().rstrip().split()))
n=temp[0]
S=temp[1]
summ=0
count=0
while summ<S :
    if (S-summ)>=n :
        summ+=n

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

Submission status: Runtime Error

Solution code:
N = input()

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

print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(input())
 
r, g, b = 0, 0, 0
for i in range(N):
    if S[i] == 'R':
        r += 1
    elif S[i] == 'G':
        g += 1
    else:
        b += 1
 
a = r*g*b
 
for i in range(N):
    for j in range(i+1, N):
        if 2*j-i < N:
            if (S[i] != S[j]) and (S[j] != S[2*j-i]) and (S[i] != S[2*j-i]):
                a -= 1
 
print(a)

Submission status: Runtime Error

Solution code:
N=int(input())
a=list(input())
import sys

sys.setrecursionlimit(10**6)

r=a.count('R')
g=a.count('G')
b=a.count('B')
s=0
for i in range(N-1):
    for j in range(i+1, N):
        if 2*j-i < N:
            if a[i] !=a[j] and a[j]!=a[2*j-i] and a[2*j-i]!=a[i]:
                s+=1

n=r*g*b-s
print(n)

Submission status: Runtime Error

Solution code:
a=list(map(int, input().sprit()))
b=True
for i in a
	if i==7:
    	print('Yes')
        b=False
        break;
if b:
  print('No')

Submission status: Runtime Error

Solution code:
N=int(input())
a=list(input())

r=a.count('R')
g=a.count('G')
b=a.count('B')
N=len(a)
s=0
for i in range(N-1):
    for j in range(i+1, N):
        if 2*j-i < N:
            if a[i] !=a[j] and a[j]!=a[2*j-i] and a[2*j-i]!=a[i]:
                s+=1

n=r*g*b-s
print(n)

Submission status: Runtime Error

Solution code:
N=int(input())
a=list(input())

r=a.count('R')
g=a.count('G')
b=a.count('B')
N=len(a)
s=0
for i in range(N):
    for j in range(i+1, N):
        if 2*j-i < N:
            if a[i] !=a[j] and a[j]!=a[2*j-i] and a[2*j-i]!=a[i]:
                s+=1

print(r*g*b-s)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
if 7 in N:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
n = input()
for ni in n:
    if ni == '7'
        print( 'Yes' )
        quit()
print( 'No' )

Submission status: Runtime Error

Solution code:
A = list(int(input))
if 7 in A: print('Yes')
else: print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

def main():
    n = int(input())
    
    if n//100 == 7:
        return "Yes"
    
    n %= 100
    if n // 10 == 7:
        return "Yes"
    
    n %= 10
    if n == 7:
        return "Yes"
    
    return "No"


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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=str(input())
t='nt'
for(i in range(n)):
  if(n[i]=='7'):
    print("Yes")
    t='tr'
if(t='nt'):
  print("No")

Submission status: Runtime Error

Solution code:
n=str(N)
if n.find("7")!= -1:
   print('Yes')
else:
   print('No')

Submission status: Runtime Error

Solution code:
n=str(N)
if n.find("7")!= -1:
   print("Yes")
else:
   print("No")