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())
li=list(map(int,input().split()))
for i in range(li[0],li[1]):
    if i%k==0 :
        print("OK")
        break
    elif i==li[1]-1:
        print("NG")
if k==1:
    print("OK")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import numpy as np
K = int(input())
A,B = map(int,input().split())
if A != B:
  ls = np.arange(A,B)
else:
  ls = np.array([A])
if 0 < np.count_nonzero(ls % K == 0):
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

max = B//K+1
print(max)
judge = 0

for i in range(max):
    if(i==0):
        continue

    if A<=K*i and K*i<=B:
        judge = 1
        break

if judge==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:
  print("OK")
elif  k == 1:
  print("OK")
elif b == k or a == k:
  print("OK")
elif b % k == 0 or a % k == 0:
  print("OK")
elif b < k < a:
  print("OK")
elif a != b and k == 2:
  print("OK")
elif b % k + a % k <= 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(1001):
  s=i*K
  if A<=s and s<=B:
    print("OK")
    break
  if 1000<s:
    print("No")
    break

Submission status: Wrong Answer

Solution code:
K=int(input())
A, B = map(int, input().split())
for i in range(1000):
    if i*K>=A and i*K<=B:
        print('OK')
        break
for i in range(1000):
    if K==1:
        break
    if i*K<A or i*K>B:
            print('NG')
            break

Submission status: Wrong Answer

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

for i in range(b,c+1):
    X.append(int(i%a))

if 0 in X:
    print("Yes")
else:
    print("NG")

Submission status: Wrong Answer

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

a_div_k = a // k
b_div_k = b // k

if b < k:
    print("NG")
elif k == 1:
    print("OK")
elif k == b:
    print("OK")
elif a_div_k == b_div_k:
    print("NG")
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])
c = b[1]-b[0]
if c >=a:
    print('OK')
elif b[1]%a == 0:
    print('OK')
elif b[0]%a == 0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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


#出力　#自力
if A-(A%K)+K <= B:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

A = int(A)
B = int(B)
K = int(K)

C = 0

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

if C == 1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = input()
a, b = input().split()
if k== 0:
  print("NO")
  exit()  
for cnt in range(int(b)):
    if int(a) <= cnt:
        if cnt % int(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==B/K and A!=B:
    print('NG')
else:
    print('OK')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a_div_k = a // k
b_div_k = b // k

if b < k:
    print("NG")
elif k == 1:
    print("OK")
elif k == b:
    print("OK")
elif a_div_k == b_div_k:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
A,B = map(int,input().split())
if K == 1 :
    print('OK')
else:
    x = math.floor(A/K)
    x *= K
    x += K
    if A < x < B:
        print('OK')    
    else:
        print('NG')

Submission status: Wrong Answer

Solution code:

k = int(input())
a,b = (map(int,input().split()))
new_list = []
for i in range(1,1000):
    if  a <= k*i <= b:
        new_list.append('Yes')
    else:
        new_list.append('No')
if len(set(new_list)) == 1:
    print('NG')
elif len(set(new_list)) == 2:
    print('Ok')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=map(int,input().split())
for i in range(1001):
  K+=K
  if A<=K and K<=B:
    print("OK")
    break
  if 1000<K:
    print("No")
    break

Submission status: Wrong Answer

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

x = b // k
y = a // k

if  a < b:
	if x - y != 0:
		print('OK')
	else:
		print('NG')

elif a == b:
 		print('OK')

Submission status: Wrong Answer

Solution code:
K=int(input())
A, B = map(int, input().split())
for i in range(1000):
    if i*K>=A and i*K<=B:
        print('OK')
        break
for i in range(1000):
    if i*K<A and i*K>B:
            print('NG')
            break

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):
  if i%k==0:
    print("OK")
    break
else:
    print("NG")

Submission status: Wrong Answer

Solution code:

def main():
    K = int(input())
    A, B = map(int, input().split())
    m = B - A + 1
    out = 'NG'
    if m // K != 0:
        out = 'OK'
    print(out)
main()

Submission status: Wrong Answer

Solution code:
K = int(input())

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

li = []

while A <= B:
  li.append(A)
  
  A += 1
  
if K in li:
  print("OK")
  
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
K=int(input())
A=list(map(int,input().split()))
D=A[0]//K
E=A[1]//K
if (E-D)>0:
  print("OK")
