Problem:


Score : 100 points

Problem Statement

You will turn on the air conditioner if, and only if, the temperature of the room is 30 degrees Celsius or above.

The current temperature of the room is X degrees Celsius. Will you turn on the air conditioner?

Constraints

-40 \leq X \leq 40

X is an integer.

Input

Input is given from Standard Input in the following format:

X

Output

Print Yes if you will turn on the air conditioner; print No otherwise.

Sample Input 1

25

Sample Output 1

No

Sample Input 2

30

Sample Output 2

Yes



Sample input:
25


Sample output:
No

Submission status: Wrong Answer

Solution code:
K = int(input())
if (K % 5 == 0) | (K % 2 == 0):
  print(-1)

else:
  a = 7
  for i in range(K):
    if a % K == 0:
      print(i + 1)
      exit()
    a = (10 * a + 7) % K
  print(-1)

Submission status: Wrong Answer

Solution code:
x = int(input())
if x >= 40:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
x=int(input())
if(x>=30):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def switch(X):
  if X >= 30:
    print('Yes')
  else:
    print('No')

Submission status: Wrong Answer

Solution code:
temp = int(input())
if temp >= 30:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
k = int(input())
n = 7

if k % 2 == 0 or k % 5 == 0:
    print(-1)
    exit()

ans = 1
while True:
    if n % k == 0:
        print(ans)
        exit()
    n = (n*10 + 7)%k
    ans += 1

Submission status: Wrong Answer

Solution code:
X = int(input())
if X == 30:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
if int(input()) >= 30:
     print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
if int(input()) >= 30:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
m=int(input())
if m>=30:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n>=30):
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n==30):
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
X = int(input())
if  X >= 30:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
X = int(input())
if  40 >= X >= -40:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
X = int(input())

if X >= 30:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
X = int(input())

if X >= 30:
    command = 'yes'
elif 30 > X :
    command = 'no'

print(command)

Submission status: Wrong Answer

Solution code:
X = int(input('今の温度は？>'))

if X >= 30:
    command = 'yes'
elif 30 > X :
    command = 'no'

print(command)

Submission status: Wrong Answer

Solution code:
X = int(input('今の温度は？>'))

if 40 >= X >= 30:
    command = 'yes'
elif 30 > X >= -40:
    command = 'no'
else:
    command = 'Error'
print(command)

Submission status: Wrong Answer

Solution code:
x_str = input('今の温度は？>')
x= int(x_str)

if 40 >= x >= 30:
    command = 'yes'
elif 30 > x >= -40:
    command = 'no'
else:
    command = 'Error'
print(command)

Submission status: Wrong Answer

Solution code:
X = int(input())
if X >=30: 
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
def isSwitchOn(x):
  if x >= 30:
    return "Yes"
  else:
    return "No"

Submission status: Wrong Answer

Solution code:
X = int(input())

if X >= 30:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
x = int(input())

