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

s= int(B-A+1)


if s>0:
  print("OK")

else:
  print("NG")

Submission status: Wrong Answer

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

a1=a/k
b1=b/k
a2=a%k
b2=b%k

if b1-a1>=1 or a2==0 or b2==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):
  if i % A ==0:
    print("OK")
    break

print("NG")

Submission status: Wrong Answer

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

flag=False
for i in range(a,b+1):
    if i % k == 0:
        flag =True


if(flag):
    print('OK')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
k = int(input())
l, m = map(int, input().split())

if (l-l%k == m):
    print("OK")
elif ((l-l%k)+k <= m):
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
a = int(input())
b,c = (map(int,input().split()))
d=1
while b<=c:
    if b%a==0:
        print('OK')
        break
    elif d==c-b+1:
        print('NG')
        break
    b+=1
    d+=1

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

def main():
    k = int(input())
    a,b = map(int, input().split())
    n = "OK"
    for ai in range(a,b+1):
        if ai%k==0:
            break
            sys.exit()
        else:
            n="NG"
    print(n)
    
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input().strip())
num = list(map(int, input().split()))
count = k
while 1:
    k += count
    if num[0] <= k <= num[1]:
        print('OK')
        break
    elif num[1] < k:
        print('NG')
        break

Submission status: Wrong Answer

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

ka = a/K
kb = b/K
kaama = a%K
kbama = b%K



if kaama == 0 or kbama == 0:
  print("OK")
  
elif (kb-ka)>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+a%k)>=k or (b-a+a%k)==0) and k<=b  else "NG")

Submission status: Wrong Answer

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

if b-k>=a-k>=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 a==1:
    print('OK')
elif b-a==0:
    if a%k == 0:
        print('OK')
    else :
        print('NG')
elif b-a>=k+1 :
    print('OK')
else :
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
score = input().split()
s = int(score[1]) - int(score[0])
if s == 0:
	if (s % K) == 0:
		print('OK')
	else:
		print('NG')
elif (s // K) > 0:
		print('OK')
else:
		print('NG')

Submission status: Wrong Answer

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

if a % n == 0 or b % n == 0 or  b - a >= n:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

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

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

print("NG")

Submission status: Wrong Answer

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

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())
ans = 'OK' if b//k - (a+k-1)//k >= 1 or a%k==0 or b%k==0 and a >=k and b >= k else 'NG'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = list(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())
count = ''
for c in  range(a,b) :
    if c % k == 0 :
        count = 'OK'
        break
    else :
        count = 'NG'
