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

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

Submission status: Wrong Answer

Solution code:
import os
import sys
from collections import deque
from collections import Counter
from heapq import heappop,heappush

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

if __name__ == "__main__":
	main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# Kの入力
K = int(input())
# A Bの入力
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())
a = A// K
b = B // K
if a != b and a !=0:
    print('OK')
else:
    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:
  print("NG")
else:
  print("OK")

Submission status: Wrong Answer

Solution code:
def main():
    k = int(input())
    a,b = tuple([int(t)for t in input().split()])

    if (b-a+2)/k>=1:
        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 - A) >= 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 K == 1 : print("Yes")
if (B-A) < K : print("No")
else : print("Yes")

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())
if a//K < b//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())
if a % k == 0 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())
x=K
i=1
flg=False
while x<=B:
    if A<=x:flg=True;break
    i+=1
    x=K*i
if flg:print("Yes")
else: print("No")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

result = 'OK'
if (A%K != 0)&(B%K != 0):
    A = A//K + 1
    B = B//K
    if B-A<=0:
        result = 'NG'
        
print(result)

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split())
if a+k <=b:
    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())  
import math
x=math.ceil(A/K) 
y=math.ceil(B/K)

if K==1:
  print('OK')
elif y-x>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:
n = int(input())

(a, b) = [int(s) for s in input().split()]

s = (b + 1) - a

ans = 'OK'

if s < n:
    ans = 'NG'

print(ans)

Submission status: Wrong Answer

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

