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: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
A = int()
B = int()
D = int()
K = int()
1 <= A <= D <= B <= 1000
1 <= K <= 1000
if D % K == 1:
    print('NG')
else:
    print('OK')

Submission status: Runtime Error

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

for i in range(1000):
    num = i * n
    if num > b:
        ptint('NG')
        break
    if num < a:
        continue
    else:
        print('OK')
        break

Submission status: Runtime Error

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

if (A/K+1<B/K):
    print('OK')
else:
    print('NG')

Submission status: Runtime Error

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: Runtime Error

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

listK = [K*i for i in range(1, 1000) if K*i<=1000]

for j in listK:
    if A<=listK[j] and listK[j]<=B:
        print('OK')
        exit()

print('NG')

Submission status: Runtime Error

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

If A%K == 0 or B%K == 0
	print 'OK'

elif A <= K*(A//K + 1) and K*(A//K + 1) <= B :
	print 'OK'

else :
	print 'NG'

Submission status: Runtime Error

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

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

else:
    print("OK")

Submission status: Runtime Error

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

for i in range(i*K):
    if i*K>=A and i*K<=B:
        print('OK')
        break
for i in range(i*K):
    if i*K<A or i*K>B:
        print('NG')
        break

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int()
B = int()
D = int()
K = int()
1 <= A <= D <= B <= 1000
1 <= K <= 1000
if D % K == 0:
    print('OK')
else:
    print('NG')

Submission status: Runtime Error

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

for i in range(1000):
    num = i * n
    if num > b:
        ptint('NG')
        break
    if num < a:
        continue
    print('OK')
    break

Submission status: Runtime Error

Solution code:
import math
x=(int)(input())
y=100
count=0
while x>y:
  y=math.floor(y*1.01)
  count=count+1
cout<<count

Submission status: Runtime Error

Solution code:
1
11 11

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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="OK"
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pysnooper # @pysnooper.snoop()
from pprint import pprint as pp
from pprint import pformat as pf

def solve():
    k = int(input())
    a, b = map(int, input().split())
    v = k
    while not (v > b):
        if a <= v <= b:
            print("OK")
            return 0
        v += k
    print("NG")
    return 0


if __name__ == '__main__':
    solve()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

a = range(A,B)
b= list(a)

from math input multiple

if multiple of K in b:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

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

sa = B - A 
flag = 0

for i in range(sa+1):
	if (A+i)%K==0:
		flag = 1
		break

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

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pysnooper # @pysnooper.snoop()
from pprint import pprint as pp
from pprint import pformat as pf

def solve():
    k = int(input())
    a, b = map(int, input().split())
    v = k
    while not (v > b):
        if a <= v <= b:
            print("OK")
            return 0
        v += k
    print("NG")
    return 0


if __name__ == '__main__':
    solve()

    print('\33[32m' + 'end' + '\033[0m')

Submission status: Runtime Error

Solution code:
for i in range(A,B+1):
	if i % K == 0:
        return 'OK'
		break
    elif i == B and i % K != 0:
        return 'NG'
    else:
        pass

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())
x,y = map(int,input().split())
a = range(x,y)
for i in a:
    if any(i %k == 0):
        print('OK')
    else:
        print('NG')

Submission status: Runtime Error

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")
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: Runtime Error

Solution code:
k,x,y = map(int,input().split())

