Problem:


Score: 100 points

Problem Statement

Takahashi the Jumbo will practice golf.

His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive).

If he can achieve the objective, print OK; if he cannot, print NG.

Constraints

All values in input are integers.

1 \leq A \leq B \leq 1000

1 \leq K \leq 1000

Input

Input is given from Standard Input in the following format:

K
A B

Output

If he can achieve the objective, print OK; if he cannot, print NG.

Sample Input 1

7
500 600

Sample Output 1

OK

Among the multiples of 7, for example, 567 lies between 500 and 600.

Sample Input 2

4
5 7

Sample Output 2

NG

No multiple of 4 lies between 5 and 7.

Sample Input 3

1
11 11

Sample Output 3

OK



Sample input:
7
500 600


Sample output:
OK

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = list(map(int,input().split()))
if A <= B - (B % K):
    print("OK")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
year = 0
amount = 100
while True:
  if amount >= X:
    break
  amount = math.floor(amount * 1.01)
  year += 1
print(year)

Submission status: Wrong Answer

Solution code:
ini = lambda : int(input())
inm = lambda : map(int,input().split())
inl = lambda : list(map(int,input().split()))
gcd = lambda x,y : gcd(y,x%y) if x%y else y
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])
    if arr==[]:
        arr.append([n, 1])
    return arr
def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)
    divisors.sort()
    return divisors

#maincode-------------------------------------------------
k = ini()
a,b = inm()
a = a//k
if a % k != 0:
    a += 1
b = b//k
if b >= a:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int,input().split())
flag = 0
for i in range(A,B+1):
  if i%K == 0:
    flag += 1
    print("Yes")
    break
if flag == 0:
  print("NG")

Submission status: Wrong Answer

Solution code:
# We Love Golf
K = int(input())
A, B = map(int, input().split())
if K == 1:
    print('OK')
else:
    print(['NG', 'OK'][(B % K) < (B - A)])

Submission status: Wrong Answer

Solution code:
# We Love Golf
K = int(input())
A, B = map(int, input().split())
if K == 1:
    print('OK')
else:
    print(['NG', 'OK'][(K - (A % K)) < B - A])

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
A, B = map(int, input().split())
n = math.floor(B / K) - math.floor(A / K)
if n >= 0:
    print('OK')
elif n < 0:
    print('NG')

Submission status: Wrong Answer

Solution code:
n = int(input())
a, b = map(int, input().split())
for i in range(a, b+1):
  if(n%i==0):
    print("OK")
    exit(0)
print("NG")

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
x=0
for i in range(a,b+1):
    if i%k==0:
        print('OK')
        break
print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int,input().split())

ans = 0

for i in range(a,b+1):
    if i%7 == 0:
        ans += 1
if ans > 0:  
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int,input().split())

ans = 0

for i in range(a,b+1):
    print(i)
    if i%7 == 0:
        ans += 1
if ans > 0:  
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int,input().split())

ans = 0

for i in range(a,b):
    if i%7 == 0:
        ans += 1
if ans > 0:  
    print("OK")

Submission status: Wrong Answer

Solution code:
k= int(input())
a,b =map(int,input().split())
if k==1:
    print("OK")
elif k >b-a:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
k= int(input())
a,b =map(int,input().split())
if k >b-a:
    print("NG")
elif k==1:
    print("OK")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
x = int(input())

y = 100
n = 0
while y < x:
    n += 1
    y += y // 100
print(n)

Submission status: Wrong Answer

Solution code:
x = [list(map(int, input().split())) for i in range(2)]
k = x[0][0]
a = x[1][0]
b = x[1][1]
if a == b:
  if a % k == 0:
    print('OK')
  else:
    print('NG')
else:
  if (b - a) / k < 1:
    print('NG')
  else:
    print('OK')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
p = B - A + 1
if p >= K:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
import math
from decimal import Decimal
a = int(input())
o = 100
c = 0 
while True:
  o = math.floor(o * 1.01)
  c = Decimal(c + 1)
  if o >= a:
    print(c)
    break