if (b - a)==0 and k == 1 :
    count = 'OK'        
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K=int(input())
A_B=list(map(int,input().split()))
A=A_B[0]
B=A_B[1]
m=1
c=0
for i in range(1,(B+1)//K):
  m=i*K
  if(m>=A and m<=B):
    c=1
  else:
    c=0
if(c==1):
  print("OK")
elif(c==0):
  print("NG")

Submission status: Wrong Answer

Solution code:
import math
K=int(input())
A,B=map(int, input().split())
if A%K==0 or B%K==0:
  print('OK')
  exit()

c=math.ceil(A/K)
d=math.ceil(B/K)
for i in range(1,d+5):
  if K*(c+i) >= A and K*(c+i) <= B:
    print('OK')
    #print(K*(c+i))
    exit()
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 = b-a
if (wk//k)>= 1:
    print('Ok')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())

data = input().split()
a = int(data[0])
b = int(data[1])

if a % k == 0 or b % k == 0 or b -a >= k:
    print("OK")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
k = int(input())
x = input().split()
a = int(x[0])
b = int(x[1])
if (b//k != a//k) or b/k == a/k:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
import sys
 
K = int(input())
A, B = map(int, input().split())
 
for i in range(A, B+1):
  print(i)
  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 a < b:
    if b - a + 2 >= k:
        print('OK')
    else:
        print('NG')
else:
    if a % k == 0:
        print('OK')
    else:
        print('NG')

Submission status: Wrong Answer

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

aK = a // k
bK = b // k
dif = bK - aK
if (dif > 1):
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    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())
if a==1:
    print('OK')
elif b-a==0:
    if a%k == 0:
        print('OK')
    else :
        print('NG')
elif b-a>=k :
    print('OK')
else :
    print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

OK = False

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

if a <= b or K == 1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

flag=False
for i in range(a,b):
    if i % 7 == 0:
        flag =True

if(flag):
    print('OK')
else:
    print('NO')

Submission status: Wrong Answer

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

A_flg = False
B_flg = False

c = int(A/K)
if (c+1)*K >= A or c*K >= A:
    A_flg = True

d = int(B/K)
if d*K <= A or (d-1)*K <= A:
    B_flg = True

if A_flg and B_flg:
    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("NO")

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
y = 100
n = 0
while(y<X):
  y = int(y*1.01)
  n += 1 
print(n)

Submission status: Wrong Answer

Solution code:
def doable(multiples, A, B):
	return any([m in range(A, B) for m in multiples])

k = int(input())
A, B = input().split()
A, B = int(A), int(B)
multiples = [k * i for i in range(1, B + 1)]
print('OK') if(doable(multiples, A, B)) else print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
k=int(input())
a, b = tuple(map(int, input().split()))
f=False
for i in range(0,int(1000/k)):
    if a<=i*k<=b:
       f=True
       break

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

Submission status: Wrong Answer

Solution code:
k = int(input())
a,b = map(int,input().split())
c = b - a
print(c)
lis = []
if k == 1:
    print("OK")
else:
    for i in range(c):
        lis.append(a + i % k)
    if lis.count(0) == 0:
        print("OK")
    else:
        print("NG")

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=map(int,input().split())
ans=A//K
Ans=(ans+1)*K
if Ans<=B or K==1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

s= int(A/K)
r= (s+1)*K

if (r>=A and r<=B) or (K==1):
  print("OK")


else:
  print("NG")

Submission status: Wrong Answer

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

print(int(A)//K+1)
print(int(B)//K)

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = [int(i) for i in input().split()]
flag=0
for i in range(1,1001):
    if(i*K>A and i*K<B):
        print("OK")
        flag=1
        break
if (flag==0):
    print("NG")

Submission status: Wrong Answer

Solution code:
k = int(input())

data = input().split()
a = int(data[0])
b = int(data[1])

if a % k == 0 or b % k == 0:
    print("OK")
elif b%k - a%k >= k:
    print("OK")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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())
flag = False
list = [i for i in range(a,b)]
if k == 1 or k == a or k == b:
    flag = True
else:
    for num in list:
        if num%k == 0:
            flag = True
            break

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
 
N = A // K
 
if K*(N+1) <= B:
  print("OK")
elif K == A*N:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
import sys
K = int(input())
A, B = map(int, input().split(" "))
for i in range(A, B+1):
  print(i)
  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-a>=k-1 or a%k<=b%k:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
K = int(input("multiple of: "))
A, B = map(int, input().split())
word = "NG"
for i in range(1, 1000):
    M = K * i
    if M in range(A, B+1):
        word = "OK"
        break
    else: 
        continue
print(word)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input());

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

if k == 1:
  print("OK");
elif a//k == b//k:
  print("NG");
else:
  print("OK");

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split())
flag = 0
if b % k > 0:
  if (int(b / k) - 1) * k >= a:
    flag = 1
else:
  flag = 1
  
if flag:
  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())
x = input().split()
a = int(x[0])
b = int(x[1])
if b//k != 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")
else:
    print("NG")

Submission status: Wrong Answer

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

if A >= B:
    l = A
    s = B
else :
    l = B
    s = A


if  0 <l - s < K:
    for i in range(s, l):
        ans = i % K
        if ans == 0:
            print('OK')
            break    
    if ans != 0:
        print('NG')
elif l -s == 0:
    if l % K == 0 :
        print('OK')
    else:
        print('NG')
else :
    print('OK')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

    else:
        print("NG")

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

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:
    a = 1
    break
