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())
d = A // K if A // K > 0 else 1
r = A % K

if K*(d+1) >= A and K*(d+1) <= B or r == 0:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

if K*d + r >= A and K*d + r <= B:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = [int(n) for n in input().split()]

n = A
while n <= B:
    if n % K == 0:
        print("OK")
        exit()
    n = n + 1
print("NO")

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = [int(n) for n in input().split()]

for n in range(A, B+1):
    if n % 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:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
k=(int)(input())
a,b=map(int,input().split())
if(abs(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-a+1>=k):
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
def main(k, a, b):
    for n in range(a, b + 1):
        if k % n == 0:
            return 'OK'
    else:
        return 'NG'


if __name__ == '__main__':
    k = int(input())
    a, b = map(int, input().split(' '))
    print(main(k, a, b))

Submission status: Wrong Answer

Solution code:
K=int(input())
[A,B]=list(map(int,input().split()))
flg=0
for n in range(A,B+1):
  if n%K==0:
    print("OK")
    flg==1
    break
if flg==0:print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int,input().split(" "))
n=0
s='NG'
while(n>B):
    n+=k
    if A<=n and n<=B:
        s='OK'
print(s)

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int,input().split(" "))
n=0
s='NG'
while():
    n+=k
    if A<=n and n<=B:
        s='OK'
print(s)

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int,input().split(" "))
n=0
s='NG'
for k in range(K):
    n+=k
    if A<=n and n<=B:
        s='OK'
print(s)

Submission status: Wrong Answer

Solution code:
import sys
K = int(input())
A, B = map(int,(input().split()))
i=1
while(K*i<=B):
  if(K*i>A):
    print("OK")
    sys.exit()
  i+=1
print("NG")

Submission status: Wrong Answer

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

if(B-A>=K-1 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()))

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    k = int(input())
    [a,b] =[int(i) for i in input().split()]
    if b-a+1 >= k:
        print("OK")
    else:
        print("NG")

Submission status: Wrong Answer

Solution code:
last=int(input())
first=100
r=[]
while first<last:
  first=int(first*1.01)
  r.append(first)
  
R=len(r)

print(R)

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
x=b%k
y=b-x
if b-a>k:
    print('OK')
elif y>a:
    print('OK')
elif a==b and 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')
else:
    print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

    if flag:
        break
        
    elif a==0:
      print("NG")
      break

Submission status: Wrong Answer

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

    if flag:
        break

Submission status: Wrong Answer

Solution code:
K =int(input())
A,B = map(int,input().split())
C=[]
for i in range(B+1):
    if i >= A:
        if i%K == 0:
            C.append(i)
c = len(C)
if (B/K==A/K or B-A>=K or c>=1 ):
    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")
    exit()
  else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())

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

if A%K == 0 or A+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):
  if i%K==0:
    flag=1
    
    
if flag==1:
    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
  print('NG')

Submission status: Wrong Answer

Solution code:
X = int(input())
money = 100
year=0
i=0
while i>=0:
  if money>=X:
    print(year)
    break
  else:
    money=int(money*1.01)
    year += 1

Submission status: Wrong Answer

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

amari = a % k

ans = 'NG'
if a >= k:
    if b-a >= amari:
        ans = 'OK'
else:
    if b >= k:
        ans = 'OK'        
print(ans)

Submission status: Wrong Answer

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

amari = a % k

ans = 'NG'
if b-a >= amari:
    ans = 'OK'
print(ans)

Submission status: Wrong Answer

Solution code:
from sys import stdin

K = int(stdin.readline().rstrip())
A, B = [int(x) for x in stdin.readline().rstrip().split()]

if (B-A+1)/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')
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')
  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')
  else:
    print('NO')

Submission status: Wrong Answer

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

for i in range(1000):
    if A <= K*i and K*i <= B:
        print("OK")
    else:
        print("NG")

Submission status: Wrong Answer

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

res = 0
i = a

while i <= b:
    i += 1
    if i % k == 0:
        res = 1

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

Submission status: Wrong Answer

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

res = 0

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

if res == 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):
    if i%k==0:
        print('OK')
        exit()
print('NG')

Submission status: Wrong Answer

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

a = v[0]
b = v[1]

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

Submission status: Wrong Answer

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

a = v[0]
b = v[1]

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

Submission status: Wrong Answer

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

a = v[0]
b = v[1]

check = False
for i in range(a, b):
    if i%k == 0:
        check = True
        break
      
if(check):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
X = int(input())
count = 0
money = 100

while True:
  money = int(money * 1.01)
  count += 1
  if money >= X:
    print(count)
    break

Submission status: Wrong Answer

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

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

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

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

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

if (A % K 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())

if A % K or B % K  == 0:
    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())

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

Submission status: Wrong Answer

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

if (B - A) >= (K-1):
    print("OK")
elif (B - A) < (K-1):
    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:
    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:
    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:
    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:
K = int(input())
A, B = map(int, input().split())
if A - 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 > K -1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=map(int,input().split())
L=int((B/K)*K)
if A<=L:
    print("ok")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
