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

count = 0
for i in range(1000):
    if((A < (K*i)) & ((K*i) < B)):
        count = 1


if(count == 0):
    print("NG")
if(count == 1):
    print("OK")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a < b // K * K:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

if K == 1:
    print("OK")
elif b - a >= K:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
get = int(input())
ints = list(map(int, input().split(' ')))
if ints[1]-ints[0]+1 >= get:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


while i < b:
    if k == 1:
        flag= True
        break
    dis = i * k
    if dis >= a and dis <= b:
        flag = True
        break

    i += 1


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

Submission status: Wrong Answer

Solution code:
k = int(input())
a, b = map(int, input().split())
i = 1
flag = False

while i < b:
    dis = i * k
    if dis >= a and dis <= b:
        flag = True
        break

    i += 1


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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
print("OK" if len([1] if A == B and not A % K else [q for q in range(A, B) if q % K == 0]) else "NG")

Submission status: Wrong Answer

Solution code:
def main():
    import sys
    input = sys.stdin.readline

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

    x = A//K

    y = B//K

    for i in range(A, B):
        if i % K == 0:
            print('OK')
            exit()
    if A == B and A % K == 0:
        print('OK')
        exit()
    print('NG')


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    import sys
    input = sys.stdin.readline

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

    x = A//K

    y = B//K

    for i in range(A, B):
        if i % K == 0:
            print('OK')
            exit()
    if A == B and A % K == 0:
        print('OK')
    print('NG')


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    import sys
    input = sys.stdin.readline

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

    x = A//K

    y = B//K

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    import sys
    input = sys.stdin.readline

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

    x = A//K
    y = B//K
    if x != y or A == B:
        print('OK')
    else:
        print('NG')


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

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

print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print('OK' if (b-(a-1))>=k else 'NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print('OK' if (b-a)>k else 'NG')

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

if (k_under // k + 1) * k > k_over:
    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
    else:
        count += 0
if count >= 1:
    print("OK")
elif count == 0:
    print("NO")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
K = 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())

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

largest = b //k * k
if largest >= a:
    print("OK")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
k = int(input())

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

while b >= a:
    if b % k == 0:
        print("OK")
        break
    b -= 1
    
if b < a:
    print("NO")

Submission status: Wrong Answer

Solution code:
k = int(input())

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

while b >= a:
    if b % k == 0:
        print("OK",b)
        break
    b -= 1
    
if b < a:
    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 | b == c):
		print('OK')
		break
	elif (i == c-1):
		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
	elif (i == c-1):
		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("OK")
    sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

result="NG"

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline


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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
x=int(input())
a=100
for i in range(1,10000000000):
  a=int(a*1.01)
  if a>=x:
    print(i)
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
L,R = map(int,input().split())
b=R-L
if b>a:
  print('OK')
else:
  if R%a<L%a:
    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("OK")
        sys.exit()
    if i%k != 0:
        print("NG")
        sys.exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


f="NG"
for i in range(int(A),int(B)):
    c=i%int(K)
    if c==0:
        f="OK"
print(f)

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int, input().split())
list = []
if 1 <= A <= B <= 1000:
    for i in range(A, B+1):
        for n in range(1, 1001):
            if K*n == i:
                list.append(i)
                if len(list) != 0:
                    print("OK")
                    break
            else:
                print("NG")
                break

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
ppp = "Hello WOoooooooo?"
print(ppp)

Submission status: Wrong Answer

Solution code:
S = input("")
if S == 'ABC':
    print('ARC')
else:
    print('ABC')

Submission status: Wrong Answer

Solution code:
from sys import stdin

K = int(stdin.readline().rstrip())
[A, B] = [int(x) for x in input().rstrip().split()]