elif (A[0]==A[1] and A[0]%K==0 and A[0]//K>1):
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(list(range(3,4)))
k=int(input())
li=list(map(int,input().split()))
for i in range(li[0],li[1]):
    if i%k==0 :
        print("OK")
        break
    elif i==li[1]-1:
        print("NG")
if k==1:
    print("OK")

Submission status: Wrong Answer

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

if int(b) >= int(k) or int(a) == int(k):
    if int(k) == 1:
        print ("OK")
    elif int(a) == int(b):
        if int(a)%int(k) == 0:
            print ("OK")
        else:
            print("NG")
    elif (int(a)+int(b))%int(k) == 0:
            print("NG")
    elif int(b)-int(a) == 1 and int(a) != int(k) and int(k)%2 != 0:
        print("NG")
    else:
        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")
    exit()
  else:
    continue
  print("NG")

Submission status: Wrong Answer

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


ps = int(A / K)
pa = A % K
qs = int(B / K)
qa = B % K

if A==B:
	if pa==0:
		print("OK")
	else:
		print("NG")
else:
	if qs-ps>0:
		print("OK")
	else:
		if pa==0:
			print("OK")
		else:
			if pa+qa >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 and B % K == 0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

if k==1 and x==0:
    print("OK")
else:
    if k>x:
        print("NG")
    elif k==x:
        print("OK")
    else:
        print("OK")

Submission status: Wrong Answer

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

max = B//K
judge = 0

for i in range(max):
    if(i==0):
        continue

    if A<=K*i and K*i<=B:
        judge = 1
        break

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

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b=(int(x) for x in input().split())
z = int(a/k) - int(b/k)
sum = 0
for i in range(z):
    sum = sum + 1
if k == 1:
    print("OK")
elif sum == 0:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

for cnt in range(int(b)+1):
    if int(a)-1 < cnt:
        if cnt % int(k) == 0:
            print("OK")
            exit()
print("NO")

Submission status: Wrong Answer

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

q, mod = divmod(A, K)

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

Submission status: Wrong Answer

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

x = b // k
y = a // k

if a == b:
 		print('OK')
    
if  a < b:
	if x - y != 0:
		print('OK')
	else:
		print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b=(int(x) for x in input().split())
z = int(a / k) - int(b / k)
sum = 0
for i in range(z):
    sum = sum + 1
if sum == 0:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:

k = int(input())
a,b = (map(int,input().split()))
new_list = []
for i in range(1,1000):
    if  a <= k*i <= b:
        new_list.append('Yes')
    else:
        new_list.append('No')
if len(set(new_list)) == 1:
    print('NG')
else:
    print('Ok')

Submission status: Wrong Answer

Solution code:
inp = [input() for i in range(2)]
uu = int(float(inp[0]))
K = int(uu)
A,B = inp[1].split()
A,B = int(float(A)),int(float(B))
c,bbb = 0,0
if 1<= A <= B <= 1000 and 1<= K <= 1000:
  for h in range(A,B,1):
    c = h % K
    if c == 0:
      bbb += 1
  if bbb > 0:
    print('OK')
  elif K == 1:
    print('OK')
  elif K ==A or K ==B:
    print('OK')
  else:
    print('NG')

Submission status: Wrong Answer

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

if int(b) >= int(k) or int(a) == int(k):
    if int(k) == 1:
        print ("OK")
    elif int(a) == int(b):
        if int(a)%int(k) == 0:
            print ("OK")
        else:
            print("NG")
    elif (int(a)+int(b))%int(k) == 0:
            print("NG")
    elif int(b)-int(a) == 1 and int(a) != int(k):
        print("NG")
    else:
        print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
import sys
#sys.exit()
#sorted( ,reverse=True)
K = int(input())
A,B = map(int, input().split())
if A == B:
    if A%K == 0:
        print('OK')
        sys.exit()
if A <= 2*K <= B or B/K >= 2 and B/K - A/K >= 1:
    
#A = list(map(int, input().split()))

    print('OK')

else:
    
    print('NG')
#print( A//K ,B//K)
#print(A)
#print('Yes')
#print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
num =A
while A <= num <= B:   
    if num % K == 0:
        x="OK"
        break
    else:
        x="NG"
        A +=1
print(x)

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
aa=a//k
bb=b//k
ax=a%k
bx=b%k
if (aa==bb and a==b and ax==bx==0) or aa!=bb or k==1:
	print("OK")
else:
	print("NG")

Submission status: Wrong Answer

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

count = 0
for i in range(a,b+1):
    if i % K == 0:
        count += 1

if count >= 1:
    print('OK')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
G = int(input())
A, B = map(int,input().split())
Total = 'OK'
for i in range(A,B+1):
    if i% G != 0:
        Total = 'NG'
print(Total)

Submission status: Wrong Answer

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

amari1 = a//k
amari2 = b//k
c = amari2 -amari1 + 1


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

Submission status: Wrong Answer

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

while a <= b:
    a += 1
    if a % n == 0:
        print('OK')
        break
    elif a == b:
        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):
    if i%K == 0:
      print("OK")
      exit()
  print("NG")