Submission status: Wrong Answer

Solution code:
k = int(input())
score = list(map(int,input().split()))

answer = k - (score[0] % k)
if answer + score[0] <= score[1]:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
print("OK" if k<=abs(a-b)+1 else "NG")

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
A, B = map(int, input().split())

if math.ceil(A/K)*4 <= B:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

if B-A+1 >= K:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
K=int(input())
ans = False
M,N = map(int,input().rstrip().split(" ")) 
#print(K,M,N)
for number in range(M,N+1):
    if number%K==0:
        ans = True
if ans:
    print("YES")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K=int(input())
ans=False
M,N = map(int,input().rstrip().split(" ")) 
#print(K,M,N)
for number in range(M,N+1):
    if number%K==0:
        ans=True
if ans:
    print("YES")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
 
c = A / K
d = int(c)
if d == 0:
    d = 1
b = d * K
flag = False
 
if b == B:
  flag = True
b += K
if b <= B:
  flag = True
 
if flag == True:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

c = A / K
b = int(c) * K
flag = False

if b == B:
  flag = True
b += K
if b <= B:
  flag = True

if flag == True:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

c = A / K
b = c * K
flag = False

if b == B:
  flag = True

b += K
if b <= B:
  flag = True

if flag == True:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

c = A / K
b = c * K

if b == B:
  print("OK")
elif b + K <= B:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int, input().split())

for i in range(a,b+1):
    if i % k ==0:
        print('OK')
    else:
        print('NG')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int, input().split())

for i in range(a,b+1):
    if i % k ==0:
        print('OK')
        exit

print('NG')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int, input().split())

for i in range(a,b+1):
    if i % k ==0:
        print('OK')
        break

print('NG')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())

if k % 7 == 0 and a <= k <= b:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

if B - (B % K) > A:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

if K == 1:
    print('OK')
elif B - (B % K) > A:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
print("OK" if (a-1)//k!=(b-1)//k or k==1 else"NG")

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
print("NG" if (a-1)//k==(b-1)//k else"OK")

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split())

if int(a/k + 1)*k <= b:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a , b = map(int,input().split())

flag = 0
for i in range(a ,b + 1, 1):
	if i % k == 0:
		flag = flag + 1
		break

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

Submission status: Wrong Answer

Solution code:

K = int(input().rstrip())
distance_range = list(map(int,input().split()))
if (distance_range[1]//K)*K >= distance_range[0]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = int(input())
list=list(map(int,input().split()))

b=list[0]//a
c=list[1]//a

if c-b>=1:
	print("OK")

else:
  print("NG")

Submission status: Wrong Answer

Solution code:
a = int(input())
list=list(map(int,input().split()))

b=list[1]-list[0]+1

if a <= b:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())
if a % k != 0 and b % k != 0 and a//k == b//k:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
K = int(input())
a,b = map(int,input().split())
for n in range(a,b):
  if n%K == 0:
    print("OK")
  else:
    print("NG")

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
check=True
for i in range (a,b+1):
    if k%i==0:
       check=False

if check:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())

for i in range (a,b+1):
    if k%i==0:
        print('ok')
        exit()
print('ng')

Submission status: Wrong Answer

Solution code:
n=int(input())
a,b=map(int,input().split())
c=a/n
d=b/n
if abs(c-d)>=1 or abs(c-d)==0:
  print('OK')
else :
  print('NG')

Submission status: Wrong Answer

Solution code:
n=int(input())
a,b=map(int,input().split())
c=a/n
d=b/n
if abs(c-d)>=1:
  print('OK')
else :
  print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split())
count = 0
 
for i in range(b-a):
  if (a + i) % k == 0:
    count += 1

print("OK" if count > 0 else "NG")

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = list(map(int, input().split()))
if k == 1 or k <= ((b - a) + (a % k)):
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = list(map(int, input().split()))
if k == 1 or (int(a / k) * k) + k <= b:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