flag=0
K_temp=K
while(True):
    if(K_temp>B):
        break
    if(K_temp>=A and K_temp<=B):
        flag=2
        break
    else:
        K_temp+=K

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
a, b = map(int, input().split())
c = b-a+1
if n <= c:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
a=int(input())
b,c=map(int,input().split())
largest=(b//a)*a
if a<=largest:
    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:
from math import sqrt,ceil,floor
def mi():return map(int,input().split())
def li():return list(mi())
def ii():return int(input())

k=ii()
a,b=mi()
a1=ceil(a/k)*a
if(a1<=b):
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

Solution code:
from math import ceil
from math import floor
k=int(input())
a,b=map(int,input().split())
l=ceil(a/k)
print(l)
r=floor(b/k)
print(r)
if l<=r:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

for i in range(y-x):
        if (x+i)%k==0:
                print("OK")
                exit()
        
print("NG")

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
num=0
res=a//k
rem=a%k
 
if rem!=0:
  num=res+rem+a
 
if num>a and num<b:
    print('OK')
elif(rem==0):
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

x = b // k - a // k

print('OK' if x >= 1 else 'NG')

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

x = b // k - a // k

print('OK' if x >= 0 else 'NG')

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
a=int(input())
b,c=map(int,input().split())
num=0
res=b//a
rem=b%a

if rem!=0:
  num=res+rem+b

if num>b and num<c:
    print('OK')
elif(rem==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:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
a=int(input())
b,c=map(int,input().split())
num=0
res=b//a
rem=b%a
if rem!=0:
  num=res+rem
if num>b and num<c:
    print('OK')
elif((b+a)> b and (b+a)<c):
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
a=int(input())
b,c=map(int,input().split())
num=0
res=b//a
rem=b%a
if rem!=0:
  num=res+rem
  if num>b and num<c:
    print('OK')
elif((b+a)> b and (b+a)<c):
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

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

while True:
    if a%k == 0 or b%k == 0:
        print("OK")
        break
    elif b-a >= k:
        print("OK")
        break
    else:
        print("NG")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
k = int(input())
# スペース区切りの整数の入力
a, b = map(int, input().split())

d = a % k
e = a - d

if (a + e) <= b:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
k = int(input())
# スペース区切りの整数の入力
a, b = map(int, input().split())



d = a % k
e = a - d

if k <= (a + e):
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
g= int(input())
p,q = map(int,input().split())

if(p+g>=q):
    print("OK")
else:
    winFlag = False

    for i in range(p,q+1):
        if(i%g==0):
            winFlag= True
            break
    if(winFlag):
        print("OK")
    else:
        print("NG")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
k = int(input())
# スペース区切りの整数の入力
a, b = map(int, input().split())


c = b - a
d = a % k

if k <= (c + d):
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())

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

for x in range(a, b+1):
  if x // k == 0:
    print("OK")
    y = 1

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

Submission status: Wrong Answer

Solution code:
k = int(input())

a, b = map(int, input().split())
y = []

for x in range(a, b+1):
  if x // k != 0:
    continue
  else:
    print("OK")
    y.append("OK")

if y == []:
  print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k=int(input())
suzi_list=input().split()
a=int(suzi_list[0])
b=int(suzi_list[1])
c=int((b//k)*k)
print(c)
if a<=c:
  print('ok')
else:
  print('ng')

Submission status: Wrong Answer

Solution code:
k=int(input())
suzi_list=input().split()
a=int(suzi_list[0])
b=int(suzi_list[1])
c=(b/k)*k
if a<=c:
  print('ok')
else:
  print('ng')

Submission status: Wrong Answer

Solution code:
import sys
input=sys.stdin.readline

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

Submission status: Wrong Answer

Solution code:
k=int(input())
suzi_list=input().split()
a=int(suzi_list[0])
b=int(suzi_list[1])
c=0
if (b-a)>k+1:
  c=1
elif (a%k)-(b%k)>=0:
    c=1
else:
  c=0
if c==1:
  print('ok\n')
else:
  print('ng\n')

Submission status: Wrong Answer

Solution code:
k=int(input())
suzi_list=input().split()
a=int(suzi_list[0])
b=int(suzi_list[1])
c=0
if (b-a)>k+1:
  c=1
elif (a%k)-(b%k)>=0:
    c=1
else:
  c=0
if c==1:
  print('ok')
else:
  print('ng')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x = int(input())
money = 100
year = 0

while money < x:
  money += (money // 100)
  year += 1
  
print(year)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a % k == 0:
    flag = 1

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

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

Submission status: Wrong Answer

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

if a <= num:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
import math
def I():return int(sys.stdin.readline().replace("\n",""))
def I2():return map(int,sys.stdin.readline().replace("\n","").split())
def S():return str(sys.stdin.readline().replace("\n",""))
def L():return list(sys.stdin.readline().replace("\n",""))
def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split()))
def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split()))