i = A
while i <= B:
  if i%K == 0:
    print('OK')
    break
  else:
    i += 1
  if i == B:
    if i%K != 0:
      print('NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
target = int(input())
potential = input().split(" ")
min = int(potential[0])
max = int(potential[1])

can = []
for i in range(min,max+1):
  result = str(i/target)
  if not "." in result:
    can.append(i)
if len(can) != 0:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A % K == 0 or B % K == 0:
  print("OK")
else:
  print("OK" if B - A >= K else "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>=4:
    print("OK")

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#! python3
def main():
    k = int(input())
    a, b = map(int, input().split())
    ans = [i for i in range(a, b+1) if i%k == 0]
    if len(ans) == 0:
        print('NG')
    else:
        print('YES')

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
list_ = [(i+1) for i in range(B-A+1)]
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 K // B != K // A:
    print('OK')
elif K == 1:
    print('OK')
elif A == B and K % A == 0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
N = int(input())
A,B = map(int, input().split())
C = B // N

for i in range(C):
    if i * N >= A and i * N <= B:
        print("OK")
        exit( )
        break
print("NG")

Submission status: Wrong Answer

Solution code:
import sys

lines = sys.stdin.readlines()
K = int(lines[0])
X = lines[1].split(' ')

A = X[0]
B = X[1]

n = int(int(A)/int(K))
m = int(int(B)/int(K))

if m-n >0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
N = int(input())
hani = input().split(" ")
a = "NG"
for i in range(int(hani[0]), int(hani[1])):
  if i % N == 0:
    a = "OK"
    break
print(a)

Submission status: Wrong Answer

Solution code:
K = int(input())

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

if (A >= 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):
    if A <= K * i and K * i <= B:
        ans = "OK"

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=(int(x) for x in 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 a == b and a // k:
    print("OK")
elif b// k - a // k > 0:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

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

if K - (A%K) <= 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(1000):
    if (a <= k * i) and (b >= k * i):
        print("OK")
        flag = 1
        break
if flag != 1:
    print("NO")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B=[int(i) for i in input().split(" ")]
if K == 1:
    print("OK")
elif (B-A) > K - (A%K):
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=list(map(int,input().split()))
n=int(A/K)
m=int(B/K)
if K==1:
  print("OK")
elif n-m>=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:
  print('OK')
elif B % K == 0:
  print('OK')
elif A <= K and K <= B:
  print('OK')
elif K * ((A % K) + 1) <= B:
  print('OK')
else:
  print('No')

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:
a=int(input())
b=list(map(int,input().split()))
S=b[0]
G=b[1]

r=0
for i in range(S,G):
  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 = list(map(int, input().split()))

for i in range(1000):
    if k*i > a and k*i<b:
        print("OK")
        exit()
    if k*i > b:
        break

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

q = A//K

if K*(q+1) <= B or K==1:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

if sa == 0:
  if B % K == 0:
    print("OK")
    exit()

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

Submission status: Wrong Answer

Solution code:
import math
K=int(input())
A,B=[int(i)for i in input().split()]
a=math.ceil(A/K)
print("Yes" if B>=a*K else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

a1 = a//k
b1 = b//k
if (b1>a1 and b1 != 0):
    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)>= 7): print('OK')
else:print('NG')

Submission status: Wrong Answer

Solution code:
#  list (map (int, input().strip().split()))

k = int(input())
l = list(map (int, input().strip().split()))
a = l[0]
b = l[1]
if (a%k==0) or (b%k==0) or (a%k>k/2 and b%k<k/2 and b-a>=k) or (a%k<k/2 and b%k>k/2 and b-a>k):
    print('OK')
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
def main():
    K = int(input())
    A,B = [int(x) for x in input().split()]
    for a in range(A,B+1):
        print(a)
        if a % K == 0:
            print('OK')
            return
    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-1)/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 K > B:
    print ("NG")


elif b - a >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 and k != 1:
  print("NG");
else:
  print("OK")

Submission status: Wrong Answer

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

if __name__ == '__main__':
  main()

Submission status: Wrong Answer

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

if a <= k * (b // k) <= b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys

a = list(map(int,input().split()))
x = list(map(int,input().split()))


K = a[0]
B = x[1]
A = x[0]

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

Submission status: Wrong Answer

Solution code:
import sys
K = int(input())
A,B = map(int, input().split())
if A == B:
    if A%K ==0:
        print('OK')
        sys.exit()
    else:
        print('NG')
        sys.exit()
      
cnt = A//K
if (cnt+1) * K <= B:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

nn=a//k + 1

if k*nn<=b:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

a = A % K
b = B % K

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
k = int(input())
l = list(map(int, input().split() ))
if l[1] - l[0] >= k:
  print("OK")
elif l[0] == l[1]:
  if l[0] % k == 0:
    print("OK")
  else:
    print("NG")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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

n = 0
for i in range(int(B)):
    n += int(K)
    if int(A)<=n and n<=int(B):
        print("OK")
        break
    elif int(B)<n:
        print("NG")

Submission status: Wrong Answer

Solution code:
s = input().split()
k=int(s[0])
s = input().split()
a=int(s[0])
b=int(s[1])
if k!=1:
    if (b-a+1)/k>1:
        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 - A + 1) >= K:
    print("OK")
else:
    print("NO")

Submission status: Wrong Answer

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

x = B // k
y = A // k

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

Submission status: Wrong Answer

Solution code:
import sys

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

if A == B:
  print("OK")
  sys.exit()

for i in range(A,B):
  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())
for i in range(1, 1001):
    if a <= i <= b:
        print("OK")
        break
else:
    print("NG")

Submission status: Wrong Answer

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

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

if tmp == 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("OK")
    exit()
print("NG")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
K = int (input())
line= list(map(int,input().split()))
a,b = line[0],line[1]
if (b-a+1)>=K:
    print("OK")

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

a = A // K
b = B // K
if not a == b:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
import os
import sys
from collections import deque
from collections import Counter
from heapq import heappop,heappush

def main():
	k = int(input())
	a,b = map(int, input().split())
	if b - a >= k or b - a == 0:
		print("Yes")
	else:
		print("NO")

if __name__ == "__main__":
	main()

Submission status: Wrong Answer

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

ans = 'NG'

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k=int(input())

a,b=(int(x) for x in 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())

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

Submission status: Wrong Answer

Solution code:
A = int(input())
X,Y = map(int,input().split())
C = Y//A
D = X//A

if C-D > 0:
  print("OK")
else:
  if Y%A == 0 or X//A == 0:
    print("OK")
  else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

