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 = map(int, input().split())

if A//K < B//K:
  print("OK")
elif A//K == B//K and 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 a == b and a % k == 0:
    print("OK")
elif b// k - a // k > 0:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

flg = 0

for i in range(A,B):
    if i % K == 0:
        flg = 1
        break


if flg == 1:
    print('OK')
elif K == 1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

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


print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
n=1
while k*n<=b:
  n+=1
print('OK' if 100<=(n-1)*k<=120 else 'NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b =  map(int,input().split())
if (a/k)*k + k <= b:
    print ('OK')
else:
    print ('NO')

Submission status: Wrong Answer

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

aa=a/n
bb=b/n
nn=bb-aa

if nn > 1 or n==1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = [int(i) for i in input().split()]

i = k
while(i < a):
    #print(i)
    i += k
#print(i)
if k <= 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:
    res_k = a*k
else:
    res_k = (a//k + 1)*k

if res_k >= a and res_k <= b:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input().rstrip())
A, B = map(int, input().rstrip().split())
amari = A % K
if K == 1:
    print('OK')
elif K == A or K == B:
    print('OK')
elif (A - amari) + K <= B:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
p=a//k
q=b//k
while True:
    if p%k==0:
        print('OK')
        break
    elif p%k!=0 and p!=q:
        p+=1
    else:
        print('NG')
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Awari = A // K
Bwari = -(-B // K)



if Awari == (Bwari-1):
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
flag=False
for i in range(A,B):
  if i%K==0:
    flag=True
    break
if flag:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = (int(x) for x in input().split())
if b - a + 1 >= k:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
# import math
# from collections import Counter

# N = int(input()) # 1行, 単数
# arg = list(map(int, input().split())) # 1行, 配列
# D = Counter(arg) # 出現数カウント

# print('Yes')
# print('No')
# print()
N = int(input()) # 1行, 単数
arg = list(map(int, input().split())) # 1行, 配列

A = arg[0]
B = arg[1]
flag = "NG"

if A == B:
  if A % N == 0:
    flag = "OK"
else:
  for i in range(A,B):
    if i % N ==0:
      flag = "OK"
      break

print(flag)

Submission status: Wrong Answer

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

if A%K == 0:
    print("OK")
elif K*(int(A/K)+1) < B:
    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%k == 0:
        ans += 1
    else:
        ans += 0
if ans >= 1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
k=int(input())
n,m=map(int,input().split())
li=list(range(n,m+1))
for i in li:
  if i%k==0:
    print("OK")
    break
else:
  print("No")

Submission status: Wrong Answer

Solution code:
#---We Love Golf

K = int(input())
a, b = map(int, input().split())

judge = K + a


if(judge < b or K == 1):
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
#数値ひとつ
I = int(input())
#数値空白区切りで欲しいとき
N, M = map(int, input().split())
#文字欲しいとき
#N = input()
#それをListにしたいとき
#list = list(N)
#数値を受け取る数が未定かつリストにしたいとき
#list = list(map(int, input().split()))
#受け取る文字列が未定かつリストにしたいとき(Iは回数)
#list = [input() for i in range(I)]

flgok = False
for num in range(N, M):
    if num % I == 0:
        flgok = True
        break

if N == M:
    if N % I == 0:
        flgok = True

if flgok:
    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:
    if a%k == 0 or b&k == 0:
        print('OK')
    else:
        if b/k > a/k:
            print('OK')
        else:
            print('NG')

Submission status: Wrong Answer

Solution code:
#a
M = int(input())
N,K=map(int,input().split())
p=0
for i in range(N,K):
    if i%M==0:
        p=1
        break
if p==1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

if(1<a):
  if(a*K<=B):
    print("OK")
  else:
    print("NG")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
#########行列読み込み ##############################################
"""
from sys import stdin
n = int(stdin.readline().rstrip())
data = [stdin.readline().rstrip().split() for _ in range(n)]
print(data)
print(*data, sep='\n')
"""
##################################################################
#########入力系####################################################
"""
s =input()
s=list(input())
a=int(input())
x,y = map(int,input().split())	
li = input().split()	
li = list(map(int,input().split()))	
li = input().split('T')	
"""
##################################################################
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")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
if a%k==0:
    print("OK")
elif a*(a//k+1)<=b:
    print("OK")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
k=int(input())

a,b=(int(x) for x in input().split())

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

Submission status: Wrong Answer

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


P=A//K

if K*(P+1)>B:
    print('NG')
else:
    print('OK')

Submission status: Wrong Answer

Solution code:
a = int(input())
b, c= map(int, input().split())
for i in range(b, c+1):
    if i%a == 0:
        print("yes")
        break
    else:
        print("NG")
        break

Submission status: Wrong Answer

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

if c >= k or (c==0 and c%k==0):
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

if b - a >= k - 1: print("OK")
else:
    c = b % k
    d = a % k
    if d >= c or d == 0: print("OK")
    else: print("NG")

Submission status: Wrong Answer

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

if (B-A) >= K:
  print("OK")
else:
  for i in range(K):
    if ( A + i ) < B:
      if ( A + i ) % K == 0:
        print("OK")
        c = 1
        break
if c == 0:
  print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
N2 = [int(_) for _ in input().split()]


ret = "NG"
st = N2[0]
while True:
    st += 1
    if st % N == 0:
        ret = "OK"
        break
    elif st >= N2[1]:
        break

print(ret)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int, input().split())
 
if A%K == 0 or B%K == 0 or (B-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 i % K == 0:
        print('OK')
        exit()

print('NO')

Submission status: Wrong Answer

Solution code:
#整数の入力
N = int(input())
#スペース区切りの整数の入力
A, B = map(int, input().split())

a = int(A/N)
b = int(B/N)

if(b>a):
  print("OK")
elif((B%N)==0):
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if b - a >= k:
  print("OK")
elif b == a and 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')
    exit(0)
print('NO')

Submission status: Wrong Answer

Solution code:
s = [input() for i in range(2)]
n = int(s[0])
l = s[1].split()
n1 = int(l[0])
n2 = int(l[1])
gap=n2-n1
m="NG"
for i in range(gap):
    if i == n:
        m = "OK"
        break

print(m)

Submission status: Wrong Answer

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

if 1 < B//K - A//K:
  print("OK")
elif A//K == B//K and A%K <= B%K:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
import math

a=int(input())
li = list(map(int,input().split()))
if li[1]>=math.floor(1+li[0]/a)*a:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

flag = False

for i in range(b+1):
    if k * i >= a and k * i <= b:
        flag = True
if flag == True:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split(" "))
ret = B / K - A / K
if ret >= 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):
    if i % K == 0:
        print( 'OK' )
    else :
        print( 'NG' )

Submission status: Wrong Answer

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

#print(K)
#print(A)
#print(B)

for num in range(A, B):
  print(num)
  if num % K == 0:
    print("OK")
    sys.exit()


print("NG")

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())
if b // k - a// k > 0:
  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 a>k and (b-a)<k:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