main()

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

a_1 = a / k
b_1 = b / k

if a % 1 ==0 :
    print('OK')
elif b_1 - a_1 < 1 :
    print('NG')
else :
    print('OK')

Submission status: Wrong Answer

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


main()

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int,input().split())
 
D = A%K
U = B%K
if( U-D >= 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")

ans=0

for i in range(int(a/k-1),math.ceil((b/k)+1)):
  if(k*i>=a):
    if(k*i<=b):
      ans=1
      break
if(k==1):
  ans=1

if(ans==0):
  print("NG")
if(ans==1):
  print("OK")

Submission status: Wrong Answer

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

a = (B//K) - (A//K)

if A%K == 0:
    print("OK")

elif B%K == 0:
    print("OK")

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

        else:
            print("NG")
    if a==0:
        print("NG")
        
    else:
        print("OK")

Submission status: Wrong Answer

Solution code:
import math
account = 100
goal = int(input())
count = 0

while True:
  count += 1
  account = math.floor(account * 1.01)
  if account >= goal:
  	break
print(count)

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b=(int(x) for x in input().split())
z = int(a / k) - int(b / k)
sum = 0
for i in range(z):
    sum = sum + 1
if sum == 0:
    if k == 1:
        print("OK")
    else:
        print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = [int(x) for x in input().split()]
result = False
check = [x*k for x in range(0, 1000)]
for i in check:
    if (i > a and i < b):
        result = True
    else:
        continue

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

Submission status: Wrong Answer

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

a_div_k = a // k
b_div_k = b // k

if k == 1:
    print("OK")
elif k == b:
    print("OK")
elif a_div_k == b_div_k:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

for i in range(1, 1000):
    if i % K == 0:
        if A <= i <= B:
            l.append(i)
if len(l) == 0:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
K = int(input())
a,b = map(int,input().split())
k_list = []
k = 1000//K # Kの倍数最大値
ans = "NG"



for i in range(1,k+1):
  A = k*i
  k_list.append(A)
  
for j in range(a,b+1):
  if j in k_list:
    ans = "OK"
    break
    
if K == 1:
  ans = "OK"

print(ans)

Submission status: Wrong Answer

Solution code:

k = int(input())
a,b = (map(int,input().split()))
new_list = []
for i in range(1,100000):
    if  a < k*i < b:
        new_list.append('Yes')
    else:
        new_list.append('No')
if len(set(new_list)) == 1:
    print('NG')
else:
    print('Ok')

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 a == 1:
    print('OK')
elif b[1]%a == 0:
    print('OK')
elif b[0]%a == 0:
    print('OK')
elif C >= 1:
    print('OK')
elif C == 0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
def main():
    K = int(input())
    A, B = map(int, input().split())
    hiku = (B/K) - (A/K)
    waruB = B % K
    waruA = A % K
    if waruB == 0:
        print("OK")
    elif waruA == 0:
        print("OK")
    elif hiku >= 1:
        print("OK")
#    elif hiku == 0:
#        print("OK")
    else:
        print("NG")


main()

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline


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

c = b//k

if k == 1:
    print("OK")
else:
    if c * k >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,B):
    if i%K==0:
        print("OK")
        break
    else:sum=1
if sum==1:
    print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
AB = list(map(int, input().split()))
A = AB[0]
B = AB[1]
if A % K == 0 or B % K == 0:
	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())
a_=a%k
b_=b%k
if a_>b_:print("OK")
elif b-a>k:print("OK")
elif a_==0 or b_==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")

ans=0

for i in range(int(a/k-1),math.ceil((b/k)+1)):
  if(k*i>=a):
    if(k*i<=b):
      ans=1
      break

if(ans==0):
  print("NG")
