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=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")

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
a=str(N)
for i in range(1,4):
  if a[i]=7:
    print("Yes")
    break
print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
a=str(N)
for i in range(1,4):
  if a[i]=7:
    print(Yes)
    break

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
import math
from functools import reduce


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


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


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
import sys
import math
from functools import reduce


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


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


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


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
=input()
ans=0
for i in range(3):
    if int(n[i]) == 7:
        ans=1
print("YES" if ans == 1 else "NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
str(N)
listN = sorted(N)
if listN.count("7") >= 1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
str(N)
listN = sorted(N)
if listN.count(7) >= 1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
str(n)
listN = sorted(N)
if listN.count("7") >= 1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
str(n)
listN = sorted(N)
if listN.count(7) >= 1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
listN = sorted(N)
if listN.count(7) >= 1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = intput()

if ('7' in s):
  print('Yes')

Submission status: Runtime Error

Solution code:
N = input()
I = N/10
J = I/10
if N%10 == 7:
  print("Yes")
elif I%10 == 7:
  print("Yes")
elif J%10 == 7:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
/*
    Converted from Scratch by scratch2cpp (https://github.com/yos1up/scratch2cpp).
*/
#include <iostream>
#include <stdlib.h>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
#define debug cerr << "--" << __LINE__ << "--" << "\n"
typedef long long ll;
using namespace std;

class Var{ // NOTE: immutable
public:
    mutable string sval;
    mutable long double dval;
    enum NumericState {UNKNOWN = -1, STRINGY = 0, NUMERIC = 1};
    mutable NumericState numericState;
    mutable bool svalValid, dvalValid; // TODO: initialize at here?

    Var(){
        *this = Var("");
    }
    Var(string s){
        sval = s;
        svalValid = true; dvalValid = false;
        numericState = UNKNOWN;
    }
    Var(long double d){
        dval = d;
        svalValid = false; dvalValid = true;
        numericState = NUMERIC;
    }
    Var(const Var &v){
        sval = string(v.sval); dval = v.dval;
        svalValid = v.svalValid; dvalValid = v.dvalValid;
        numericState = v.numericState;
    }
    void fillDval() const{
        if (dvalValid) return;
        long double d;
        bool numeric = isNumericString(sval, &d);
        if (numeric){
            numericState = NUMERIC;
            dval = d;
        }else{
            numericState = STRINGY;
            dval = 0.0;
        }        
        dvalValid = true;
    }
    static bool isNumericString(const string &s, long double *ptr) {
        char* ep;
        // cause side-effect: errno can be ERANGE after calling strtod
        *ptr = strtold(s.c_str(), &ep);
        // Scratch 3.0 recognize the string cause underflows or overflows as Numeric
        return NULL != ep && '\0' == ep[0] && s[0] != '\0';
    }
    bool isNumeric() const{
        fillDval();
        return numericState == NUMERIC;
    }    
    void fillSval() const{
        if (svalValid) return;
        sval = (floorl(dval) == dval) ? to_string((ll)dval) : to_string(dval);
        svalValid = true;
    }       
    long double asNumber() const{
        fillDval();
        return dval;
    } 
    string asString() const{
        fillSval();
        return sval;
    }
    Var operator+(const Var &y) const{
        return Var(this->asNumber() + y.asNumber());
    }
    Var operator+=(const Var &y){
        *this = *this + y;
        return *this;
    }
    Var operator-(const Var &y) const{
        return Var(this->asNumber() - y.asNumber());
    }
    Var operator*(const Var &y) const{
        return Var(this->asNumber() * y.asNumber());
    }
    Var operator/(const Var &y) const{
        return Var(this->asNumber() / y.asNumber());
    }
    Var operator%(const Var &y) const{
        return Var(fmodl(this->asNumber(), y.asNumber()));
    }
    bool operator<(const Var &y) const{
        if (this->isNumeric() && y.isNumeric()){
            return this->asNumber() < y.asNumber();
        } // compare as number if both can be interpreted as numeric
        return this->asString() < y.asString();
    }
    bool operator>(const Var &y) const{
        return y < *this;
    }
    bool operator==(const Var &y) const{
        if (this->isNumeric() && y.isNumeric()){
            return this->asNumber() == y.asNumber();
        } // compare as numeric if both are numeric
        return this->asString() == y.asString();
    }
    friend ostream& operator << (ostream& os, const Var& p);
    friend istream& operator >> (istream& is, const Var& p);
};
ostream& operator << (ostream& os, const Var& p){
    os << p.asString();
    return os;
}
istream& operator >> (istream& is, Var& p){
    string s; is >> s; p = Var(s);
    return is;
}


Var letterOf(Var index, Var sourceString){
    /* index: 1-origined */
    string str = sourceString.asString();
    int idx = (int)(index.asNumber() - 1);
    // seem to be dirty but Scratch seems to do like this.
    // ex. letterOf(0.01, "world") == "w", letterOf(1.99, "world") == "w", letterOf(5.99, "world") == "d"
    if (0 <= idx && idx < str.size()) return Var(str.substr(idx, 1));
    return Var();
}

class VarList{
public:
    vector<Var> data;
    VarList(const vector<Var> &x) { data = x; }
    void push_back(const Var &x){ data.push_back(x); }
    void pop_back(){ data.pop_back(); }
    void clear(){ data.clear(); }
    int size(){ return (int) data.size(); }
    Var getLineOfList(const Var &index) const{
        /* index: 1-origined */
        int idx = (int)index.asNumber() - 1;
        // (unlike 'letterOf', index==0.9 does not work.)
        if (0 <= idx && idx < data.size()) return data[idx];
        return Var();
    }
    void setLineOfListTo(const Var &index, const Var &v){
        /* index: 1-origined */
        int idx = (int)index.asNumber() - 1;
        if (0 <= idx && idx < data.size()) data[idx] = v;
    }
    void deleteLineOfList(const Var &index){
        /* index: 1-origined */
        string kwd = index.asString();
        if (kwd == "all"){
            data.clear();
        }else if (kwd == "last"){
            data.pop_back();
        }else{
            int idx = (int)index.asNumber() - 1;
            if (0 <= idx && idx < data.size()) data.erase(data.begin() + idx);
        }
    }
    void insertAtIndexOfList(const Var &item, const Var &index){
        /* index: 1-origined */
        int idx = (int)index.asNumber() - 1;
        if (0 <= idx && idx <= data.size()) data.insert(data.begin() + idx, item);   
    }
    void insertAtRandomOfList(const Var &item){
        int idx = rand() % (data.size() + 1);
        data.insert(data.begin() + idx, item);
    }
    string asString() const{
        /* concatenate elements of list with space */
        // TODO: concatenated without spaces only if all elements are single characters.
        // (Is it an official bug? (or feature?))
        string ret;
        for(int i=0;i<data.size();i++){
            if (i > 0) ret += ' ';
            ret += data[i].asString();
        }
        return ret;        
    }
    int itemNumOfList(const Var &item) const{
        auto itr = find(data.begin(), data.end(), item);
        if (itr == data.end()) return 0;
        return 1 + (int)(itr - data.begin());
        /* index: 1-origined */
    }
    friend ostream& operator << (ostream& os, const VarList& p);
};
ostream& operator << (ostream& os, const VarList& p){
    os << p.asString();
    return os;
}

long double randUniform(const long double x, const long double y){
    if (x > y) return randUniform(y, x);
    if (floor(x) == x && floor(y) == y){
        ll xi = (ll)round(x), yi = (ll)round(y);
        return xi + rand() % (yi - xi + 1);
    }else{
        return x + (y - x) * (0.0 + rand()) / RAND_MAX;
    }
}

Var buf_answer; // for "answer"

// ============================= Scripts =============================

// variable declaration
Var var_b(1);
Var var_a(1);
Var var_c(7);

// list declaration

// prototype declaration of functions
int main();

// contents of functions
int main(){
    cin >> buf_answer;
    var_a = letterOf(Var(1), buf_answer);
    var_b = letterOf(Var(2), buf_answer);
    var_c = letterOf(Var(3), buf_answer);
    if (((var_a == Var(7)) || ((var_b == Var(7)) || (var_c == Var(7))))){
        cout << Var("Yes") << endl;
    } else {
        cout << Var("No") << endl;
    }
    return 0;
}

Submission status: Runtime Error

Solution code:
N = input()

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

Submission status: Runtime Error

Solution code:
s = input().spilt()
if s[0] == '7' or s[1] == '7' or s[2] == '7':
    print("Yes\n")
else:
    print("No\n")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
N = int(input())
if N%10 == 7:
  print(Yes)
elif (N-N%10)%100 == 70:
  print(Yes)
elif N/100 == 7:
  print(Yes)
else:
  print(No)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=input()
if a=='7' or b=='7' or c=='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=input().split()
if N[0]==7 or N[1]==7 or N[2]==7;
  print(Yes)
else;
  print(No)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def f(n):
  return '7' in n

print f(raw_input())

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
if n<100 or n>999:
	x = len(n)
	for i in range(x):
    	if n[i] is '7':
       		print('Yes')
        	break
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = input()
if n<100 or n>999:
    n = 107
x = len(n)
for i in range(x):
    if n[i] is '7':
        print('Yes')
        break

Submission status: Runtime Error

Solution code:
n = input()
while n<100 or n>999:
    n = input()
x = len(n)
for i in range(x):
    if n[i] is '7':
        print('Yes')
        break

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from math import ceil
n=int(input())
s=input()
r=0
g=0
b=0
for i in range (len(s)):
  if s[i]=='R':
    r+=1
  elif s[i]=='B':
    b+=1
  else:
    g+=1
c=0
for i in range(1,n//2,1):
  for j in range(0,n-2*i,1):
    if s[j+0*i]!=s[j+1*i] and s[j+1*i]!=s[j+2*i] and s[j+2*i]!=s[j+0*i]:
      c+=1;
      
      
ans=r*g*b-c;
print(ans)

Submission status: Runtime Error

Solution code:
N = 177
if N == 177:
  print(yes)

Submission status: Runtime Error

Solution code:
"""
    Author : thekushalghosh
    Team   : CodeDiggers
"""
import sys,math,cmath,time
start_time = time.time()
################# ---- USER DEFINED INPUT FUNCTIONS ---- #################
def inp():
    return(int(input()))
def inlt():
    return(list(map(int,input().split())))
def insr():
    s = input()
    return(s[:len(s) - 1])
def invr():
    return(map(int,input().split()))
##########################################################################
################# ---- THE ACTUAL CODE STARTS BELOW ---- #################
 
def solve():
  n = inp()
  if "7" in list(str(n)):
    print("YES")
  else:
    print("NO")
################## ---- THE ACTUAL CODE ENDS ABOVE ---- ##################
##########################################################################
ONLINE_JUDGE = __debug__
if not ONLINE_JUDGE:
    sys.stdin = open('input.txt','r')
    sys.stdout = open('output.txt','w')
else:
    input = sys.stdin.readline
t = 1
t = inp()
for tt in range(t):
    solve()
if not ONLINE_JUDGE:
    print("Time Elapsed:",time.time() - start_time,"seconds")
sys.stdout.close()

Submission status: Runtime Error

Solution code:
a = int(input())
b = a//100
c = a//10 - b*10
d = a%10
if b != 7 and c != 7 and d != 7:
  print(No)
else:
  print(Yes)

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:
# countBcd[i] : 最大公約数がiとなる数列の個数
# 全てiの倍数である数列の数はint(K/i) ** N ただし、全てi*2,i*3・・・の場合を除く

N, K = [int(x) for x in input().split()]
countBcd = [0]*(K+1)
mod=10**9+7
sumTotal=0
for i in range(K,0,-1):
    countBcd[i] = int(K/i) ** N

    for j in range(i*2,K+1,i):
        countBcd[i] += mod - countBcd[j]
        countBcd[i] %= mod

    sumTotal += i*countBcd[i]
    sumTotal %= mod

print(sumTotal)

Submission status: Runtime Error

Solution code:
N = int(input())

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

Submission status: Runtime Error

Solution code:
from numba import jit

@jit
def main2():
    N = int(input())
    S = input()

    num = [0,0,0]

    for s in S:
        if s == "R":
            num[0] += 1
        elif s == "G":
            num[1] += 1
        else:
            num[2] += 1

    ans = num[0] * num[1] * num[2]
    sub = 0

    for i in range(N - 1):
        for j in range(i+1,N):
            k = 2*j - i
            if k >= N: continue
            if S[i] != S[j] and S[k] != S[i] and S[j] != S[k]:
                sub += 1
        
    print(ans-sub)

main2()

Submission status: Runtime Error

Solution code:
n=stirng(input())
ans="No"
if(n[0]=='7'||n[1]=='7'||n[2]=='7')
	ans="Yes"
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
 
n = str(n)
 
flag = 0
 
for i in n:
  if(i != '7'):
    flag = 0
  else:
    flag = 1
 
    
if flag = 0:
  print('No')
else :
  print('Yes')

Submission status: Runtime Error

Solution code:
"
ABC162A
https://atcoder.jp/contests/abc162/tasks/abc162_a
"

# arr.include?(str) = arr内にstrが存在するか？(bool)
puts (gets.chomp.split("").include?("7")) ? "Yes" : "No"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N

Submission status: Runtime Error

Solution code:
N = input()
letter_list = N.split()

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

Submission status: Runtime Error

Solution code:
N = inport()
Ans = 0
for i in range(1,N):
  if not i % 3 == 0:
    if not i % 5 == 0:
      Ans = Ans + i
Ans

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

Submission status: Runtime Error

Solution code:
N = str(input())
flag = 0
for i in range(len(N)):
    if int(N[i]) == 7:
        print ('Yes')
        flag = 1
        break
101if flag == 0:
    print ('No')

Submission status: Runtime Error

Solution code:
N = str(input())
flag = 0
for i in range(len(N))
	if int(N[i]) == 7:
    	print ('Yes')
      	flag = 1
    	break
if flag == 0:
  print ('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if '7' in input():
  print('YES')
 else:
	print ('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
n = int(s)
s = [ int (x) for x in s ]
if n > 100 AND n < 999 :
    for a in s :
        if a == 7:
            print("Yes")
            break
    else :
        print("No")

Submission status: Runtime Error

Solution code:
import math from gcd
k=input()

ans=0
i=0

for a in range(k+1):
  for b in range(k+1):
    i==gcd(a,B)
    for c in range(k+1):
      ans+=gcd(i,c)
      
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():
  N = int(input())
  S = input()
  R = 0
  G = 0
  B = 0
  nsum = 0
  for s in S:
      if s == "R":
          R += 1
      elif s == "G":
          G += 1
      else:
          B += 1
  count = 0
  for i in range(N):
      for k in range(i+1,N):
          if not S[i] == S[k]:
              if 2*k - i <= N - 1:
                  if S[i] != S[2*k - i] and S[k] != S[2*k - i]:
                      count += 1
  print(R*G*B - count)

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
prin

Submission status: Runtime Error

Solution code:
N = input()
n = [int(c) for c in s]
for ni in n:
  if ni == 7:
    print("Yes")
    exit()
print("No")

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>

#define __STDC_FORMAT_MACROS
#define p64 PRId64

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#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;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:

arg = int(raw_input())

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

Submission status: Runtime Error

Solution code:
N = input()

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

Submission status: Runtime Error

Solution code:
N = std(input())

a = N.split()

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

Submission status: Runtime Error

Solution code:
import sys
n=input()
for i in n:
	if i=='7':
		print('Yes')
        sys.exit()
print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
for char in N:
  if int(char) != 7:
    print("No")
    return
  else:
    pirnt("Yes")
    return

Submission status: Runtime Error

Solution code:
count = 0
for char in N:
  if int(char) != 7:
    print("No")
    return
  else:
    pirnt("True")
    return

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
for char in N:
  if int(char) != 7:
    print("N0")
  print("Yes")

Submission status: Runtime Error

Solution code:
if 7 in N
print('Yes')
if not 7 in N
print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(Input(""))
if N % 10 == 7 || (N - N % 10) / 10 % 10 == 7 || (N - N % 100)/100 == 7:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N=Input("")
if N % 10 == 7 || (N - N % 10) / 10 % 10 == 7 || (N - N % 100)/100 == 7:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
sum=0
for k in range(n):
  for j in range(k):
    for i in range(j):
      if(((j-i)!=(k-j))&(s[i]!=s[j])&(s[j]!=s[k])&(s[k]!=s[i])):

        sum=sum+1
          
print(sum)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
for  _ in range(3):
  if a % 10 == 7:
    print("Yes")
    return
  a /= 10
print("No")
return

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
n = int(input())

for _ in range(3):
    if n % 10 == 7:
        print('Yes')
        sys.exit(1)
    n = n // 10
print('No')

Submission status: Runtime Error

Solution code:
n=input()
if i%7==0 or i%10==7 or i/10==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:
if N[0] == "7" or N[1] == "7" or N[2] == "7" : print ("yes")
else:print ("no")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def function (N):
    return 'Yes' if 7 in N else 'No'
a= function(N)
print(a)

Submission status: Runtime Error

Solution code:
def a(N):
    return 'Yes' if 7 in N else 'No'
nun=a(N)
print num

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
 string=input()
t=False
for i in range (len(string)):
    if string[i]=="7":
    t=True
if t==True
   print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
string=input()
t=False
for i in range (len(string)):
    if string[i]==7
    t=True
if t==True
   print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a=int(N)//100
b=(int(N)-a*100)//10
c=int(N)-100*a-10*b
A=(a==7)
B=(b==7)
C=(c==7)
print(a)
print(b)
print(c)
if A==True or B==True or C==True:
    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:
s = str(N)
if s.count("7")>0:
	print(True)
else:
	print(False)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
aaa