print("OK" if a == 1 else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for num in range(1,1000):
  if A <= K*num <= B:
    print('OK')
    break

print('NG')

Submission status: Wrong Answer

Solution code:
#---We Love Golf

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

#judge = b - a

q_1, mod_1 = divmod(a,K)
q_2, mod_2 = divmod(b,K)

if(K == 1 or b == K or a == K):
  print("OK")
  exit()

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__ == '__main__':
  main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def doable(multiples, A, B):
	return any([m in range(A, B) for m in multiples])

k = int(input())
A, B = input().split()
A, B = int(A), int(B)
multiples = [k * i for i in range(1, B)]
print('OK') if(doable(multiples, A, B)) else print('NG')

Submission status: Wrong Answer

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

A = a / K
B = b / K
C = int(B) - int(A) + 1
#print(A,C)
l = []
for i in range(1,C):
    l.append((int(A) + i) * K)
#print(l)
if K == 1:
    print('OK')
elif len(l) >= 1:
    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 C==0 or D==0:
    print("OK")
elif C>=D:
    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 b % k == 0 or a % k == 0 :
    #print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = (int(x) for x in input().split())
c = A // K
while True:
    if K == 1:
        print('OK')
        break
    b = K * (c + 1)
    if b >= A and b <= B:
        print('OK')
        break
    elif b > B:
        print('NG')
        break

Submission status: Wrong Answer

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

c = list(range(a,b+1))
d = []

for i in range(len(c)):
    if c[i] % k == 0:
        d.append('A')

if len(d) >= 1:
    print('OK')
else:
    print('No')

Submission status: Wrong Answer

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

if b - a < k and a <= k:
  print('NG')
else:
  print('OK')

Submission status: Wrong Answer

Solution code:
n=int(input())
a,b=map(int,input().split())
l=[abb for abb in range(a, b+1)]
kl=[]
for am in l:
    if am%7==0:
        kl.append(am)
if len(kl)>0:
    print("OK")
else:
    print("NG")

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(i)
        print("OK")
        sys.exit()
print("NG")

Submission status: Wrong Answer

Solution code:

import numpy as np

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

m = (1000//n)

l = np.arange(n,1000,n,dtype=int)

for i in range(m-1):
    if A <= l[i] <= B:
        print("OK")
        break
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int, input().split())
C = K
count = 1
ans = "NG"

while (C<=B):
    #print("test")
    if(A<=C and C<=B):
        ans ="OK"
    C = K*count
    count += 1
    print(C)


print(ans)

Submission status: Wrong Answer

Solution code:
K = int(input())
score = input().split()
if int(score[0]) >= K:
	if int(int(score[0])/K) < int(int(score[1])/K):
		print('OK')
	else:
		if int(score[0]) % K == int(score[1]) % K:
			print('OK')
		else:
			print('NG')
else:
	print('NG')

Submission status: Wrong Answer

Solution code:
K = int(input("multiple of: "))
A, B = map(int, input().split())
for i in range(1, 1000):
    M = K * i
    if M in range(A, B+1):
        print("OK")
        break
    elif i == 1000 and M not in range(A, B):
        print("NG")
    else: 
        continue

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def doable(multiples, A, B):
	return any([m in range(A, B) for m in multiples])

k = int(input())
A, B = input().split()
A, B = int(A), int(B)
multiples = [k * i for i in range(1, (B // k) + 2)]
print('OK') if(doable(multiples, A, B)) else print('NG')

Submission status: Wrong Answer

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

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+=1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())
l, u = map(int, input().split())

if (l%k==0) or (u%k==0):
  print("OK")
else:
  tmp1 = l / k
  tmp2 = u/k
  print('OK' if tmp2-tmp1>=1 else 'NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input().strip())
num = list(map(int, input().split()))
a = int(num[0] / k)
b = int(num[1] / k)
if a == b:
    print('NG')
else:
    print('OK')

Submission status: Wrong Answer

Solution code:

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

if A == B:
    print("OK")
elif abs(A/K - B/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 == 1:
    print("OK")
elif (B - A)>=1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
num = int(input())
a,b = map(int, input().split())
if b < (a//num+1)*num :
  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:
    for a in range(1000):
        if a * K >= A:
            if a * 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 % k == 0:
        print("OK")
        break
    else:
        print("NG")
        break

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
saving = 100
count = 0
while x > saving:
  saving = math.floor(saving + saving * 0.01)
  count += 1
print(count)

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>K:
    print("NG")


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

Submission status: Wrong Answer

Solution code:
a=int(input())
b,c=input().split()
while True:
    a+=7
    if (int(b))<=a<=(int(c)):
        print("OK")
        break
    elif (int(c))<a:
        print("NG")
        break

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

Submission status: Wrong Answer

Solution code:
k=float(input())

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

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

Submission status: Wrong Answer

Solution code:
K = int(input())
score = input().split()
if int(score[0]) > K:
	if int(int(score[0])/K) < int(int(score[1])/K):
		print('OK')
	else:
		if int(score[0]) % K == int(score[1]) % K:
			print('OK')
		else:
			print('NG')
else:
	print('NG')

Submission status: Wrong Answer

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

OK = False

a = min(int(A/K),int(B/K))
b = max(int(A/K),int(B/K))

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

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int,input().split())
ka = []
jl = []


for j in range(b):
  j+=1
  jl.append(j)
  

for i in range(b):
  i+=1
  ks = k * i 
  ka.append(ks)

  
if jl in ka:
  print("OK")
elif jl not in ka:
  print("OK")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


#出力　#自力
if B/K-(A-1)/K >= 1:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())

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

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A = list(map(int, input().split()))
d=A[1]-A[0]
ok=0
if d==0:
    if A[0]%K==0:
        print("OK")
        ok+=1
        
for i in range(d):
    if A[0]%K==0:
        print("OK")
        ok+=1
        break
    else:
        a=A[0]
        A[0]=a+1

if ok==0:
    print("NG")

Submission status: Wrong Answer

Solution code:
#---We Love Golf

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

#judge = b - a

q_1, mod_1 = divmod(a,K)
q_2, mod_2 = divmod(b,K)

if(K == 1 or b == K or a == K):
  print("OK")
  exit()

if(q_1 == q_2):
  print("NG")
else:
  print("OK")

Submission status: Wrong Answer

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