def main():
  k = int(input())
  a, b = map(int,input().split())
  if a%k==0 or b%k==0 or b-a<k:
    print('OK')
  else:
    print('NG')

if __name__ == '__main__':
  main()

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("NO")

Submission status: Wrong Answer

Solution code:

K = int(input())
a, b = map(int, input().split())

a_mod_K = a % K
diff = K - a_mod_K

if a + diff <= b:
    result = "OK"
else:
    result = "NG"

print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

flg = False
for i in range(A, B):
	if i % K == 0:
		flg = True
		break

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

Submission status: Wrong Answer

Solution code:
K=int(input())

A,B=(int(x) for x in input().split())

a=A%K

b=K-a

c=A+b

if a!=0:
    if c >= B:
        print('No')
    else:
        print('Yes')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
k =int(input())

a,b = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
a = int(input())
b = input().split()
b[0] = int(b[0])
b[1] = int(b[1])
A = b[0] / a
B = b[1] / a
C = B - A
if C >= 1:
    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:
# -*- coding: utf-8 -*-

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

j_a = float(A)/float(K)
j_b = float(B)/float(K)

if(K == 1):
    print('OK')
elif(j_b-j_a >= 1):
    print('OK')
    
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = input()
k = int(k)
x = input().split()

a = int(x[0])
b = int(x[1])

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

if(a==b):
  if(a%k==0):
    print("OK")
    exit()

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