if(ans==1):
  print("OK")

Submission status: Wrong Answer

Solution code:

k = int(input())
a,b = (map(int,input().split()))
new_list = []
for i in range(1,1000):
    if  a < k*i < b:
        new_list.append('Yes')
    else:
        new_list.append('No')
if len(set(new_list)) == 1:
    print('NG')
else:
    print('Ok')

Submission status: Wrong Answer

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

n_1 = int(A / n)
n_2 = int(B / n)
nn_1 = A%n
nn_2 = B%n

print(n_1,n_2)
if n == 1: print('OK')
else:
    if nn_1 ==0 or nn_2 == 0:print('OK')
    elif n_2 != n_1: print('OK')
    else: print('NG')

Submission status: Wrong Answer

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

if n == 1:
    print("OK")
else:
    while a <= b:
        a += 1
        if a % n == 0:
            print('OK')
            break
        elif a == b:
            print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
AB = list(map(int, input().split()))
A = AB[0]
B = AB[1]
if A % K == 0 or B % K == 0:
	print("OK")
elif B - A >= K:
	print("OK")
else:
	print("NG")

Submission status: Wrong Answer

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

if int(list[0])//k != int(list[1])//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('OK')
        break
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")
elif a==b==k:
    print("OK")
elif k==1 or a==k 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())

if A//K < B//K or K==1:
  print('OK')
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 a == 1:
    print('OK')
elif b[1]%a == 0:
    print('OK')
elif b[0]%a == 0:
    print('OK')
elif C > 1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
x = int(input())
a = 100
i = 0
while a <= x:
  i += 1
  a = int(a * 1.01)
print(i)

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split())
if a == b and a % k == 0:
    print("OK")
if (a % k) == 0 or (b % k) == 0:
    print("OK")
elif a != b 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())
c=b-a
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 = input().split()
A = int(A)
B = int(B)

ans = "NG"
for i in range(B+1):
    if A <= K * i and K * i <= B:
        ans = "OK"
        break

Submission status: Wrong Answer

Solution code:
import sys

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

i =1
wk =a
if k==1:
    print('OK')
    sys.exit()
while wk <=a:
    wk =i*k
    i+=1
if wk <b:
    print('Ok')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K=int(input())
A=list(map(int,input().split()))
D=A[0]//K
E=A[1]//K
if (E-D)>0:
  print("OK")
elif (A[0]==A[1] and A[0]%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)*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<1 and b//k>=1:
    print("OK")
elif k==1 or a==k or (b-a)//k>=1:
    print("OK")
elif a==b==k:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

a = (B//K) - (A//K)

if A%K == 0:
    print("OK")

elif B%K == 0:
    print("OK")

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

    if a==0:
        print("NG")
        
    else:
        print("OK")

Submission status: Wrong Answer

Solution code:
n=int(input())
temp=list(map(int,input().rstrip().split()))
a=temp[0]
b=temp[1]
rem=(a%n)
left=n-rem
if b>=(left+a+1) :
    print("OK")
else :
    print("NG")

Submission status: Wrong Answer

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

l = A % K
if l == 0:
    print("OK")
elif A + (K-l) <= B:
    print("OK")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
K = int(input())
AB = input()
ABB = AB.split()
A = int(ABB[0])
B = int(ABB[1])

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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


ps = int(A / K)
pa = A % K
qs = int(B / K)
qa = B % K

if A==B:
	if pa==0:
		print("OK")
	else:
		print("NG")
else:
	if qs-ps>0:
		print("OK")
	else:
		if pa+qa >K:
			print("OK")
		else:
			print("NG")

Submission status: Wrong Answer

Solution code:
k=int(input())
a=list(map(int,input().split()))
b=k*(a[0]//k)
if b<=a[1]:
    print('OK')
elif b+k<=a[0]:
        print('OK')
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 a == 1:
    print('OK')
elif b[1]%a == 0:
    print('OK')
elif b[0]%a == 0:
    print('OK')
elif C >= 1:
    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(1,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())

# 判定
for i in range(1, 1001):
    r = K * i
    if A <= r <= B:
        print('OK')
        break
    else:
        continue
else:
    print('NO')

Submission status: Wrong Answer

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

if a == b:
    if a % n == 0:
        print("OK")
    else:
        print("NG")
else:
    while a <= b:
        a += 1
        if a % n == 0:
            print('OK')
            break
        elif a == b:
            print("NG")