def main():
    k = I()
    a,b = I2()
    for j in range(1,1001):
        if j*k <= b and j*k >= a:
            print(j*k)
            print("OK")
            exit()
    print("NG") 

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

a = int(A/K)
if A <= a*K <= B:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
import sys
import math
def i():return int(sys.stdin.readline().replace("\n",""))
def i2():return map(int,sys.stdin.readline().replace("\n","").split())
def s():return str(sys.stdin.readline().replace("\n",""))
def l():return list(sys.stdin.readline().replace("\n",""))
def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split()))
def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split()))

def main():
    k = i()
    a,b = i2()
    print("OK" if a <= k and b >= k else "NG")
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)

def LI(): return list(map(int, stdin.readline().split()))
def LS(): return list(stdin.readline())

k = int(input())
a,b = LI()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import setrecursionlimit, exit
setrecursionlimit(1000000000)

def main():
    k = int(input())
    a, b = map(int, input().split())
    if a + a % k <= b:
        print('OK')
    else:
        print('NG')

main()

Submission status: Wrong Answer

Solution code:
from sys import setrecursionlimit, exit
setrecursionlimit(1000000000)

def main():
    k = int(input())
    a, b = map(int, input().split())
    if b - a + 1 >= k:
        print('OK')
    else:
        print('NG')

main()

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
print('ONKG'[a//k==b//k and a%k::2])

Submission status: Wrong Answer

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

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

else:
    print("OK")

Submission status: Wrong Answer

Solution code:
import math

# X
X = int(input())

A = 100
i = 0

while True:
    if X <= A :
        print(i)
        break
    else:
        i += 1
        A = math.floor(A*1.1)

Submission status: Wrong Answer

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


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

    print("OK" if B // K * K else "NG")


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
x = int(input())
base = 100
year = 0
while x > base:
    year +=  1
    base = int(base * 1.01)
print(year)

Submission status: Wrong Answer

Solution code:
k=input()
a,b=input().split()
c=int(a)
d=int(b)
l=int(k)
e=d-d%l
if e>=c:
  print('ok')
else:
  print('ng')

Submission status: Wrong Answer

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

m=A//K*K

if m<A:
  m+=K
if m>=A and m<=B:
  print("OK")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A,B = map(int,input().split())
C = "NG"
if K == 1:
    C = "OK"
else:
    if A//K != B//K:
        C = "OK"

print(C)

Submission status: Wrong Answer

Solution code:
from collections import defaultdict

import sys
sys.setrecursionlimit(10**6)
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())
INF = float('inf')

def main():
    k=ii()
    a,b=mis()
    x=b//k-a//k
    print('OK' if x>0 else 'NG')

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

if k == 1:
    print('Yes')
else:
    print('Yes' if (b-a)//k >= 1 else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (B // K) * B >= A:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

if k == 1:
    print('OK')
else:
    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())
chk = False
for i in range(a+1, b+1):
    if i%k == 0:
        chk = True
        break
    else:
        pass
if chk == True:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
k=int(input())
a,b=map(int,input().split())
c,d=a//k,b//k
if c<d:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
def solve(k, a, b):
    return "NG" if (a // k == b // k) else "OK"

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

Submission status: Wrong Answer

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

print('OK' if b//k >= a//k else 'NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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