Submission status: Wrong Answer

Solution code:

N = int(input())
A = list(map(int, input().split())) 
sum = 0

for i in range(A[0],A[1]):
    if i % N ==0:
        sum +=1
if A[0] == A[1]:
    if A[0] % N ==0:
        print("OK")
    else:
        print("NG")
else:
    if sum == 0:
        print("NG")
    else:
        print("OK")

Submission status: Wrong Answer

Solution code:
from math import floor
k = int(input())
a, b = map(int, input().split())

if floor(b / k) - floor(a / k) >= 0 and b % k == 0 and a % k == 0:
    print('OK')
elif floor(b / k) - floor(a / k) > 0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

I =int(input())

A,B=list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる

if B-A>=I:
    print("OK")

if I==1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
N = int(input())
 
input_line = input()
Line = input_line.split()
Line = [int(s) for s in Line]
 
 
 
if Line[1]-Line[0] < N:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

if a!=b:
    if b//k > a//k:
        print("OK")
    else:
        print("NG")
else:
    if a%k==0:
        print("OK")
    else:
        print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#---We Love Golf

K = int(input())
a, b = map(int, input().split())

judge = K + a


if(judge <= b or K == 1):
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = [int(ch) for ch in input().split()]
if a == b:
    if a%k == 0:
        print('OK')
    else:
        print('NG')
else:
    modA = int(a/k)
    modB = int(b/k)
    if modA < modB:
        print('OK')
    else:
        print('NG')

Submission status: Wrong Answer

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

if a%k == 0:
    print("OK")
    exit()

ans = a-a%k + k

if ans <= b :
    print("OK")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=(int(x) for x in input().split())
if (A%K)>B-A:print('OK')
else:print('NG')

Submission status: Wrong Answer

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

for num in range(a, b):
  if num % K == 0:
    print('OK')
    break
else:
  print('NG')

Submission status: Wrong Answer

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

if B-A > K or K == 1:
  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 a <= k <= b:
    print('OK')
elif b - a >= k:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = list(map(int, input().split()))
flg = "NG"
for i in range(a, b + 1):

    if i >= k and i % a == 0:
        flg = "OK"
        break

print(flg)

Submission status: Wrong Answer

Solution code:
def main(K, A, B):
    a = int(A / K)
    b = int(B / K)
    if K > A or K > B:
        print('NG')
    elif A % K == 0:
        print('OK')
    elif a == b:
        print('NG')
    else:
        print('OK')


if __name__ == '__main__':
    K = int(input())
    A, B = map(int, input().split())
    main(K, A, B)

Submission status: Wrong Answer

Solution code:
X = input()
a, b = input().split()

c = int(a) / int(X)
d = int(b) / int(X)

if int(c) == int(d):
  print("NG")
else:
  print("OK")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys

K = int(input())
A,B = map(int, sys.stdin.readline().strip().split())

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

def main():

    input = stdin.readline

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

    
    for i in range(1001):
        if A <= i * K & B <= i * K:
            print("OK")
            return 0
    else:
        print("NG")

    
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

anum = a // k
bnum = b//k

if(bnum - anum >= 0):
    print("OK")
else:
    print('NG')

Submission status: Wrong Answer

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

def f(a,b,k):
	for j in range(a,b+1):
		if a % k == 0:
			return True
	return False
print 'OK' if f(a,b,k) else 'NG'

Submission status: Wrong Answer

Solution code:
k = int(input())
arr = input().split(" ")
m, n = int(arr[0]), int(arr[1])
if n%k>=2:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int, input().split())
if (k==1) or (b-a >= k):
    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('Yes')
        exit()
print('No')

Submission status: Wrong Answer

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

v = 0
for i in range(1000):
    if a <= v <= b:
        print('YES')
        exit()
    v += k

print('NG')

Submission status: Wrong Answer

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

if a == b:
    print('OK')
else:
    a //= k
    b //= k
    print('OK' if b-a > 0 else 'NG')

Submission status: Wrong Answer

Solution code:
from sys import stdin
import sys
import math

N = int(input())
A, B = list(map(int, stdin.readline().rstrip().split()))

if A % N == 0:
    print('OK')
elif B % N == 0:
    print('OK')