A,B=list(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:
n = int(input())
a,b = map(int, input().split())
ans = "NG"
if a==b:
    ans = "OK"
if (b-a)//n>=1:
    ans = "OK"
print(ans)

Submission status: Wrong Answer

Solution code:
s = input().split()
k=int(s[0])
s = input().split()
a=int(s[0])
b=int(s[1])
if k!=1:
    if (b-a+1)/7>1:
        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+1-a >= k or b-(a+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:
    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+1>=k:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int, input().split())
t=b-a
if k<=t+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 = input()
A,B = input().split()
K,A,B = int(K),int(A),int(B)
count = "NG"
box = int(A / K)
for i in range(box,A):
    if i * K >= A and i * K <= B:

        count = "OK"
        print("OK")
        break
    i += 1
if count == "OK":
    pass
else:
    print("NG")

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

if A//N == B//N and (A%N!=0 or B%N!=0):
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
k = input()
l = input().split()
A, B = l[0], l[1]

i = 0
while i * k <= B:
  if A <= i*k <= B:
    print('OK')
    break
  i += 1
else:
  print('NG')

Submission status: Wrong Answer

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

print("OK" if a / k == b / k or a // k < b // k else "NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

k = int(input())
a, b = (int(x) for x in input().split())
outa = math.floor(a / k)
outb = math.floor(b / k)
if outa == outb:
    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")
elif a//k != b//k:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

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

kk = k
ok = False
while(kk < 1000):
    # print(kk)
    
    if kk >= a and kk <= b:
        ok = True
        break
    
    kk += k

if ok :
    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:
k = int(input())
a, b = list(map(int, input().split()))

count = 0

for i in range(1, 1001):
    if k * i >= a and k * i <= b:
        print('OK')
        count = 1
        break

if count == 0:
    print('NO')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
if (b-a+1)/7>=k:
    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())

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
from math import floor
k = int(input())
a,b = map(int,input().split())
ok = True
for i in range(a,b+1):
  if (i%k != 0):
    ok = False
if (ok):
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
n = int(input())
a, b = map(int, input().split())
rangeint = a // n
if a <= (rangeint + 1) * n <= b:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
AB = list(map(int, input().split()))
A = AB[0]
B = AB[1]
multiple = A//K
run = True
while run:
    if multiple * K > B:
        run = False
    elif A<multiple*K<B:
        break
    else:
        multiple+=1
if run:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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


if all(N%K!=0 for N in range(A, B)):
  print("NG")
    
else:
  print("OK")

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:
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 b-a+1<k:
    if b//k > a//k:
        print("OK")
    else:
        print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

if A//K < B//K:
  print("OK")
elif A//K == B//K and A%K <= 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):
    if i % k == 0:
        print('OK')
        exit()

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

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

if __name__ == '__main__':
  main()

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:
def main():
  K = int(input())
  A, B = map(int, input().split())
  n_A = A // K
  n_B = B // K
  if n_B > n_A:
    print('OK')
  elif n_B == n_A and B % K ==0:
    print('OK')
  else:
    print('NG')

main()

Submission status: Wrong Answer

Solution code:
a=int(input())
b,c=map(int,input().split())
if c-b>=c%a:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys

lines = sys.stdin.readlines()
K = int(lines[0])
X = lines[1].split(' ')
print(X)
A = X[0]
B = X[1]

n = int(int(A)/int(K))
m = int(int(B)/int(K))

if m-n >0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
from sys import stdin
from operator import itemgetter
from collections import deque, Counter
import math
import pprint
from functools import reduce
# stdin = open("sample.txt")

MOD = 1000000007

def keta(kazu):
    kazu_str = str(kazu)
    kazu_list = [int(kazu_str[i]) for i in range(0, len(kazu_str))]
    return kazu_list

def gcd(*numbers):
    return reduce(math.gcd, numbers)

def combination(m,n):
    if n > m:
        return 'すまん'
    return math.factorial(m) // (math.factorial(m-n) * math.factorial(n))

def main():
    a = int(stdin.readline().rstrip())
    b, c = [int(x) for x in stdin.readline().rstrip().split()]
    check = 0
    while b <= c:
        if b % a == 0:
            check += 1
        b += 1
    if check > 0:
        print("OK")
    else:
        print("NO")
main()

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int, input().split())
i=a
while i<=b:
  if i%k==0:
    print('Yes')
    exit(0)
  i+=1
print('No')

Submission status: Wrong Answer

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

frag = 'NG'
C = B - A
for i in range(C):
    if (i + A) % K == 0:
        frag =  "OK"

print(frag)

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