if (x//k+1)*k <<y :
    print('OK')
else:
    print('NG')

Submission status: Runtime Error

Solution code:
k=int(input())
a=int(input())
b=int(input())
for i in range(a,b):
  if i%k == 0:
    print("OK")
    break
print("NG")

Submission status: Runtime Error

Solution code:
import sys
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")
    sys.exit()
print("NG")

Submission status: Runtime Error

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

fly=0
l=[]
while fly<b:
    fly += k
    l.append(fly)

if l[-1]>=a and l[-1]<=b:
    print('OK')
elif l[-2]>=a and l[-2]<=b:
    print('OK')
else:
    print('NG')

Submission status: Runtime Error

Solution code:
A = int(A)
B = int(B)
K = int(K)

if K < A:
    print('NG')
elif K > B:
    print('NG')
else:
    print('OK')

Submission status: Runtime Error

Solution code:
K = int(input())
A, B = map(int, input().split())
i = A // K
nK = K
OK = False
if A-B > K:
  print('OK')
else:
  while nK =< B:
    if (nK >= A) and (nK <= B):
      OK = True
      print('OK')
      break
    nK = i * K
    i = i + 1
if OK == False:
  print('NG')

Submission status: Runtime Error

Solution code:
N = int(input())
A=input().split()

s=int(A[0])//N
if int(A[0])%N==0:
    print('OK')
else:
    if (s+1)*N>=A[1]:
        print('NG')
    else:
        print('OK')

Submission status: Runtime Error

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

n = range(A,B+1)
ind = range(B-A)
for i in n:
    list.append(i)
counter = 0

for i in ind:
    if list[i]%K == 0:
        counter += 1
    else:
        counter += 0
if counter > 0:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

Solution code:
import math
k = input()
s, t = [int(i)/k for i in input().split()]

if math.ceil(s) <= math.floor(t):
  print('OK')
else:
  print('NG')

Submission status: Runtime Error

Solution code:
i=input(int())
j,k=input(int())
for l in range(k+1)
  if j<=l*i<=k:
    break
    print("OK")
  else:
    print("NG")

Submission status: Runtime Error

Solution code:
K,A,B=map(int,input().split())
for i in range(0,1000):
    K=K+7
    if K>A and K<B:
        print('ok')
        break
    else:
        print('No')
        break

Submission status: Runtime Error

Solution code:
N = input()
A=input().split()

s=int(A[0])//int(N)
if int(A[0])%int(N)==0:
    print('OK')
else:
    if (s+1)*N=>A[1]:
        print('NG')
    else:
        print('OK')

Submission status: Runtime Error

Solution code:
k,x,y = map(int,input().split())

if (x//k+1)*k <<y :
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:
K=int(input())
inp=input().split(' ')
A=int(inp[0])
B=int(inp[1])
for i in range(A,B+1):
    if i%K==0:
        return "Yes"
    return "No"

Submission status: Runtime Error

Solution code:
K=int(input())
A=int(input())
B=int(input())
for i in range(A,B):
    if i%K==0:
        print(OK)
    else:
        print(NG)

Submission status: Runtime Error

Solution code:
4
5 7

Submission status: Runtime Error

Solution code:
k = int(input())
a_b = input().split()[1].split(" ")
a = int(a_b.split(" ")[0])
b = int(a_b.split(" ")[1])

for i in range(1, 1000):
  if a<= (i* k) <= b:
    print("OK")
    break
  elif (i* k) > b:
    print("NG")
    break
else:
    print("NG")

Submission status: Runtime Error

Solution code:
K = int(input())
score = input().split()
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'

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
D = int(input())
K = int(input())
1 <= A <= D <= B <= 1000
1 <= K <= 1000
if D % K == 0:
    print('OK')
else:
    print('NG')

Submission status: Runtime Error

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

Submission status: Runtime Error

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
  if(i==B and i%K !=0)
    print("NG")

Submission status: Runtime Error

Solution code:
print(OK)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
 = int(input())
A = int(input())
B = int(input())

if K = 1 :
    print('OK')

elif (B - A) >= K :
   print('OK')

else :
   print('NG')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

a=int(input())
#li = list(map(int,input().split()))
print(math.ceil(li[0]/a)*a)
if li[1]<math.ceil(li[0]/a)*a:
    print("NG")
else:
    print("OK")

Submission status: Runtime Error

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

a_1 = A[0] / s
b_1 = A[1] / s

if b_1 - a_1 > 1 :
    print('OK')
else :
    print('NG')

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:
K,A,B=map(int(input()))
for i in range(0,1000):
    K=K+7
    if K>A and K<B:
        print('ok')
        break
    else:
        print('No')
        break

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

from math import multiple

if multiple of K in B-A:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

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

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

print("NG")

Submission status: Runtime Error

Solution code:
K,A,B=map(int(input()split()))
for i in range(0,1000):
    K=K+7
    if K>A and K<B:
        print('ok')
        break
    else:
        print('No')
        break

Submission status: Runtime Error

Solution code:
A=int(A)
B=int(B)
K=int(K)

if K<A:
  print('NG')
elif K>B:
  print('NG')
else:
  print('OK')

Submission status: Runtime Error

Solution code:
K = int(input())
A, B = map(int, input().split())
i = A // K
nk = K
OK = False
if A-B >= K:
  print('OK')
else:
  while nK < B:
    if (nK >= A) and (nK <= B):
      OK = True
      print('OK')
    nK = i * K
    i = i + 1
if OK == False:
  print('NG')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = input()
a = input()
b = input()
c = True
for i in range(int(a),int(b)+1):
    if i % int(k) == 0:
        c = False
        print('OK')
        break

if  c:
    print('NG')

Submission status: Runtime Error

Solution code:
N = input()
A=input().split()

s=int(A[0])/int(N)
if (s+1)*N>A[1]:
    print('NG')
else:
    print('OK')

Submission status: Runtime Error

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

aa=a//k
bb=b//k

if bb-aa=>1:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

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

if B < K:
    print('NG')
    sys.exit()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K = int(input())
A, B = map(int, input().split())
i = A // K
nk = K
OK = False
if A-B >= K:
  print('OK')
else:
  while nK < B:
    if (nK >= A) and (nK <= B):
      OK = True
      print('OK')
    nK = i * K
    i = i + 1
if OK = False:
  print('NG')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():
    K=int(input())
    (A,B)=[int(x) for x in input().split()]
    if A % K == 0:
        print('OK')
    elif math.ceil(A/K)*K <= B:
        print('OK')
    else:
        print('NG')
 
if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
K = int(input())
A = int(input())
B = int(input())

if (B - A) >= K :
   print('OK')

elif K == 1 :
    print('OK')

else :
   print('NG')

Submission status: Runtime Error

Solution code:
def Golf(A,B,K):
  for i in range(A,B):
    if(i%k==0):
      print("OK")
    else:
      print("NG")
A,B=int(input())
K=int(input())
Golf(A,B,K)

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

Solution code:
K=int(input())
A,B=(int(x) for x in input().split())
if K-(A%K)<=B-A or k==A:print('OK')
else:print('NG')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

int main()
{
    int k, a, b;
    bool flag = false;
    cin >> k >> a >> b;

    for (int i = a; i<=b; i++) {
        if (i % k == 0) {
            flag = true;
        }
    }

    if (flag) {
        cout << "OK" << endl;
    } else {
        cout << "NG" << endl;
    }
    return 0;
}

Submission status: Runtime Error

Solution code:
K = int(input())
arr = list(map(int, input()))
a = arr[1] % K
b = arr[1] - arr[0]
if a > b:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

Solution code:
K = int(input())
A,B=[int(i) for i in input().split(" ")]
if A%K == 0　or (A//K+1)*K <= B:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

Solution code:
K=int(input())
A,B=map(int,input().split())
for i in range(A,B):
  if(i%K==0):
    print("ok")
    break
  if(i==B and i%K not ==0)
    print("NG")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K=int(input())
A=int(input())
B=int(input())
if B%K<B-A:
    print(OK)
else:
    print(NG)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
A= int(input())
# スペース区切りの整数の入力
B= map(int, input().split())
# 文字列の入力
s = input()
# 出力
print("{} {}".format(a+b+c, s))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K=int(input())
A, B = map(int, input().split())
a=A//K
b=A%K
c=B%K

if(b==0 or c==0):
  print("OK")
else:
  if(1<a):
    if(a*K<=B):
      print("OK")
    else:
      print("NG")
  else:
    print("NG")
~

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input(K)
input(A)
input(B)

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

if K<A:
  print('NG')
elif K>B:
  print('NG')
else:
  print('OK')

Submission status: Runtime Error

Solution code:
k = int(input())
a, b = map(int,input().split())
n = 1
flag = True
while (k*n) <= b:
    if (k*n) >= a and (k*n) <= b:
        ans = "OK"
        break
    else:
        ans = "NG"
    n += 1
print(ans)

Submission status: Runtime Error

Solution code:
import math
def main():
    K=int(input())
    (A,B)=[int(x) for x in input().split()]
    if A % K == 0:
        print('OK')
        exit(0)
    elif math.ceil(A/K)*K <= B:
        print('OK')
        exit(0)
    else:
        print('NG')
        exit(-1)

if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

a_1 = a / s
b_1 = b / s

if b_1 - a_1 > 1 :
    print('OK')
else :
    print('NG')

Submission status: Runtime Error

Solution code:
K=int(input())
A,B=map(int,input().split())
for i in range(A,B):
  if(i%K==0):
    print("ok")
  if(i==B and i%K!=0)
    print("NG")

Submission status: Runtime Error

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

while a <= b :
    if a % c == 0:
        d = d + 1;

    a = a + 1;
    
if d == 0:
    print("NG");

else:
    print("OK");

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
text = input()
rows = text.split('\n')
k = int(rows[0])
a = int(rows[1].split(' ')[0])
b = int(row[1].split(' ')[1])
for i in range(a, b + 1):
    if i % k == 0:
        print('OK')
        break
else:
    print('NG')

Submission status: Runtime Error

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

flag = 0
for i in range(1000):
    if (a <= k * (i+1) and (b >= k * (i+1):
        print("OK")
        flag=1
        break
if flag != 1:
    print("NO")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
if k >= 1:
    print("OK")

if b - a + 2 >= k:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())

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

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

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
  K = int(input())
  AB = input().split()
  A, B = int(AB[0]), int(AB[1])
  
  ng = True
  for x in range(A, B+1):
    if x % K == 0:
    	print("OK")
        ng = False
        break
  if ng:
    print("NG")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
def(A,B,K):
  for i in range(A,B):
    if(i%k==0):
      print("OK")
    else:
      print("NG")

Submission status: Runtime Error

Solution code:
a=int(input())
x,y = map(int,input().split())	

b = x//a
c = y//a

if c-b <= 1:
    print('NG')
elif:
    print('OK')

Submission status: Runtime Error

Solution code:
K = int(input())
A,B = map(int, input().split())
p = 0
for i in range(1000):
    if A <= K*i and k*i <= B:
        p = 1
        break
if p == 1:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

Solution code:
K=int(input())
A,B=map(int,input().split())
for i in range(A,B):
  if(i%K==0):
    print("ok")
  if(i==B and i%K not ==0)
    print("NG")

Submission status: Runtime Error

Solution code:
a = A//K
# b = B//K
C = K * (a+1)

# if K > B:
    # print ("NG")


if C <= B:
    print ("OK")
else:
    print ("NG")

Submission status: Runtime Error

Solution code:
S = int(input())
A,B = map(int,input().split())
check = false
ans = 0
i = 1
while S <= B:
  ans = S * i
  if A <= ans and B >= ans:
    check = true
    break
if check:
  print('OK')
else:
  print('NG')

Submission status: Runtime Error

Solution code:
if K<A:
  print('NG')
elif K>B:
  print('NG')
else:
  print('OK')

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
#include<iostream>
#include<string>
#include<set>
using namespace std;
#define rep(i, a, n) for (int i = a; i < n; i++)
typedef long long ll;

signed main(){
    int k,a,b;
    cin>>k>>a>>b;
    for(int i=a;i<=b;i++){
        if(i%k==0){
            cout<<"OK"<<endl;
            return 0;
        }
    }
    cout<<"NG"<<endl;
    return 0;
}

Submission status: Runtime Error

Solution code:
K = int(input())
A,B = map(int, input().split())
p = 0
for i in range(1000):
    if A <= K*i and k*i <= B:
        p = 1
        break
if p = 1:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

Solution code:
s = input(input())
a, b = map(int, input())

a_1 = a / s
b_1 = b / s

if b_1 - a_1 > 1 :
    print('OK')
else :
    print('NG')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
K=int(input())
AB=input().split()
A=int(AB[0])
B=int(AB[1])
for i in rage(A,B+1):
    i=567
    if(i%K==0):
        print('OK')
        exit()
print('NG')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k=int(input())
a=int(input())
b=int(input())
c=0
for i in range(a,b+1):
  if i%k==0:
    c=c+1
if c==0:
  print("NG")
else:
  print("OK")

Submission status: Runtime Error

Solution code:
k = int(input().split())
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: Runtime Error

Solution code:
A, B = int(input())
s = int(input().split())
if s == 1:
    print("OK")
if s < A:
    print("NG")
if s > B:
    print("NG")
print("OK")

Submission status: Runtime Error

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: Runtime Error

Solution code:
a = int(input())
b, c = list(map(int, input().split()))
if 
if int(c/a)>int(b/a):
  print("OK")
else:
  if b % a == 0:
    print("OK")
  else:
    print("NG")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

for i in range(1,1001):
    if (a//k <= i and i <= b//k):
        print("OK")
    else:
        pront("NG")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
_input = input()
k = _input.split()[0]
a = _input.split()[1].split(" ")[0]
b = _input.split()[1].split(" ")[1]

for i in range(1, 1000):
  if a<= (i* k) <= b:
    print("OK")
    break
  elif (i* k) > b:
    break
    print("NG")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
f=1
a,b=map(int,input().split())
for i in range(a,b+1):
  if i%n==0:
    print('yes')
    f=1
    break
if f==0:
  print('no)

Submission status: Runtime Error

Solution code:
k = int(input())

a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
a = []
n = int(input())
for _ in range(n):
  ls = list(map(int, input().split()))
  a.append(ls)
print(ls)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
i = list(map(int,input().split()))
f = 0
for x in range(i[1],i[2]+1):
    if x % i[0] == 0:
        f = 1

if f == 1:
    print("OK")
else:
    print("No")