import sys
k = input()
k  = int(k)
ab = input()
ab = ab.split()
a = ab[0]
b = ab[1]
a = int(a)
b = int(b)

c = b - a
if c == 0:
	f = a % k
	if f == 0:
		print("OK")
		sys.exit()
	else:
		print("NG")
		sys.exit()
else:
	pass

for d in range (c):
	e = a % k
	if e == 0:
		print("OK")
		sys.exit()
	else:
		a = a +	1

print("NG")

Submission status: Wrong Answer

Solution code:
n=int(input())
a,b=map(int,input().split())
xs=[0]
for i in range(a,b+1):
    if i%n==0:
        xs.append(i)
if a<=min(xs)<=b:
    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+1>=K else "NG")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
a1 = int(input())
a2,a3 =(int(x) for x in input().split())
if int (a2//a1) ==int(a3//a1):
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
a1 = int(input())
a2,a3 =(int(x) for x in input().split())
if int (a2/a1) ==int(a3/a1):
    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>=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())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

for i in range(A, B):
    if i % K == 0:
        print('OK')
        exit()

print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = [int(e) for e in input().split()]
ans='NG'
for i in range(a,b+1):
    if k%i == 0:
        ans='OK'
        break
    else:
        pass
print(ans)

Submission status: Wrong Answer

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

if B - A == 0 and 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:
k = int(input())
a, b = [int(e) for e in input().split()]

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

Submission status: Wrong Answer

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

import numpy as np

ab = np.zeros((b-a)+1)

ab[0] = a

for i in range(b-a):
    ab[i+1:] +=1

if (ab % k == 0).sum() > 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")
else:
  if b//k - a//k == 0:
    print("NG")
  else:
    print("OK")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = B - A
isTrue = False

for i in range(s):
  if (i + A) % K == 0:
    isTrue = True
    break

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

Submission status: Wrong Answer

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

if a/k>=2:
    print("OK")
elif b/k>=2:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

if a/k>=2:
    print("ok")
elif b/k>=2:
    print("ok")
else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
print("NG" if A // K == B // K else "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: #Kで割り切れたら
        print("OK")
else: #最後まで割り切れなかったら
    print("NG")

Submission status: Wrong Answer

Solution code:
k= int(input())
s= input().rstrip().split()
a = int(s[0])
b = int(s[1])
f = "NG"
for i in range(a,b):
  if i%k == 0:
    f = "OK"
if a == b:
  if a%k == 0:
    f = "OK"
print(f)

Submission status: Wrong Answer

Solution code:
k= int(input())
s= input().rstrip().split()
a = int(s[0])
b = int(s[1])
f = "NG"
for i in range(a,b):
  if i%k == 0:
    f = "OK"
print(f)

Submission status: Wrong Answer

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

while K <= 1000:
  if K >= A and K <= B:
    print('OK')
    exit()
  K += K

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 and 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 and 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 - A >= K:
    print("OK")
elif A == B and B == K:
    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())

if A + K <= B:
    print('OK')
elif K == 1:
    print('OK')
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
#A
k = int(input())
a, b = list(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:
#A
k = int(input())
a, b = list(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:
n = int(input())
a,b = map(int,input().split())

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

Submission status: Wrong Answer

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

if((b-a >= k and b >= k) or k == 1 or (a >= k and a % k ==0) or (b >= k and b%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 or k == 1 or (a % k == 0 and a >= k) or (b % k== 0 and b >= k)):
    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 k == 1 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())

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

Submission status: Wrong Answer

Solution code:
import math

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

if math.ceil(b/k - a/k) >= 1 :
    print("OK")
elif a%k == 0 or b%k == 0 :
    print("OK")
elif a<=k and k<=b:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if int(b/k - a/k) >= 1 :
    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())

if b/k - a/k >= 1 :
    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())

if k <= b-a :
    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())

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
 
l = 0
result = 'NG'
while l <= B:
  l+=K
  if l >= A:
    result = 'OK'
  
  
print(result)

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
 
l = 0
result = 'NG'
while l <= B:
  l+=K
  if l >= A:
    result = 'OK'
  
print(result)

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
 
l = 0
ret = 'NG'
while l <= B:
  l+=K
  if l >= A:
    result = 'OK'
  
  
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())

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

Submission status: Wrong Answer

Solution code:
k = int(input())

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

Submission status: Wrong Answer

Solution code:
# input
K = int(input())

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

fly = K
result = False

while fly < B:
    if A <= fly <= B:
        result = True
        break
    fly += K

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

Submission status: Wrong Answer

Solution code:
array = []

for i in range(2):
    val = input()
    array.append(val.split())

K = int(array[0][0])
A = int(array[1][0])
B = int(array[1][1])

compare = (B / K) * K

if compare >= A:
    print("OK")
else:  
    print("NG")

Submission status: Wrong Answer

Solution code:
array = []

for i in range(2):
    val = input()
    array.append(val.split())

def multiple_check(number_a, number_b):
    if number_a % number_b == 0:
        return True
    else:
        return False