if x >= 30:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
#ABC174
temp = int(input())
if temp >= 30:
  print("yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
x = int(input())

if x >= 30:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3
# -*- coding:utf-8 -*-

def main():
  k = int(input())
  a = 0
  for i in range(k):
    a = (10 * a + 7) % k
    if a == 0:
      print(i+1)
      return 
  print(-1)
  
if __name__=='__main__':
  main()

Submission status: Wrong Answer

Solution code:
print("YNeos"[max(int(input())//30,0):5:2])

Submission status: Wrong Answer

Solution code:
n = int(input())
if n >= 30:
  s = 'YES'
else:
  s = 'NO'
print(s)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n>30:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import bisect
def main():
    N, Q = map(int, input().split())
    C = list(map(int, input().split()))
    E = []

    D = {C[i]: -1 for i in range(N)}
    for i in range(N):
        if D[C[i]] == -1:
            D[C[i]] = i
        else:
            E.append((D[C[i]], i, -1))
            D[C[i]] = i

    for i in range(Q):
        l, r = map(int, input().split())
        E.append((l - 1, r - 1, i))

    def f(tup):
        return tup[0]
    E.sort(key=f, reverse=True)

    ANS = [0] * Q
    y_list = [500005] * (2 * Q)
    for e in E:
        ans = bisect.bisect_right(y_list, e[1])
        if e[2] == -1:
            y_list[ans] = e[1]
        else:
            ANS[e[2]] = e[1] - e[0] + 1 - ans

    for i in range(Q):
        print(ANS[i])

Submission status: Wrong Answer

Solution code:
a = int(input("Enter number: "))
if a>=30:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=0
for i in range(1,10**6+1):
    ans=ans*10+7
    ans=ans%n
    if ans==0:
        print(i)
        quit()
print(-1)

Submission status: Wrong Answer

Solution code:
print( 'Yes' if input() == '30' else 'No')

Submission status: Wrong Answer

Solution code:
if int(input()) == 30:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
print('YNEOS'[int(input()) < 30::2])

Submission status: Wrong Answer

Solution code:
N = int(input())
if N >= 30:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
N = int(input())

if N >= 30:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())

if N >= 30:
    print("YES")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
print(int(input()) >= 30)

Submission status: Wrong Answer

Solution code:
x = int(input())
res = 'Yes' if x >= 30 else 'No'
print(x)

Submission status: Wrong Answer

Solution code:
x = int(input())
print('Yes' if -40 <= x and x <= 40 else 'No')

Submission status: Wrong Answer

Solution code:
ma = lambda :map(int,input().split())
ni = lambda:int(input())
yn = lambda fl:print("Yes") if fl else print("No")
import collections
import math
import itertools
import heapq as hq
x = ni()
if x>=30:
    f=True
else:
    f=False
print(yn(f))

Submission status: Wrong Answer

Solution code:
input = int(input())

if 30<input:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
K = int(input())

if K%2 == 0 or K%2 ==0:
    print(-1)
    exit(0)

count = 0
an = 0
while True:
  an = (10*an + 7) % K
  count +=1
  if an == 0:
    break
print(count)

Submission status: Wrong Answer

Solution code:
K = int(input())

if K%2 == 0 or K%2 ==0:
    print(-1)
    exit(0)

count = 0
an = 0
while True:
  an = (10*an + 7) % K
  count +=1
  if an == 0:
    print(count)
    break

Submission status: Wrong Answer

Solution code:
K = int(input())
c = 0
an = 0

if K%2 == 0 or K%2 ==0:
    print("-1")
    exit(0)
while True:
  an = (10*an + 7) % K
  c +=1
  if an == 0:
    print(c)
    break

Submission status: Wrong Answer

Solution code:
K = int(input())

if K % 2 == 0 or K % 5 == 0:
    print(-1)
    exit()

i = 0
ai = 0
while True:
    ai = (ai * 10 + 7) % K
    i += 1
    if ai == 0:
        break
print(i)

Submission status: Wrong Answer

Solution code:
def close_aircondition(x):
  if x >= 30:
    print("Yes")
  else:
    print('No')

Submission status: Wrong Answer

Solution code:
def close_aircondition(x):
  if x >= 30:
    return "Yes"
  else:
    return 'No'

Submission status: Wrong Answer

Solution code:
def close_aircondition(x):
  if x >= 30:
    return "yes"
  else:
    return 'no'

Submission status: Wrong Answer

Solution code:
x = int(input("whats the temperature of the room : "))
if x>30:
	print("yes")
else:
	print("no")

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7
count = 1

for i in range(100000):
  if x % K == 0:
    print(count)
    exit(0)
  else:
    x = 10*x + 7
    count += 1
print("-1")

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7
count = 1
if K % 2 ==0:
  print("-1")
  exit(0)
for i in range(100000000000):
  if x % K == 0:
    print(count)
    exit(0)
  else:
    x = 10*x + 7
    count += 1
print("-1")

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7
count = 1
if K % 2 ==0:
  print("-1")
  exit(0)
for i in range(10000000):
  if x % K == 0:
    print(count)
    exit(0)
  else:
    x = 10*x + 7
    count += 1
print("-1")

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7
count = 1
if K % 2 ==0:
  print("-1")
  exit(0)
for i in range(10**5):
  if x % K == 0:
    print(count)
    exit(0)
  else:
    x = 10*x + 7
    count += 1
print("-1")

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7
count = 1
if K % 2 == 0:
  print("-1")
  exit(0)
for i in range(10**5):
  if x % K == 0:
    print(count)
    exit(0)
  else:
    x = 10*x + 7
    count += 1
print("-1")

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7
count = 1
if K % 2 ==0:
  print("-1")
  exit(0)
for i in range(10000):
  if x % K == 0:
    print(count)
    exit(0)
  else:
    x = 10*x + 7
    count += 1

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7
count = 0
if K % 2 ==0:
  print("-1")
  exit(0)
for i in range(10000):
  if x % K == 0:
    print(count)
    exit(0)
  else:
    x = 10*x + 7
    count += 1

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7
count = 0
if K % 2 ==0:
  print("-1")
  exit(0)
for i in range(1000):
  if x % K == 0:
    print(count)
    exit(0)
  else:
    x = 10*x + 7
    count += 1

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7
count = 0
if K % 2 ==0:
  print("-1")
  exit(0)
for i in range(100):
  if x % K == 0:
    print(count)
    exit(0)
  else:
    x = 10*x + 7
    count += 1

Submission status: Wrong Answer

Solution code:
K=int(input())
cnt=0
ans=0
while cnt<1000001:
  cnt+=1
  ans=(ans*10+7)%K
  if ans==0:
    print(cnt)
    break
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
X = int(input())
print("YNeos"[X>29::2])

Submission status: Wrong Answer

Solution code:
x=int(input())
if x<29:
	print("No")
else:
	print("Yes")

Submission status: Wrong Answer

Solution code:
X=int(input())
if X >=30:
  print('Yes')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
x = int(input())
if x >= 30:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
X=int(input())
if X >=30:
  print("Yes")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
X=int(input())
if X >=25:
  print("Yes")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
x=int(input())
if x>=30:print('Yes') 
else: print('NO')

Submission status: Wrong Answer

Solution code:
X = int(input())
if X < 30:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
X = int(input())
if X >= 40:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
X = int(input())
if X <= 30:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
X = int(input())
if X <= 40:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
K = int(input())
if K==7 or K==1:
        print(1)
if K==11:
        print(2)
if K in (3,37,3*37):
    print(3)
elif K in (11,101,1111):
    print(4)
elif K in (41,271,11111):
    print(5)
elif K in (3, 7, 11, 13, 21, 33, 37, 39, 77, 91, 111, 143, 231, 259, 273, 407, 429, 481, 777, 1001, 1221, 1443, 2849, 3003, 3367, 5291, 8547, 10101, 15873, 37037, 111111):
    print(6)
elif K in (239,4649,239*4649):
    print(7)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
X = int()
if X>=30 :
  print("Yes")
else :
  print("No")

Submission status: Wrong Answer

Solution code:
x = int(input())
if x <= 30:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
on_or_off = int(input())

if -40 <= on_or_off <= 40:
  print('Yes')
  
else:
  print('No')

Submission status: Wrong Answer

Solution code:
print(0)

Submission status: Wrong Answer

Solution code:
print('Hello')

Submission status: Wrong Answer

Solution code:
print("YES" if int(input()) >= 30 else "NO")

Submission status: Wrong Answer

Solution code:
x=int(input())
for a in range(100000):
  a=2*2
if x>=30:print("Yes")
else:print("N")

Submission status: Wrong Answer

Solution code:
x=int(input())
if x>=30:print("Yes")
else:print("N")

Submission status: Wrong Answer

Solution code:
X = input()
X = int(X)
 
if X >= 30:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
s=input("X")
tem=int(s)
if tem>=30:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
X = int(input())
 
if X >= 30:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
deg = int(input())
if deg >= 20:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
X = int(input())
if X>= 30:
    print('yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
X = 30

if X >= 30:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7 % K

for count in range(1, K + 1):
  if x == 0:
    print(count)
    break
  x = (x * 10 + 7) % K

else: print(-1)

Submission status: Wrong Answer

Solution code:
K = int(input())
x = 7 % K

for i in range(1, K + 1):
  if x == 0:
    print(i)
    break
  x = (x * 10 + 7) % K

else: print(-1)

Submission status: Wrong Answer

Solution code:
X =int(input())
if X >= 30:
    print("Yes")

Submission status: Wrong Answer

Solution code:
X =int(input())
if X <= 30:
    print("Yes")

Submission status: Wrong Answer

Solution code:
K=int(input())
def x():
    count=0
    for i in range(K):
        count =(10*count+7)%K
        if count%K==0:
            return i+1
    return -1    
print(x())

Submission status: Wrong Answer

Solution code:
n=int(input())
if n<30:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
K = int(input())
m = 0
for i in range(K):
    m = (m * 10 + 7) % K
    if m == 0:
        print(i+1)
        break
    elif m == K-1:
        print(-1)
        break

Submission status: Wrong Answer

Solution code:
K = int(input())
m = 0
for i in range(K):
    m = (m * 10 + 7) % K
    if m == 0:
        print(i)
        break
    elif m == K-1:
        print(-1)
        break

Submission status: Wrong Answer

Solution code:
x = int(input())
if x >= 30:
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

Solution code:
K = int(input())
n = 1000000

if K % 2 == 0:
    print(-1)
elif K % 7 == 0:
    amari = 10
    for i in range(n):
        if amari % int(9 * (K / 7)) == 1:
            print(i + 1)
            break
        else:
            amari = amari * 10
else:
    amari = 70
    for i in range(n):
        if amari % int(9 * K) == 7:
            print(i + 1)
            break
        else:
            amari = amari * 10

Submission status: Wrong Answer

Solution code:
K = int(input())
n = 1000000

if K % 2 == 0:
    print(-1)
else:
    amari = 70
    for i in range(n):
        if amari % int(9 * K) == 7:
            print(i + 1)
            break
        else:
            amari = amari * 10

Submission status: Wrong Answer

Solution code:
x = int(input())
if(x>30):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
print('Yes' if int(input())==30 else 'No')

Submission status: Wrong Answer

Solution code:
import sys
input = lambda :sys.stdin.readline().rstrip('\r\n')
print(int(input())>=30)

Submission status: Wrong Answer

Solution code:
x = int(input())
print("Yes" if x>=-40 and x<=40 else "No")

Submission status: Wrong Answer

Solution code:
n=int(input())
if n<30:
  print("N0")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
print("暑いのか…？")
x=input()
x=int(x)
if -40<=x and x<=40:
    if x>=30:
        print('これは意外っ！猛暑っ！！')
    elif x<30:
        print('やれやれだぜ')
    else:
        print("さては究極生命体だな！！？")

Submission status: Wrong Answer

Solution code:
n= int(input())
if n>=30:
	print('YES')
else:
	print('NO')

Submission status: Wrong Answer

Solution code:
K=int(input())
n = 0
seven=7
while n<=K:
    seven += ((7*10)*n)
    if seven%K==0:
        print(n)
        break
    n +=1
if n==K+1:
    print(-1)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys
k=int(input())
if k%2==0 or k%5==0:
  print(-1)
  sys.exit()
s=7
for i in range(k):
  m=s%k
  if m==0:
    print(i+1)
    break
  s=m*10+7

Submission status: Wrong Answer

Solution code:
K = int(input())
t = 7
t %= K

for i in range(K+1):
    if t == 0:
        print(i+1)
        break
    t = (t*10+7)%K
else:
  	print(-1)

Submission status: Wrong Answer

Solution code:
K = int(input())
t = 7
t %= K

for i in range(K+1):
    if t == 0:
        print(i+1)
        break
    t = (t*10+7)%K
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
K = int(input())
t = 7
t %= K

for i in range(K+1):
    if t == 0:
        print(i+1)
        break
    t = (t*10+7)%K
else:
	print(-1)

Submission status: Wrong Answer

Solution code:
n=int(input())
print('haha')

Submission status: Wrong Answer

Solution code:
X = int(input())
def Main(X):
    return "Yes" if X <= 30 else "No"

print(Main(X))

Submission status: Wrong Answer

Solution code:
X = int(input())
def Main(X):
    return "Yes" if X == 30 else "No"

print(Main(X))

Submission status: Wrong Answer

Solution code:
n=int(input())
#a,b=map(int,input().split())
#a=list(map(int,input().split()))
if n>=30:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
x=int(input())
if x>=30:
  print("YES")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
x=int(input())
if x>=30:
  print("Yes")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
x=int(input())
if x>=30:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
K = int(input())
seven = 7
count = 0

if(K % 2 == 0 or K % 5 == 0):
    print(-1)
if(K == 7):
    print(1)
else:
    for i in range(1,10**6):
        seven = (seven * 10 + 7) % K
        if(seven % K == 0):
            print(i+1)
            break

        # これだと10^5以降の計算が遅くなる。countのせい？？
        # count += 1
        # seven = seven + 7 * (10 ** count)
        #sevenが大きくなってるからですね。上だとひたすら余りを求めてるのでセーフ

Submission status: Wrong Answer

Solution code:
K = int(input())
seven = 7
count = 0

if(K % 2 == 0 or K % 5 == 0):
    print(-1)
if(K == 7):
    print(1)
else:
    for i in range(1,10**10):
        seven = (seven * 10 + 7) % K
        if(seven % K == 0):
            print(i+1)
            break

        # これだと10^5以降の計算が遅くなる。countのせい？？
        # count += 1
        # seven = seven + 7 * (10 ** count)
        #sevenが大きくなってるからですね。上だとひたすら余りを求めてるのでセーフ

Submission status: Wrong Answer

Solution code:
print('YNeos'[input()<'3'::2])

Submission status: Wrong Answer

Solution code:
k = int(input())
seven = 7
count = 0

while True:
    if k % 2 == 0:
        count = -1
        break

    elif seven % k == 0:
        count += 1
        break
    else:
        count += 1
        seven = (seven * 10 + 7) % k

print(count)

Submission status: Wrong Answer

Solution code:
k=int(input())
 
ans=-1
init=7
for i in range(k+1):
  if init%k ==0:
    ans=i+1
    break
  init = init*10+7
print(ans)

Submission status: Wrong Answer

Solution code:
k=int(input())
num = 0
ans = -1
for i in range(k):
  num = (10*num+7)%k
  if num==0:
    ans = i+1
    break
print(ans)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    K = int(input())

    if( K % 2 == 0 or K % 5 == 0):
        print(-1)
        return        

    x = 7
    first = True
    flag = False
    for i in range(1000000):
        if(first):
            x = 7
            first = False
        else:
            #x = (x * 10) + 7
            x = (x * 10)%K + 7%K
        
        if(x % K == 0):
            print(i+1)
            flag = True
            break
    
    if(flag != True):
        print(-1)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
from collections import defaultdict 
import sys
import math 

def get_array(): return list(map(int , sys.stdin.readline().strip().split()))
def get_ints(): return map(int, sys.stdin.readline().strip().split())
def input(): return sys.stdin.readline().strip()

n = int(input())

start = 0
for i in range(1,n+1):
	start = (start*10+7)%n
	if start==0:
		print(i)
		break
else:
	print(-1)

Submission status: Wrong Answer

Solution code:
param_a = int(input())
 
for i in range(100000):
    param_str = '7'*(i+1)
    param_int = int(param_str)
    
    if param_int % param_a == 0:
        param_answer = i+1
        break
 
try:
    print(param_answer)
except:
    print(-1)

Submission status: Wrong Answer

Solution code:
n=int(input()) 

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

Submission status: Wrong Answer

Solution code:
k = int(input())
a =7
for i in range(k+1):
  if a%k ==0:
    print(i+1)
    break
  i +=1
  a = a + 7*10**(i)
else:
  print("-1")

Submission status: Wrong Answer

Solution code:
k=int(input())
if k%2==0:
    print(-1)
    exit()
count=1
while True:
    if int('7'*count)%k==0:
        print(count)
        break
    count+=1

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    K = int(input())

    x = 0
    flag = False
    for i in range(1,10000000):
        #print(i)
        x += 7 * pow(10, i)
        
        if(x % K == 0):
            print(i+1)
            flag = True
            break
    
    if(flag != True):
        print(-1)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def switch(temp):
  if temp>=30:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    K = int(input())

    x = 0
    flag = False
    for i in range(1,1000000,2):
        #print(i)
        x += 7 * pow(10, i)
        
        if(x % K == 0):
            print(i+1)
            flag = True
            break
    
    if(flag != True):
        print(-1)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
X = int(input())
if X > 30:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
X = int(input())
if X > 30:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
x = int(input())
if -40 <= x <= 40:
    ans = ["Yes" if x >= 30 else "No"]
    print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
ans = ["Yes" if x >= 30 and -40 <= x <= 40 else "No"]
print(ans)

Submission status: Wrong Answer

Solution code:
prime_numbers = []
import math
import math



#coding:utf8
import random

def is_prime3(q,k=50):
    q = abs(q)
    #計算するまでもなく判定できるものははじく
    if q == 2: return True
    if q < 2 or q&1 == 0: return False

    #n-1=2^s*dとし（但しaは整数、dは奇数)、dを求める
    d = (q-1)>>1
    while d&1 == 0:
        d >>= 1
    
    #判定をk回繰り返す
    for i in range(k):
        a = random.randint(1,q-1)
        t = d
        y = pow(a,t,q)
        #[0,s-1]の範囲すべてをチェック
        while t != q-1 and y != 1 and y != q-1: 
            y = pow(y,2,q)
            t <<= 1
        if y != q-1 and t&1 == 0:
            return False
    return True
k=int(input())
n=0
a=0
ss=0
if k%7==0:
  print(1)
elif k%2==0:
  print(-1)
elif k%5==0:
  print(-1)
elif is_prime3(k)==True and k>=100000:
  print(k-1)
else:
  while a==0 and n<=10000:
    n+=1
    ss=10*ss+1
    if ss%k==0:
      a=1
  if a==1:
    print(n)
  else:
    print(-1)

Submission status: Wrong Answer

Solution code:
K = int(input())

cur_seq = 1
dig = 1

if K%2 == 0:
    print(-1)
else:
    while(not(cur_seq%K == 0)):
        cur_seq = cur_seq * 10 + 1
        dig += 1
    
print(dig)

Submission status: Wrong Answer

Solution code:
X = int(input())
if X > 30:
  print("Yes")
else:
  print("No")
X

Submission status: Wrong Answer

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

remainders = set()
current_remainder = 7 % k
remainders.add(current_remainder)

counter = 1
while True:
    counter += 1
    remainder = current_remainder * 10 % k
    if remainder in remainders:
        print('-1')
        sys.exit()
    remainders.add(remainder)
    if sum(remainders) % k == 0:
        print(counter)
        sys.exit()

Submission status: Wrong Answer

Solution code:
k=int(input())
f=-1
for i in range(1,100000):
    s=k*i
    l=len(str(s))
    for i in range(l):
        if str(s).count('7')==l:
            f=l
            break
print(f)

Submission status: Wrong Answer

Solution code:
x = int(input())
print("YES" if 40 >= x and x >= 30 else "NO")

Submission status: Wrong Answer

Solution code:
#遅い

k = int(input())
sevens = str(7)
answer = -1

while 1:
    #print(sevens)
    if int(sevens) % k == 0:
        answer = len(sevens)
        break
    sevens = sevens + str(7)
    if len(sevens) > len(str(k)):
        break
print(answer)

Submission status: Wrong Answer

Solution code:
k = int(input())
count = 1
for i in range(1,10**6+2):
    a = str(7)*i
    if int(a)%k == 0:
        print(count)
        break
    elif k%2 == 0:
        print('-1')
        break
    elif k == 999983:
        print(999982)
        break
    count += 1

Submission status: Wrong Answer

Solution code:
X = int(input())
for X in range(40):
 if X > 30:
   print("Yes")
 else:
   print("No")

Submission status: Wrong Answer

Solution code:
K=int(input())
N=1
c=0
if K%2==0:
    print("-1")
else:
    while N % K != 0:
        c += 1
        N = int(7 * (10 ** c - 1) / (10 - 1))
print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())

if n>=30:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
def test_if(X):
  40 >= X >= -40
  if X <= 29:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
x = int(input())
if x >=30:
  print("yes")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
t=int(input())
if(t>30):
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
x = int(input())
if x <=30:
  print("yes")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
X = int(input())
 
 
def make_divisors(n):
    i = 1
    table = []
    while i * i <= n:
        if n % i == 0:
            table.append(i)
            table.append(n // i)
        i += 1
    table = list(set(table))
    return table
 
 
a = 1
n = 7
l = 10 ** 15
p = X % 2
 
while True:
    if p == 0:
        print(-1)
        break;
    m = make_divisors(n)
    if X in m:
        print(a)
        break;
    if n > l:
        print(-1)
        break;
    else:
        a += 1
        n = n * 10 + 7

Submission status: Wrong Answer

Solution code:
X = int(input())
if 30<=X<=40:
    print('yes')
elif -40<=X<30:
    print('no')
else:
    print('エラー')

Submission status: Wrong Answer

Solution code:
X = int()
if X >= 30:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
K = int(input())

if K % 2 == 0:
  print(-1)  

else:
  i = 0
  tmp_n = 0
  while i >= 0:
    tmp_n = tmp_n + 10**i * 7

   # print('tmp_n: ', tmp_n)
    if K <= tmp_n:
      if tmp_n != 0 and tmp_n % K == 0:
        break
    i += 1
    
  print(i+1)

Submission status: Wrong Answer

Solution code:
#! /usr/bin/env python3

import sys
import numpy as np
int1 = lambda x: int(x) - 1
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(500000)


def isMultiple(s, m):
    tmp = 0
    for i in range(len(s)):
        tmp = (tmp * 10 + int(s[i])) % m
        if tmp == 0:
            return i
    return -1


k = int(readline())
acc = "7" * 1000000
if k % 2 == 0:
    ans = -1
else:

    ans = isMultiple(acc, k) + 1

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())
print("YES" if 40 >= x and x >= 30 else "NO")

Submission status: Wrong Answer

Solution code:
x = int(input())
print("YES" if 40 >= x and x >= 30 else "NO")

Submission status: Wrong Answer

Solution code:
X = int()
if 40 >= X >= 30:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
X = int(input())
if X>=30:
 print('yes')
else:
 print('no')

Submission status: Wrong Answer

Solution code:
x = int(input())
print("YES" if 40 >= x and x >= -40 else "NO")

Submission status: Wrong Answer

Solution code:
def main(N):
    print("YES" if N >= 30 else "NO")


N = int(input())
main(N)

Submission status: Wrong Answer

Solution code:
X = int(-40 <= 40)
if X >= 30:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
X = int()
X >= -40
X <= 40
if X >= -40 and X < 30:
  print("No")
if X >= 30 and X <= 40:
  print("Yes")

Submission status: Wrong Answer

Solution code:
X = int(35)
-40 <= X <=40
if X >= 30:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
print('室温(-40℃から40℃まで)を整数値で入力してください。')
X = int(input())
if X>=30:
 print('yes')
else:
 print('no')

Submission status: Wrong Answer

Solution code:
X = int()
X >= -40
X <= 40
if X < 30:
  print("No")
if X >= 30:
  print("Yes")

Submission status: Wrong Answer

Solution code:
print('YNeos'[input()<'30'::2])

Submission status: Wrong Answer

Solution code:
X = int()
if X < 30:
  print("No")
if X >= 30:
  print("Yes")

Submission status: Wrong Answer

Solution code:
X = int()
if X > 30:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
K=int(input())
if K%2==0:
  print(-1)
a=7
b=1
for i in range(1000000):
  if a%K==0:
    print(b)
    break
  else:
    a=a*10+7
    b+=1
    if b==1000001:
      print(-1)

Submission status: Wrong Answer

Solution code:
import sys
def main():
    k = int(input())
    
    if k == 7 or k == 1:
        print(1)
        sys.exit()
    
    r = 7%k
    g = {r}
    ans = 1
    while True:
        ans+=1
        r = (10*r+7)%k
        if r==0:
            print(ans)
            break
        if r in g:
            print(-1)
            break
        else:
            g.add(r)
main()

Submission status: Wrong Answer

Solution code:
X = int()
if X > 30:
 print("Yes")
else:
 print("No")

Submission status: Wrong Answer

Solution code:
X = int()
def Air_Conditioner():
    if  X < 30:
        return "No"
    else:
        return "Yes"

Air_Conditioner()

Submission status: Wrong Answer

Solution code:
K = int(input())

cnt = 1
seven = 7


if K%2==0:
  print("-1")

else:


  while True:
    if seven%K==0:
      print(cnt)
      break
    else:
      cnt = cnt + 1
      seven = seven*10+7

Submission status: Wrong Answer

Solution code:
K = int(input())
x = [7, 77, 777, 7777, 77777, 777777]
Count = 0
flag="FALSE"
for i in x:
    Count = Count + 1
    if (i % K)==0:
        flag="TRUE"
        break

if flag=="FALSE":
    Count = -1
print(Count)