def main():

    K = int(input())
    A, B = map(int, input().split())

    numA = A // K
    numB = B // K

    if numB - numA > 0:
        ans = 'OK'

    else:
        ans = 'NG'

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=map(int,input().split())
if (A-1)/K == B/K:
  print('NG')
else:
  print('OK')

Submission status: Wrong Answer

Solution code:
# abc165_a.py
# https://atcoder.jp/contests/abc165/tasks/abc165_a

# A - We Love Golf /
# 実行時間制限: 2 sec / メモリ制限: 1024 MB
# 配点: 100点

# 問題文
# ジャンボ高橋君はゴルフの練習をすることにしました。
# ジャンボ高橋君の目標は飛距離を Kの倍数にすることですが、ジャンボ高橋君の出せる飛距離の範囲は A 以上 B以下です。
# 目標の達成が可能であれば OK と、不可能であれば NG と出力してください。

# 制約
#     入力はすべて整数
#     1≤A≤B≤1000
#     1≤K≤1000

# 入力
# 入力は以下の形式で標準入力から与えられる。
# K
# A B

# 出力
# 目標の達成が可能であれば OK と、不可能であれば NG と出力せよ。

# 入力例 1
# 7
# 500 600

# 出力例 1
# OK

# 7の倍数のうち、たとえば 567 が 500 以上 600以下の範囲にあります。

# 入力例 2
# 4
# 5 7

# 出力例 2
# NG

# どんな 4の倍数も、5 以上 7以下の範囲にはありません。

# 入力例 3
# 1
# 11 11

# 出力例 3
# OK


global FLAG_LOG
FLAG_LOG = False


def log(value):
    # FLAG_LOG = True
    # FLAG_LOG = False
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    # S = lines[0]
    K = int(lines[0])
    A, B = list(map(int, lines[1].split()))
    # values = list(map(int, lines[1].split()))
    # values = list(map(int, lines[2].split()))
    # values = list()
    # for i in range(N):
    #     values.append(int(lines[i]))
    # valueses = list()
    # for i in range(N):
    #     valueses.append(list(map(int, lines[i+1].split())))

    if (B+1-A) < K:
        result = 'NG'
    else:
        result = 'OK'

    return [result]


# 引数を取得
def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines


# テストデータ
def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['7', '500 600']
        lines_export = ['OK']
    if pattern == 2:
        lines_input = ['4', '5 7']
        lines_export = ['NG']
    if pattern == 3:
        lines_input = ['1', '11 11']
        lines_export = ['OK']
    return lines_input, lines_export


# 動作モード判別
def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode


# 主処理
def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(2)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    # if mode > 0:
    #     print(f'lines_input=[{lines_input}]')
    #     print(f'lines_export=[{lines_export}]')
    #     print(f'lines_result=[{lines_result}]')
    #     if lines_result == lines_export:
    #         print('OK')
    #     else:
    #         print('NG')
    # finished = time.time()
    # duration = finished - started
    # print(f'duration=[{duration}]')