K = int(array[0][0])
A = int(array[1][0])
B = int(array[1][1])

if (B - A) // K >= 1 or K == 1:
    print("OK")
elif multiple_check(A, K) or multiple_check(A, K):
    print("OK")
else:  
    print("NG")

Submission status: Wrong Answer

Solution code:
array = []

for i in range(2):
    val = input()
    array.append(val.split())

def multiple_check(number_a, number_b):
    if number_a > number_b and number_a % number_b == 0:
        return True
    else:
        return False

K = int(array[0][0])
A = int(array[1][0])
B = int(array[1][1])

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

Submission status: Wrong Answer

Solution code:
array = []

for i in range(2):
    val = input()
    if type(val) == "list":
        array.append(val)
    else:
        array.append(val.split())

def multiple_check(number_a, number_b):
    if number_a % number_b == 0:
        return True
    else:
        return False

K = int(array[0][0])
A = int(array[1][0])
B = int(array[1][1])

if multiple_check(A, K)  == True or  multiple_check(B, K) == True 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(1000):
    if (i+1)%K==0 and A <= (i+1):
        print('OK')
        exit()
print('NG')

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=map(int,input().split())
for i in range(1000):
    if (i+1)%K==0 and A <= (i+1):
        print('Yes')
        exit()
print('No')

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('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) >= 1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A ,B = map(int, input().split())
#am = A//K
zansa = A%K
if zansa <= 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 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())

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

Submission status: Wrong Answer

Solution code:
x = int(input())
p, q = map(int, input().split())
if int(p // x) != int(q+1 // x):
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
x = int(input())
p, q = map(int, input().split())
if int(p // x) != int(q // x):
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

k = K
while k <= B:
   if k >= A:
       print('Yes')
       exit()
   k += K
print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#
#at coder beginner contest165 a we love golf
#
import math

input1 = input()
kbai= int(input1)
 
input2=input().split(" ")
mins= int(input2[0])
maxs= int(input2[1])
flg=0
ans=0
tmp=0

tmp=math.floor(mins/kbai)
ans=tmp*kbai
#print(tmp)

while ans <= maxs:
  if ans != maxs:
    ans=ans+kbai
  if ans >= mins and ans <= maxs:
    flg=1

if flg ==1:
  print("OK")
  #print(ans,maxs,mins,flg)
else:
  print("NG")
  #print(ans,maxs,mins,flg)

Submission status: Wrong Answer

Solution code:
k=int(input())

a,b=map(int,input().split())
count=0
for i in range(a,b):
  if i%k==0:
    count=count+1
  else:
    count=count
    
if count>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+1%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):
  if i%k==0:
    print('OK')
  else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k,a,b = map(int,open(0).read().split())
c=0
if b<k:
  print('NG')
  
for i in range(a,b+1):
  if i%k==0:
    c+=1
if c>0:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
#ABC165a
k = float(input())
a, b = map(float, input().split())

un = a/k
up = b/k
t = up - un

if 0 < t < 1:
    print('NG')
else:
    print('OK')

Submission status: Wrong Answer

Solution code:
#ABC165a
k = float(input())
a, b = map(float, input().split())

un = a/k
up = b/k

if 0 < up - un < 1:
    print('NG')
else:
    print('OK')

Submission status: Wrong Answer

Solution code:
import math

input1 = input()
kbai= int(input1)
 
input2=input().split(" ")
mins= int(input2[0])
maxs= int(input2[1])
flg=0
ans=0
tmp=0

tmp=math.floor(mins/kbai)
ans=tmp*kbai
#print(tmp)

while ans <= maxs:
  ans=ans+kbai
  if ans >= mins and ans <= maxs:
    flg=1

if flg ==1:
  print("OK")
  #print(ans,maxs,mins,flg)
else:
  print("NG")
  #print(ans,maxs,mins,flg)

Submission status: Wrong Answer

Solution code:
import math

input1 = input()
kbai= int(input1)
 
input2=input().split(" ")
mins= int(input2[0])
maxs= int(input2[1])
flg=0
ans=0
tmp=0

tmp=math.floor(mins/kbai)
ans=tmp*kbai
#print(tmp)

while ans < maxs:
  ans=ans+kbai
  if ans > mins and ans <= maxs:
    flg=1

if flg ==1:
  print("OK")
  #print(ans,maxs,mins,flg)
else:
  print("NG")
  #print(ans,maxs,mins,flg)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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
    
if ans > 0:
  print('OK')
  
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
N=int(input())
a, b = map(int, input().split())
def golf(N,a,b):
  for i in range(a,b+1):
    if i%N==0:
      return "OK"
    else:
      return "NG"
print(golf(N,a,b))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = list(map(int,input().strip().split()))
x = b - a
ans = str("NG")
if a % k == 0:
    ans = str("OK")
elif b % k == 0:
    ans = str("OK")
elif x >= k - 1:
    ans =str("OK")
print(ans)

Submission status: Wrong Answer

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

count = 0

for i in range(1001):
    if((A < (K*i)) & ((K*i) < B)):
        count = 1


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