elif B - A >= N:
    print('OK')
elif A // N > B // N:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

c = B//K
if A <= K*(c-1) or K*c <= B:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
tmp = input().split()
K = int(tmp[0])

tmp = input().split()
A = int(tmp[0])
B = int(tmp[1])

for i in range(B-A+1):
    T = A + i
    if T%K == 0:
        print('OK')
        break
    A = A + 1

if A > B:
    print('NG')

Submission status: Wrong Answer

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
# from fractions import gcd
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from functools import reduce
from bisect import bisect_left, insort_left
from heapq import heapify, heappush, heappop

INPUT = lambda: sys.stdin.readline().rstrip()
INT = lambda: int(INPUT())
MAP = lambda: map(int, INPUT().split())
S_MAP = lambda: map(str, INPUT().split())
LIST = lambda: list(map(int, INPUT().split()))
S_LIST = lambda: list(map(str, INPUT().split()))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7


def main():
    K = INT()
    A, B = MAP()

    if B - A >= K:
        print("OK")
        sys.exit()
    else:
        for i in range(A, B+1):
            if i%K == 0:
                print("OK")
                sys.exit()

    print("No")

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B = (int(x) for x in input().split())
if A%K == 0 or B%K==0 or B-A>=K:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

if A%K == 0:
    print("OK")
else:
    a = (A + K)//K
    if B >= a:
        print("OK")
    else:
        print("NG")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=int(input())
b=list(map(int,input().split()))
S=b[0]
G=b[1]

r=0
for i in range(S,G+1):
  if i%a==0:
    r=1
    break

if S==G:
  r=1    

if r==1:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

r = "NG"
for i in range(a, b+1):
  if i % k == 0:
    r = "ok"

print(r)

Submission status: Wrong Answer

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

ans = 'NO'

if a % k == 0 or b % k == 0:
  ans = 'OK'
elif a // k != b // k:
    ans = 'OK'

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


def solve(K: int, A: int, B: int):
    a=[i for i in range(0, 1000) if i % K == 0]
    b=list(range(A,B+1))
    for i in range(len(b)):
        if b[i] in a:
            print("OK")
            exit()
    print("NG")
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    K = int(next(tokens))  # type: int
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(K, A, B)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

# print(k, a, b)
d = b - a + 1
if d / k >= 1:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
for Check in range(A, B+1):
    if Check % K == 0:
        print("OK")
    else:
        print("NG")

Submission status: Wrong Answer

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

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

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:
S = int(input())
a = 0
count = 0
n,m = map(int,input().split())
while count == 0:
    a += S
    if n <= a and m >= a:
        count = 1
    if a >= 1000:
        break
if count == 0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
from inspect import k

K= map(int, input().split())
a,b = map(int, input().split())

for i in range(a,b):
    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())
if B-A >= K:
	print("OK")
elif A % K == 0 or B % 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")
  elif i == b:
    print("NG")
    break

Submission status: Wrong Answer

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

if a % k == 0:
    print("OK")
elif b % k <= a % k:
    print("OK")
elif b - a >= k - 1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

Awari = A // K
Bwari = -(-A // K)



if Awari == (Bwari-1):
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
x = 101
n = 100
i = 1
while n < x:
  n += n // 100
  i += 1
print(i-1)

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 sys
K = int(input())
A, B = map(int, input().split())

#print(K)
#print(A)
#print(B)

for num in range(A, B):
  print(num)
  if num % K == 0:
    print("Yes")
    sys.exit()


print("No")

Submission status: Wrong Answer

Solution code:
k = int(input())
list = list(map(int,input().split()))
a=list[0]
b=list[1]
for i in range(a,b):
  for j in range(99999):
    j*k==i
    break
  break

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())

if (b / k) - (a / k) >0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = [int(x) for x in input().split()]

c = a // k
c += 0 if c*k == a else 1
d = c * k

print(d)
if a <= d <= 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 or a % k == 0 or b % k == 0:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
p=int(input())
n, k = map(int, input().split())
k1=n//p
k2=k//p
if n==k:
  if k1==k2:
    if k2!=0:
      print("OK")
    else:
      print("NG")
else:
  if k1<k2:
    print("OK")
  else:
    print("NG")