# 起動処理
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split())
print('OK' if b - a + 1 >= k else 'NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int,input().split())

if K == 1:
    print("OK")
elif A//K != B//K:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K =int(input())
A,B = map(int,input().split())
if (B/K) - (A/K) >= 1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K =int(input())
A,B = map(int,input().split())
if (B//K) - (A//K) >= 1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

for i in range(A, B +1):
  if K%i == 0:
    print("OK")
    exit(0)
print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

for i in range(A, B +1):
  if K%i == 0:
    print("Yes")
    exit(0)

print("No")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

C = B-A
D = B%K - A%K

if C >= K:
    print('OK')

elif C == 0 and A%K == 0:
    print('OK')

elif D != 0:
    print('OK')

else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

if B//K - A//K:
    print('OK')

elif A == B:
    if A%K:
        print('NG')
    else:
        print('OK')

else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
if B == 0:
    print('NG')

elif A == B:
    if A%K == 0:
        print('OK')
    else:
        print('NG')

elif B//K == A//K:
    print('NG')

else:
    print('OK')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

if A == B:
    if A%K == 0:
        print('OK')
    else:
        print('NG')

elif B//K == A//K:
    print('NG')

else:
    print('OK')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
print("NOGK"[(b-a+1)>=k::2])

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())

import math

if math.floor(b/k)-math.ceil(a/k)>=1:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
x = int(input())

year = 0 # 答え
money = 100 # 初期値の100円

# x円以上になるまでループを回す
while money < x:
    money *= 1.01
    money = int(money)
    year += 1

print(year)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
now_money=100
i = 0

while X > now_money:
    now_money += now_money *0.01
    now_money = math.floor(now_money)
    i += 1
print(i)

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

can_K_times = False
if (A % K) == 0 or (B % K) == 0:
    can_K_times = True
elif (A / K) != (B / K):
    can_K_times = True


if can_K_times:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

can_K_times = False
if (A % K) == 0 or (A % K) == 0:
    can_K_times = True
elif (A / K) != (B / K):
    can_K_times = True


if can_K_times:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
if B-A+1 >= K:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
A,B = map(int,input().split())

if K == 1:
    print("OK")
    exit()

x = math.floor(A/K)
y = math.floor(B/K)

if y-x > 0:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
A,B = map(int,input().split())

if K == 1:
    print("OK")
    exit()

x = math.floor(A/K)
y = math.floor(B/K)

if y-x >= 0:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
A,B = map(int,input().split())

x = math.floor(A/K)
y = math.floor(B/K)

if y-x >= 0:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
n = int(input())
a, b = map(int, input().split())

if n//a == n//b:
  print("NG")
else:
  print("OK")

Submission status: Wrong Answer

Solution code:
n = int(input())
a, b = map(int, input().split())

if n//b == n//b:
  print("NG")
else:
  print("OK")

Submission status: Wrong Answer

Solution code:

K = int(input())
A , B = list(map(int,input().split()))

for i in range(A , B+1):
    print(i)
    if ( i % K ) == 0 :
        print("OK")
        exit()
print("NG")

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())

ans='NO'
for i in range(a,b+1):
  if i%k==0:
    ans='YES'

print(ans)

Submission status: Wrong Answer

Solution code:
X=int(input())
c=0
i=100
for a in range(100000000000000000):
    c+=1
    i=int(100*i*1.01/100)
    if i >=X:
        print(c)
        break

Submission status: Wrong Answer

Solution code:
def main():
  k = int(input())
  a,b = map(int,input().split())
  flag = 0
  for i in range(a, b + 1):
        if i % k == 0:
            flag += 1
  if flag > 0:
      print('OK')
  else:
      print('NO')

main()

Submission status: Wrong Answer

Solution code:
import sys
K = int(input())
a, b = map(int, input().split())
for i in range(a, b+1):
  if i%K == 0:
    print('Yes')
    sys.exit()
print('No')

Submission status: Wrong Answer

Solution code:
x = int(input())
money = 100
year = 0
while money < x:
    money += money / 100
    year += 1
print(year)

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

s = A//7 #開始値を設定
e = B//7 #終了値を設定

ans = "NG"

for i in range(s, e+1):
  if A < (K * i) < B:
    ans = "OK"
    break
  else:
    pass

print(ans)

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split())

for i in range(a, b + 1):
#    print(i)
    if i % k == 0:
        print("OK")
        exit()

print("No")

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int, input().split())

if A % K == 0:
    print('OK')
