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())
l=[]
for i in range (a,b):
    if i % 7 == 0:
        l.append(i)
if len(l)!=0:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(b,c+1):
    if i%a==0:
        juge=+1
        break
    else:
        continue

print("Yes" if juge==1 else "NG")

Submission status: Wrong Answer

Solution code:

#提出時にコメントアウトを外す。
k = int(input())
ab = list(map(int, input().split()))



#作業用。ここは、作業最後に、コメントアウトする。
#k = 4
#ab = [1, 1]


#kの倍数をリストに格納する。
k_times = [0]
for i in range(1, 1001):
    m = i * k
    if m > 1000:
        break
    k_times.append(m)
print(k_times)

#aからbの連続数リストを作る。
ab_list = []
a = ab[0]
b = ab[1]
if b == 1000:
    b = 1001
for j in range(a , b):
    ab_list.append(j)
if a == b:
    ab_list.append(a)
#print(ab_list)

k_ab_and = set(k_times) & set(ab_list)

#lenのチェック用
#print(len(k_ab_and))

num_result = len(k_ab_and)

if num_result > 0:
    print('OK')

elif num_result == 0:
    print('NG')

Submission status: Wrong Answer

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

if k>b:
    print('NG')
    sys.exit()

ans1 =a%k
ans2 = a+k-ans1
if ans2<=b or k==1 or a <= b + (k-ans1):
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a % k == 0: print('OK')
elif (a / k + 1) <= b: print('OK')
print('NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import numpy as np
import fractions
 
K = int(input())
A,B = [int(i) for i in (input()).split(" ")]
 
if((B//K-A//K)>=0 and K<=B and 2*A<=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 - 1:
  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 a < k and k < b:
  print("OK")
elif a != b and k == 2:
  print("OK")
elif b < k:
  print("NG")
elif a % k + b % k >= k:
  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 % k == 0:
        print("OK")
        exit()
    else:
        print("NG")
        exit()
num_a = a // k
num_b = b // k
if num_b > num_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 + 1):
  if A <= i * K and i <= B:
    print('OK')
    exit()
  
  else:
    print('NG')
    exit()

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

else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
import fractions
 
K = int(input())
A,B = [int(i) for i in (input()).split(" ")]
 
if((B//K-A//K)>=0 and K<=B):
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

if k>b:
    print('NG')
    sys.exit()

ans1 =a%k
ans2 = a+k-ans1
if ans2<=b 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 == b and a%k ==0:
  print("OK")
  exit()
elif a == b and a%k!=0:
  print("NG")
  exit()  

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
if 1 <= K <= 1000 and 1 <= A <= B <= 1000:
  for i in range(A, B + 1):
    if i % 10 == K:
      print("Yes")
    else:
      print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

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

if A == B and (A % K == 0):
     print('OK')
     sys.exit()
else:
     print('NG')
     sys.exit()

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

if A > B:
    print('NG')
elif B < K:
    print('NG')
else:
    for i in range(A, B):
        if i % K == 0:
            C = 1
    if C == 1:
        print('OK')
    else:
        print('NG')

Submission status: Wrong Answer

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

while k * i <= b:
    if a <= k * i <= b:
        ans = 'OK'
        break

print(ans)

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())
ans = [i for i in range(a,b) if i%k==0]

if not ans:
    print('NG')
else:
    print('OK')

Submission status: Wrong Answer

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

for i in range(n):
    c = a+i
    if c%k==0 :
        print("OK")
        break
    
    if i == n :
        if 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 == 1:
  print("OK")
  exit()

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

Submission status: Wrong Answer

Solution code:
import sys

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

if k==1:
    print('Ok')      
    sys.exit() 

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

Submission status: Wrong Answer

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

if K==1 or A%4==0 or B%4==0:
    print('OK')
elif (A==B) and (A%K == 0):
    print('OK')
elif (B-A) > K:
    print('OK')
elif (B-A) + (A%K) >=K:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

if A > B:
    print('NG')
elif A < K:
    print('NG')
else:
    for i in range(A, B):
        if i % K == 0:
            C = 1
    if C == 1:
        print('OK')
    else:
        print('NG')

Submission status: Wrong Answer

Solution code:
import sys

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

if K == 1 or A == B:
     print('OK')
     sys.exit()
if (A // K) < (B // K):
     print('OK')
else:
     print('NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
X = int(input())
n = 1

while int(100*(1.01**n)) < X:
    n += 1
else: print(n)

Submission status: Wrong Answer

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

if a != b:
    lis = list(range(a,b))
else:
    lis = [a]

if all(j % k != 0 for j in lis):
    print('NG')
elif any(j % k == 0 for j in lis):
    print('OK')

Submission status: Wrong Answer

Solution code:

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

a_round = round(a / n)
b_round = round(b / n)
if a % n == 0 or b % n == 0:
  print("OK")
else:
  if a_round < b_round:
    print("OK")
  else:
    print("NG")

Submission status: Wrong Answer

Solution code:
import sys

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

if K == 1:
     print('OK')
     sys.exit()
if (A // K) < (B // K):
     print('OK')
else:
     print('NG')

Submission status: Wrong Answer

Solution code:
import numpy as np
import fractions
 
K = int(input())
A,B = [int(i) for i in (input()).split(" ")]
 
if((B//K-A//K)>=0):
  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

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

Submission status: Wrong Answer

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

for value in range(A, B + 1):
    if value % K == 0 :
        print('OK')
        break
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

x=0

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

if x>0 or K==1:
    print('OK')
else:
    print('NG')

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(i%a)

if 0 in set(X):
    print("Yes")
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==B) and (A%K == 0):
    print('OK')
elif (B-A) > K:
    print('OK')
elif (B-A) + (A%K) >=K:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:

#sys.exit()
#sorted( ,reverse=True)
K = int(input())
A,B = map(int, input().split())
if   K <= B//2  :
    
    
#A = list(map(int, input().split()))

    print('OK')

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

Submission status: Wrong Answer

Solution code:

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

a_round = round(a / n)
b_round = round(b / n)

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

else:
    print("NG")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

if A >= B:
    print('NG')
elif A < K:
    print('NG')
else:
    for i in range(A, B):
        if i % K == 0:
            C = 1
    if C == 1:
        print('OK')
    else:
        print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())
i,j = input().split()
flag = 0
#print(k,i,j)
for kk in range(int(i),int(j)):
    if kk%k==0:
        flag=1
print("OK" if flag==1 else "NG")

Submission status: Wrong Answer

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

for i in range(b-a):
    c = a+i
    if c%k==0 :
        print("ok")
        break
    
    if c == b-1 :
        print("NG")
if b%k == 0:
    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:
        if (int(k) == 11):
            print("OK")
        else:
            print("NG")
    elif int(b)-int(a) == 1 and int(a) != int(k) and int(k)%2 != 0:
        print("NG")
    elif int(a) - int(k) == 1 and int(k) != 1:
        print("NG")
    else:
        print("OK")

else:
    print("NG")

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

Submission status: Wrong Answer

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

if flag==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())

for i in range(b-a):
    c = a+i
    if c%k==0 :
        print("ok")
        break
    
    if c == b-1 :
        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")
    exit()
if k > b:
    print("NG")
    exit()
a //= k
b //= k
if b > a:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
n=int(input())
flag=0
a,b=input().split()
a=int(a)
b=int(b)
for i in range(a,b):
  if(i%n)==0:
    flag=1
if(flag==1):
  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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

x = a // k

if x!=a and k == a:
  k = k*x
elif x != a:
  k = k*(x+1)
else:
  k = k*x
if 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 b - a >= k-1:
  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())
lis = list(range(a,b))

if all(j % k != 0 for j in lis):
    print('NG')
else:
    print('OK')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())
ans = [i for i in range(a,b) if i%k==0]

if not ans:
    print('NO')
else:
    print('OK')

Submission status: Wrong Answer

Solution code:
print(2)

Submission status: Wrong Answer

Solution code:
n = int(input())
a ,b =map(int,input().split())
m = []
if a != b:
    for x in range(a,b):
        if x%n == 0:
            i = m.append(x)
            break

else:
    i = a%n
    if i == 0:
        m.append(i)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
list = [i for i in range(A, B) if i % K == 0]
if len(list) >= 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:
    if a%k == 0 or b%k == 0:
        print('OK')
    else:
        print('NG')

Submission status: Wrong Answer

Solution code:
def main():
  k = int(input())
  a, b = map(int, input().split())
  
  m = []
  
  for i in range(a, b):
    if i%k == 0:
      m.append(i)
      break
    
  if len(m)>0:
    print('OK')
  else:
    print('NG')
  
main()

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
l = [i for i in range(A, B) if i % K == 0]
if len(l) > 0:
  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

a_mod_k = a % k
b_mod_k = b % k

if b < k:
    print("NG")
elif k == 1:
    print("OK")
elif k == b:
    print("OK")
elif (a_mod_k == 0) and (b_mod_k == 0) and (a_div_k == b_div_k):
    print("OK")
elif (k < a) and (a_div_k == b_div_k):
    print("NG")
else:
    print("OK")

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

if A >= B:
    print('NG')
else:
    for i in range(A, B):
        if i % K == 0:
            C = 1
    if C == 1:
        print('OK')
    else:
        print('NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())
A=list(map(int, input().split()))
z= 0
for i in range(A[0],A[1]+1):
    if i%N==0:
        print("OK")
        break
i=i+2
if i>A[1]:
    print("NG")

Submission status: Wrong Answer

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

for value in range(A - 1, B + 1):
    if value % K == 0 :
        print('OK')
        break
else:
        print('NO')

Submission status: Wrong Answer

Solution code:
from sys import stdin

X = int(stdin.readline())
Y = 100

count = 1
while True:
  Y += Y*0.01
  if Y >= X:
    print(count)
    break
  else:
    count += 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:
K=int(input())
A,B=map(int,input().split())
for i in range(A,B):
    j=i%K
    if j!=0:
        continue
    elif j==0:
        print('OK')
        break
    else:
        print('NG')

Submission status: Wrong Answer

Solution code:

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

x = a // k
if k == 1:
  print("OK")
  exit()

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

Submission status: Wrong Answer

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

for value in range(A , B + 1):
    if value % K == 0 :
        print('OK')
        break
else:
        print('NO')

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int,input().split())
l = []
for i in range(A,B+1):
    if i % 7 == 0:
        l.append(i)
#print(l)
if not l:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

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

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

if A>B:
    print('NG')
else:
    for i in range(A, B):
        if i % K == 0:
            C = 1
    if C == 1:
        print('OK')
    else:
        print('NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys

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

if k==1:
    print('Ok')      
    sys.exit() 

wk = (a//k)+1
while wk <=b:
    if wk*k<=b:
        print('Ok')      
        sys.exit()   
    else:
        wk+=1
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(b)-int(a) == 1 and int(a) != int(k) and int(k)%2 != 0:
        print("NG")
    elif int(a) >= int(k):
        print("NG")
    else:
        print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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


p = ((a-1)//n+1)*n
if(p<=b):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
K = int(input())

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

for x in range(A, B+1):
  if x % 7 == 0:
    print("OK")
  else: 
    print("NG")

Submission status: Wrong Answer

Solution code:
import math
k = int(input()) 
a, b = map(int,input().split())
low = a/k
high = b/k
if k == 1:
    print("OK")
elif a%k == 0 or b%k == 0:
    print("OK")
elif high - low >= 1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=map(int,input().split())
a=A//K
b=B//K
def f(x):
    return x//1
if f(b)-f(a)>=1:
    print("OK")
if A//K==0:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

k = int(K)
a = int(A)
b = int(B)

x = a // k
z = b // k

for i in range(z-x + 1):
  if a <= k*(x+i) and k*(x+i) <= b:
        print("OK")
        exit()
print("NO")

Submission status: Wrong Answer

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

if int(b) >= int(k) and 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(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+1):
    if i % K == 0:
        print("OK")
print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a = A%K

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for value in range(A , B):
    if value % K == 0 :
        print('OK')
        break
else:
        print('NO')

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

if A>B:
    print('NG')
else:
    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 = int(input())
a, b = map(int, input().split())
checker = False
if a!=b:
  for i in range(a+1,b+1):
    if i%k == 0:
      checker = True
      break
else:
  if a%k == 0:
      checker = True
print("OK" if checker else "NG")

Submission status: Wrong Answer

Solution code:
import sys
#sys.exit()
#sorted( ,reverse=True)
K = int(input())
A,B = map(int, input().split())
#print( A/K ,B/K,2*K)
if A/K >=2 and B/K >=2:   
    
#A = list(map(int, input().split()))

    print('OK')
elif A < 2*K <= B:
    print('OK')

else:
    
    print('NG')

#print(A)
#print('Yes')
#print('No')

Submission status: Wrong Answer

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

k = int(K)
a = int(A)
b = int(B)

x = a // k
z = b // k

for i in range(z-x + 1):
  if a <= k*(x+i) and k*i <= b:
        print("OK")
        exit()
print("NO")

Submission status: Wrong Answer

Solution code:
n,a,b=map(int,open(0).read().split())

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