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

for x in range(N+1):
    if (int((A*x)/B)-A*int(x/B)) > a:
        a = (int((A*x)/B)-A*int(x/B))
print(a)

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

Submission status: Runtime Error

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

if k < a:
  if k >= 2:
    if b - a >= k - 2:
    print("OK")
elif k == a or k == b:
  print("OK")
elif a < k  and k < b:
  print("OK")
print k == 1:
  print("OK")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
K = int(input())

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

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


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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

x = N
for x in reversed(range(1,N+1)):
  if x % B != 0:
    print(int(A*x/B)-A*int(x/B))
    exit()

    
print(0)

Submission status: Runtime Error

Solution code:
import math

A, B, N= (int(x) for x in input().split())
max = 0
x = B * math.floor(N/B) - 1
if x == -1:
    x = N
a = math.floor(A * x / B) - A * math.floor(x / B)
b = math.floor(A * N / B) - A * math.floor(N / B)
if a > b:
    print(a)
else:
    print(b)

Submission status: Runtime Error

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

x = N
for x in reversed(range(1,N+1)):
  if x % B != 0:
    print(int(A*x/B)-A*int(x/B))
    exit()


print(0)

Submission status: Runtime Error

Solution code:
n=int((input())
def f(n):
    a=0
    b=100
    while True:
        a+=1
        b*=(100+a)/100
        b=int(b)
        if b>=n:
            break
    return a
print(f(n))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

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

ans = 0
if N == max(A, B, N):
    ans = math.floor((A*N)/B)-A*(N//B)
else:
    if N <= 1000000:
        for x in range(1, N+1):
            tmp = math.floor((A*x)/B)-A*(x//B)
            ans = max(ans, tmp)
    else:
        for x in range(1, 300000):
            tmp = math.floor((A*x)/B)-A*(x//B)
            ans = max(ans, tmp)

        base = N//2-150000
        for x in range(base, base+300000):
            tmp = math.floor((A*x)/B)-A*(x//B)
            ans = max(ans, tmp)

        for x in range(N-300000, N+1):
            tmp = math.floor((A*x/B))-A*(x//B)
            ans = max(ans, tmp)
print(int(ans))

Submission status: Runtime Error

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

x = N
for x in reversed(range(1,N+1)):
  if x % B != 0:
    print(int(A*x/B)-A*int(x/B))
    exit()

print(0)

Submission status: Runtime Error

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


if (n >=b):
  x=int(n/b)*b-1
  print (int(a*x/b)-a*int(x/b))
else:
  xmax=0
  for x in range(1,n+1):
    atai=int(a*x/b)-a*int(x/b)
    if (atai >= xmax): xmax=atai
  print (xmax)

Submission status: Runtime Error

Solution code:
def f(n):
    a=0
    b=100
    while True:
        a+=1
        b*=(100+a)/100
        b=int(b)
        if b>=n:
            break
    return a
  
print(f(n))

Submission status: Runtime Error

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

Solution code:
K = int(input("倍する数字を入れてください"))

A = int(input("ジャンボ高橋君の最低飛距離を"))

B = int(input("ジャンボ高橋君の最高飛距離を"))

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

Submission status: Runtime Error

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

if k < a:
  if k >= 2 and (b - a) >= k - 2:
    print("OK")
elif k == a or k == b:
  print("OK")
elif a < k  and k < b:
  print("OK")
print k == 1:
  print("OK")
else:
  print("NO")

Submission status: Runtime Error

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

if k < a:
  if k >= 2 and b - a >= k - 2:
    print("OK")
elif k == a or k == b:
  print("OK")
elif a < k < b:
  print("OK")
print k == 1:
  print("OK")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
b=0
if (b-a)>k:
  print("ok")
else:
  for i in range(1,1001):
    if a<i*k<b:
      b=1
if b=0:
  print("ng")
else:
  print("ok")

Submission status: Runtime Error

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

for i in range(x,y):
    if i %k == 0

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

Submission status: Runtime Error

Solution code:
from math import floor,ceil
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
print(ceil(ceil(a*c/b)-a*floor(c/b)))

Submission status: Runtime Error

Solution code:
i=int(input())
j,k=int(input()).split()
l=0
while True:
    if j<=l*i<=k:
        print("OK")
        break
    elif l*i>k:
        print("NG")
        break
    l+=1

Submission status: Runtime Error

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

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*i and k*i <= b:
    print("OK")
    exit()

Submission status: Runtime Error

Solution code:
from math import floor,ceil
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
print(int(floor(a*c/b)-a*floor(c/b)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for x in reversed(range(1,N+1)):
  if x % B != 0:
    print(int(A*x/B)-A*int(x/B))
    exit()

Submission status: Runtime Error

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


max=0
for x in range(n+1):
    value=(a*x//b)-a*(x//b)
    if value>max:
        max=value
print(max)

Submission status: Runtime Error

Solution code:
i=int(input())
j,k=int(input()),int(input())
l=0
while True:
    if j<=l*i<=k:
        print("OK")
        break
    elif l*i>k:
        print("NG")
        break
    l+=1

Submission status: Runtime Error

Solution code:
from math import floor,ceil
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
print(floor(floor(a*c/b)-a*floor(c/b)))

Submission status: Runtime Error

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

x = N
for x in reversed(range(1,N+1)):
  if x % B != 0:
    print(int(A*x/B)-A*int(x/B))
    exit()

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
  else:
    continue
print("NG"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

x = N
for x in reversed(range(N)):
  if x % B != 0:
    print(int(A*x/B)-A*int(x/B))
    exit()

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
k,a,b=map(int,input().split())
for i in range(b):
    if  a <= k*i and k*i<=b:
        print('OK')
else:
    print('NG')

Submission status: Runtime Error

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

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*i and k*i <= b:
    print("OK")
    exit()

Submission status: Runtime Error

Solution code:
K = U[0]
A = Y[0]
B = O[0]
if K <= B:
  if K >= A:
    print("OK")

  else:
    min_range = A
    max_ranfe = B
    n = K
    if K in list(range(min_range + -min_range % n, max_range, n)):
      print("OK")
    else:
      print("NG")
else:
  print("NG")

Submission status: Runtime Error

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

for x in range(1, 1001): #x:ジャンボ高橋君の飛距離
    if (x%K == 0):
        if (A <= x <= B):
            print('OK')
        else:
            print('NG')
    else:
        print('NG')

Submission status: Runtime Error

Solution code:
a,b,n = map(int, input().split())
#1 <= x <= n
#minimize  int(x/b)
#x = int(a*x/b) - a * int(x/b)

print((a*n)//b)

Submission status: Runtime Error

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

x = N
for i in range(N):
  if x % B != 0:
    print(int(A*x/B)-A*int(x/B))
    exit()
  else:
    x -= 1

Submission status: Runtime Error

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

num = (a-1)
while num <= b:
    num += 1
        if num % k != 0:
            continue
        else:
            print('OK')
            break
    else:
        print('NG')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in range(b):
    if  a <= k*i <= 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+1):
    if i % K == 0:
        print( 'OK' )
        stop()
else:
    print( 'NG' )

Submission status: Runtime Error

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

x = N
for i in range(N):
  if x % B != 0:
    print(int(A*x/B)-A*int(x/B))
    exit()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A=input("A=")
B=input("B=")
K=input("K=")
A=int(A)
B=int(B)
K=int(K)
1<=A<=B<=1000
1<=K<=1000
N=int(N)
A<=N<=B
x in N
if x%K=0:
  print("OK")
else:
  print("NG")

Submission status: Runtime Error

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

if int(list[0])//k != int(list[1])//k:
  print("OK")
else if int(list[0])%k == 0:
  print("OK")
else:
  print("NG")

Submission status: Runtime Error

Solution code:
K = int(input())

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


while A <= B:
  
  A += 1
    if A % K == 0:
      print("OK")
      break
  
    else:
      continue
  
if A == B + 1:
    print("NG")

Submission status: Runtime Error

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

num = (a-1)
while num <= b:
  num += 1
  	if num % k != 0:
      continue
    else:
      print('OK')
      break
  else:
    print('NG')

Submission status: Runtime Error

Solution code:
import numpy as np

K = int(input())
A, B = list(map(int, input().split()))
AB_list = np.arange(A, B)

i = A
while i <= B:
    for i in AB_list:

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
A,B,N = map(int,input().split())
maxn = 0
sec =False
for x in range(1,N+1):
    tmp = math.floor((A*x)/B)-A*(math.floor(x/B))
    if maxn < tmp:
        maxn = tmp
    if tmp == 0:
        if sec ==True:
            break
        else:
            sec =True
    
print(maxn)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

while True:
  if (b - a) <= 0:
    break
  if k <= 0:
    break
  if a % k == 0:
    print('OK')
    exit()
  if (int(a / k) + 1) <= b:
    print('OK')
    exit()
  break

print('NG')
exit()

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

Submission status: Runtime Error

Solution code:

#提出時にコメントアウトを外す。
k = int(input())
#ab = [input().split() for l in range(2)]
for _ in range(2):
  ab = list(int(input().split()))



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


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

#aからbの連続数リストを作る。
ab_list = []
a = ab[0]
b = ab[1]
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: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,n=map(int,input().split())
a1=int(a*n/b)-a*int(n/b)
print(a1)

Submission status: Runtime Error

Solution code:

#提出時にコメントアウトを外す。
k = int(input())
#ab = [input().split() for l in range(2)]
for _ in range(2):
  ab = list(input().split())



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


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

#aからbの連続数リストを作る。
ab_list = []
a = ab[0]
b = ab[1]
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: Runtime Error

Solution code:
K=int(input())
A=int(input())
B=int(input())
for i in range(B):
	N=K*i
	if N>=A:
      if N<=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+i):
  if i % k == 0:
    print("OK")
    break
else:
  print("NG")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if K*i in range(A,B):
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

Solution code:
k,x,y = map(int,input().split())
if 1<=x<=y<=1000 and 1<=k<=1000:
    pass



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

Submission status: Runtime Error

Solution code:

#提出時にコメントアウトを外す。
k = int(input())
#ab = [input().split() for l in range(2)]
for _ in range(2):
  ab = list(map(int, input().split()))



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


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

#aからbの連続数リストを作る。
ab_list = []
a = ab[0]
b = ab[1]
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: Runtime Error

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

if N<= B-1:
    ans = (N*A)//B
else:
    ans = ((B-1)*A)//B
    
print(ans)

Submission status: Runtime Error

Solution code:
iimport sys
#sys.exit()
#sorted( ,reverse=True)
K = int(input())
A,B = map(int, input().split())
if A == B:
    if A%K == 0:
        print('OK')
        sys.exit()
if A <= 2*K <= B or B/K >= 2 and B/K - A/K >= 1:
    
#A = list(map(int, input().split()))

    print('OK')

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

Submission status: Runtime Error

Solution code:
K=int(input())
A=int(input())
B=int(input())
for i in range(B):
	N=K*i
	if N>=A && N<=B:
    	print("OK")
	else:
		print("NG")

Submission status: Runtime Error

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


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

C = 0

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

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

Submission status: Runtime Error

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

if i *= K in range(A,B):
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

Solution code:
a,b,N = map(int,input().split())
list =[]
for x in range(N-10000,N+10000):
    list.append(int(a*x/b)-a*int(x/b))
print(max(list))

Submission status: Runtime Error

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

if i *= K in range(A,B):
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, n = map(int, input().split())
ans = 0
for x in range(n+1):
 c = int(a*x/b)
 d = int(x/b)
 e = c - a*d
 ans = max(ans, e)
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
from math import floor
A, B , N = map(int, input().split())

Answer = floor((A*N)/B) - (A*floor(N/B))

print(Answer)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

s = input().split()
a = int(s[0])
b = int(s[1])
n = int(s[2])

l = list()

for x in range(n):
    ans = a*(x+1)//b - a*((x+1)//b)
    l.append(ans)


print(max(l))

Submission status: Runtime Error

Solution code:
N = int(input())
A=[int(x) for x in input().split()]
k=0
if N==1:
    print("OK")
else:
     if A[0]//int(N) == A[1]//int(N) and A[0]%int(N)==A[1]%int(N) and A[0]%int(N)==0 :
        print("OK")
    elif A[0]//int(N) != A[1]//int(N) and A[0]%int(N)!=0 :
        print("OK")
     else:
        print("NG")

Submission status: Runtime Error

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


ps = int(A / K)
pa = A % K
qs = int(B / K)
qa = B % K

if A==B:
	if p==0:
		print("OK")
	else:
		print("NG")
else:
	if qs-ps>0:
		print("OK")
	else:
		if pa+qa >K:
			print("OK")
		else:
			print("NG")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K=int(input())
A=int(input())
B=int(input())
if K>=A && K<=B:
    print("OK")
else:
	print("NG")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())
a, b = list(map(int, input().split()))
flg = False
for i in range(a, b+1):
  if i % k == 0:
    print("OK")
    flg = True
    break
print("NO") if not(flg)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if x%k>>0 :
    if x<= (x/k+1)*k <=y :
        print('OK')
    else:
        print('NO')
else:
    print('OK')

Submission status: Runtime Error

Solution code:
k = int(input())
a, b = list(map(int, input().split()))
flg = False
for i = range(a, b+1):
  if i % k == 0:
    print("OK")
    flg = True
    break
print("NO") if not(flg)

Submission status: Runtime Error

Solution code:
7
500 600
OK

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input()) 
a,b= map(int,input().split())
ans = "NG"
L = [i in i for range(1,1001) if i%k==0]
for j in range(a,b+1):
    if j in L:
        ans="OK"
print(ans)

Submission status: Runtime Error

Solution code:
4
5 7
NG

Submission status: Runtime Error

Solution code:
A,B,N = map(int,input().split())
tmp=0
for i in range(N//2,N+1):
    floor = (A*i)//B-A*(i//B)
    if floor>tmp:
        tmp = floor
print(tmp)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
1
11 11
OK

Submission status: Runtime Error

Solution code:
C = 0

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())
ab = [input().split() for l in range(2)]



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


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


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


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

Solution code:
NG

Submission status: Runtime Error

Solution code:
K=input()
A,B=input().split()
for  i in range(A,B-1)
    if i % K == 0:
        break
        print("OK")
    else:
        continue

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

Submission status: Runtime Error

Solution code:
K = int(input())
A,B = [int(i) for i in input().split()]
flag=0
for i in range(1,1001):
    if(iK>=A and iK<=B):
        print("OK")
        flag=1
        break
	if (flag==0):
    	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=int(input())
B=int(input())
D=A//K
E=B//K
if ((E-D)>0):
  print("OK")
else:
  print("NG")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())
a,b = list(map(int,input().slplit()))
ret = ""
q = a//k
if a <= q*k or (q+1)*k <= b:
    ret = "OK"
else:
    ret ="NG"
print(ret)

Submission status: Runtime Error

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

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

if x%k ==0:

    print('OK')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())
ab = [input().split() for l in range(2)]



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


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


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


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

Solution code:
import math
N = int(input())

y<math.log(1.01, N/100)
print(y)

Submission status: Runtime Error

Solution code:
def Sol(n,a,b):
    
    if n == 1:
        print("OK")
        return
    if n == 0:
    	print("NG")
        return
    m = a%n
    if b-m >= a:
        print("OK")
    else:
        print("NG")
    
    return

    
n = int(input())

#for t in range(int(input())):
a,b = map(int,input().split())
#    arr = []
#    for i in range(c):
#        arr.append(list(map(int,input().split())))
#arr = list(map(int,input().split()))
#k = input()
#n = int(input())
Sol(n,a,b)

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
    if i==B:
        print(NG)

Submission status: Runtime Error

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

if x%k>>0 :
    if x<= (x/k+1)*k <=y :
        print('OK')
    else:
        print('NO')

elif x%k ==0:

    print('OK')

Submission status: Runtime Error

Solution code:
K=int(input())

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

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

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 != 0 and B%K != 0 A(B-A)/K >= 1:
    print("OK")
else:
    print("NO")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if a%k == 0 or b%k == 0:
    print("OK")
elif a%k > b%k:
    print("OK")
elif a%k <= b%k:
    print("NG")

Submission status: Runtime Error

Solution code:
import sys
K = int(sys.stdin.readline())
A, B = map(int,sys.stdin.readline().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())
 
if A%K==0 or B%K==0 or B-A >= K　and A <= K <= B:
  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
    if i=B:
        print(NG)

Submission status: Runtime Error

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

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

print("NG")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
import random
import copy
import math
def main():
     A,B,N = map(int,input().split())
     x = min(B,N)-0.000000000000001
     ma = math.floor(A*x/B)-A*math.floor(x/B)
     print(ma)
                    
main()

Submission status: Runtime Error

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

if x%k>>0 :
    if x<= (x/k+1)*k <＝y :
        print('OK')
    else:
        print('NO')

if x%k ==0:

    print('OK')

Submission status: Runtime Error

Solution code:
k = int(input())
a = int(input())
b = int(input())
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=int(input())
B=int(input())
for i in range(A,B):
    if i%K==0:
        print(OK)
        break
    if i=B AND B%K!=0:
        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:
    flag = 1
    break
if flag == 0:
  print("NG")
else:
  print("OK")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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