else:
    if B % K ==0:
        print('OK')
    else:
        if (A // K)*(K+1) <= B:
            print('OK')
        else:
            print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

s = A//7 #開始値を設定
e = B//7 #終了値を設定

ans = "NG"

for i in range(s, e):
  if A < K * i < B:
    ans = "OK"
    break
  else:
    pass

print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
j,k=map(int,input().split())
f=1
if k-j>=n:
  print('OK')
  f=0
else:
  for i in range(j,k):
    if i%n==0:
      print('OK')
      f=0
      break
if f==1:
  print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int, input().split())

if (B-A+1) // K >= 1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
def main():
    k = int(input())
    a, b = map(int, input().split())
    for i in range(a, b+1):
        if i%k == 0:
            print("Yes")
            return
    print("No")

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = list(map(int,input().split()))
ans = 'NG'

for i in range(a,b):
  if i % k == 0:
    ans = 'OK'

print(ans)

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = list(map(int,input().split()))

for i in range(a,b):
  if k % i == 0:
    print('OK')
    break;

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int,input().split())

if A%K==0 or B%K==0:
  print("OK")
else:
  if (B-A+1)>=K:
    print("OK")
  else:
    print("NG")

Submission status: Wrong Answer

Solution code:
x=int(input())
result=100
count=0
while x>result:
    count+=1
    result+=result//100
print(count)

Submission status: Wrong Answer

Solution code:
n = int(input())
a, b = map(int, input().split())
for i in range(10000):
  if a <= n * i <= b:
    print("OK")
    break
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

a = A // K
b = B // K

if (K<=(b-a) and 7<K) or K==1:
    print('OK')

else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())

for i in range(1,1001):
  k*=i
  if a<=k<=b:
    print('OK')
    exit()
  else:
    continue

print('NG')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())

for i in range(1,1001):
  k*=i
  if a<=k<=b:
    print('Yes')
    exit()
  else:
    continue
print('No')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())

for i in range(1,1001):
  k*=i
  if a<=k<=b:
    print('Yes')
    break
  else:
    print('No')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())

a = A // K
b = B // K

if K<=(b-a) or K==1:
    print('OK')

else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())

for i in range(a,b+1):
    if i % k == 0:
        print('OK')
        break
    else:
        print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())

for i in range(a,b+1):
    if i % k == 0:
        print('OK')
        break
print('NG')

Submission status: Wrong Answer

Solution code:
K = input()
NUM = list(map(int,input().split()))
count = 0
for num in range(NUM[1]-NUM[0]+1):
  if (NUM[1]+num % 7 == 0):
    print("OK")
    count = 1
    break

if (count == 0):
  print("NG")

Submission status: Wrong Answer

Solution code:
k = int(input())
a = input().split()
n = int(a[1]) - int(a[0])
count = 0

if n == 0:
    if n % k == 0:
        print("OK")
    else:
        print("NG")
    pass
elif n != 0:
    for i in range(int(a[0]), int(a[1])):
        if i % k == 0:
            count += 1
        else:
            continue
    if count == 0:
        print("NG")
    else:
        print("OK")

Submission status: Wrong Answer

Solution code:
k = int(input())
a = input().split()
n = int(a[1]) - int(a[0])
count = 0

if n == 0:
    if n % k == 0:
        print("OK")
    else:
        print("NG")
    pass
elif n != 0:
    for i in range(int(a[0]), int(a[1])):
        if i % k == 0:
            count += 1
        else:
            continue
elif count == 0:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
k = int(input())
a = input().split()
n = int(a[1]) - int(a[0])
count = 0

if n == 0:
    print("NG")
else:
    for i in range(int(a[0]), int(a[1])):
        if i % k == 0:
            count += 1
        else:
            continue
if count == 0:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int, input().split())

for i in range(1,1000):
  if a<= k*i <= b:
    print("OK")
    exit()
  else:
    pass
  
print("No")

Submission status: Wrong Answer

Solution code:
from sys import stdin, setrecursionlimit
#input = stdin.buffer.readline
setrecursionlimit(10 ** 7)

from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
from collections import deque, defaultdict, Counter
from itertools import combinations, permutations, combinations_with_replacement
from itertools import accumulate
from math import ceil, sqrt, pi, radians, sin, cos

MOD = 10 ** 9 + 7
INF = 10 ** 18

#N = int(input())
#N, M = map(int, input().split())
#A = list(map(int, input().split()))
#A = [int(input()) for _ in range(N)]
#ABC = [list(map(int, input().split())) for _ in range(N)]
#S = input()
#S = [input() for _ in range(N)]

Submission status: Wrong Answer

Solution code:
x = int(input())
money = 100
n = 0
while True:
    n = n + 1
    money = int(money * 1.01)
    if money >= x:
        print(n)
        break

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())

for i in range(a,b+1):
    if a == b:
        print('OK')
        break
    elif i%k == 0:
        print("OK")
        break
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())

if a == b:
    print("OK")

for i in range(a,b+1):
    if i%k == 0:
        print('OK')
        break
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())

if a == b:
    print("OK")

for i in range(a,b+1):
    if i%k == 0:
        print('OK')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())

for i in range(a,b+1):
    if i&k == 0:
        print('OK')
        break
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = input().split()
x = False

for i in range(2, 501):
    if int(A) <= K*i <= int(B):
        x = True

if x:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=list(map(int, input().split()))
ans='No'
for i in range (A,B+1):
    if i%K:
        print('OK')
        break
    else:
        print('NG')
        break

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=list(map(int, input().split()))
ans='No'
for i in range (A,B+1):
    if i%K:
        ans='OK'
        break
print(ans)

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=list(map(int, input().split()))
ans='No'
for i in range (A,B+1):
    if A<K*i and K*i<B:
        ans='OK'
        break
print(ans)

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = list(map(int, input().split()))
s = [i for i in range(a, b) if i % k == 0]
if a == b and a % k == 0:
	print('OK')  
elif len(s)==0:
	print('NG')	
else:
	print('OK')

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = list(map(int, input().split()))
s = [i for i in range(a, b) if i % k == 0]
if len(s)==0:
	print('NG')
else:
	print('OK')

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int,input().split())

for i in range(A,B+1):
    if i%K==0:
        print("OK")
        exit()
print("NO")

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split())
if k - 1 <= b - a:
    print("OK")
else:
    for i in range(a, b + 1):
        if i % k == 0:
            print("OK")
            break
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
n = int(input())
a, b = input().split()
a,b = int(a) , int(b)
flag = True
for i in range(1000,n,-1):
    if i%n==0:
        if a<=i and i<=b:
            print('OK')
            flag = False
            break
if flag:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
if B - A + 1 >= K:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int, input().split())
count = 0
if A%K == 0:
  count += 1
if B%K == 0:
  count += 1
if abs(A-B) >= K:
  count += 1

if count > 0:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int, input().split())
count = 0
for i in range(A-1,B+1):
  if i%K == 0:
    count += 1

if count != 0:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int, input().split())
count = 0
for i in range(A-1,B+1):
  if i%K == 0:
    count += 1

if count != 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int, input().split())
if B-A >= K-1:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split(" "))
if b%k >= b-a:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int,input().split())
for i in range(a - 1, b):
  if i % k == 0:
    print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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


ans = "NG"
for i in range(1,c+1):
    z = i*a
    if a<=z<=b:
        ans="OK"
        break

print(ans)

Submission status: Wrong Answer

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

if a != 1:
    d = c - b
    if a <= d:
        print("OK")
    else:
        print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

if a != 1:
    d = c - b
    if b <= d:
        print("OK")
    else:
        print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

if a != 1:
    d = int(b / a)
    e = a * (d + 1)

    if e < c:
        print("OK")
    else:
        print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

d = int(b / a)
e = a * (d+1)

if e < c:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

d = int(b / a)
e = a * (d+1)

if e <= c:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
print('OK' if B-A>=K-1 else 'NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
print('OK' if B-A<=K else 'NG')