Problem:


Score: 100 points

Problem Statement

Takahashi the Jumbo will practice golf.

His objective is to get a carry distance that is a multiple of K, while he can only make a carry distance of between A and B (inclusive).

If he can achieve the objective, print OK; if he cannot, print NG.

Constraints

All values in input are integers.

1 \leq A \leq B \leq 1000

1 \leq K \leq 1000

Input

Input is given from Standard Input in the following format:

K
A B

Output

If he can achieve the objective, print OK; if he cannot, print NG.

Sample Input 1

7
500 600

Sample Output 1

OK

Among the multiples of 7, for example, 567 lies between 500 and 600.

Sample Input 2

4
5 7

Sample Output 2

NG

No multiple of 4 lies between 5 and 7.

Sample Input 3

1
11 11

Sample Output 3

OK



Sample input:
7
500 600


Sample output:
OK

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

n_1 = int(A / n)
n_2 = int(B / n)
if n == 1: print('OK')
else:
    if n_2 != n_1: print('OK')
    else: print('NG')

Submission status: Wrong Answer

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

if A+K<=B or A % K == 0 or B % K == 0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
import sys
import os

def file_input():
    f = open('../Beginner_Contest_165/input.txt', 'r')
    sys.stdin = f

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

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

    if b == a and a % k == 0:
        print("OK")
        exit()

    if b - a < k:
        print("NG")
        exit()

    print("OK")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

c = A/K
if B%K != 0:
    d = B/K -1
else:
    d = B/K

if c <= d:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if B - A + 1 >= K:
    print("OK")
else:
    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:
import sys

input = sys.stdin.readline

N = int(input())
A,B = map(int,input().split())
red = B -A + 1
if N <= red:
    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):
  if num == K:
    print('OK')
    break
else:
  print('NO')

Submission status: Wrong Answer

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

a = A % K
b = B % K

if b <= a or B-A >= K:
  print('OK')
  
else:
  print('NG')

Submission status: Wrong Answer

Solution code:
import sys
n= int(input())

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

for i in range(a+1, b+1):
    if i % n == 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 A%K == 0 or B%K == 0 or B - A >= K else 'NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = 'NO'

if a % k == 0 or b % k == 0:
  ans = 'OK'
if a // k != b // k:
  ans = 'OK'

print(ans)

Submission status: Wrong Answer

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

result = "NG"
c = B//K
for i in range(c):
  if i*K > A:
    if i*K < B:
      result = "OK"
      break
print(result)

Submission status: Wrong Answer

Solution code:
import math

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

x = A / K
x = math.ceil(x * K)
if A <= x and x <= B:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
K=int(input())
A,B=list(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 >= 1 and b // k >= 1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:
k = int(input())

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
import math
import fractions

k = int(stdin.readline().rstrip())
a, b = [int(x) for x in stdin.readline().rstrip().split()]

result = 0
flag = False
for i in range(10000):
    result += k
    if (a <= result and b >= result):
        print('Yes')
        flag = True
        break

if (flag == False):
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

check =0
c=a
for i in range(1001):
    if a>=b[0] and a<b[1]:
        check = 1
        print('OK')
        break
    a=a+c
if check==0:
    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")
        ans = 1
        break

if ans == 0:
    print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a % k >= b % k:
  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())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections

mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000

d = collections.deque()
def LI(): return list(map(int, sys.stdin.readline().split()))

K = int(input())
A, B = LI()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#a
M = int(input())
N,K=map(int,input().split())
if K-N>=M:
    print('OK')
elif M==1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

Solution code:

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

    if B-A+1 >= K:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
I =int(input())

A,B=list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる

if B-A>=4:
    print("OK")

else:
    print("NG")

Submission status: Wrong Answer

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

val = A//N
if (val+1)*N <= B:
    print('OK')
elif A == B:
    print('OK')
else:
    print('NO')

Submission status: Wrong Answer

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

k = math.ceil(a//k)*k
print("OK" if a<=k and k<=b else "NG")

Submission status: Wrong Answer

Solution code:
goal=int(input())
list=input().split(" ")
max=int(list[1])
min=int(list[0])
if(max-min>=goal):
    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//k == a//k:
    print('NG')
else:
    print('OK')

Submission status: Wrong Answer

Solution code:
k = int(input())
N, M = map(int, input().split())

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

a=a//k
b=b//k

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

Submission status: Wrong Answer

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

    print('OK')
elif A/K >= 2:
    print('OK')
    
else:
    
    print('NG')
#print(A)
#print('Yes')
#print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
# 整数の入力
    k = int(input())
    # スペース区切りの整数の入力
    n = [int(x) for x in input().split(' ')]
    a = n[0]
    b = n[1]
    flag = False

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
import math
from  collections import defaultdict

# sys.stdin = open('input.txt', 'r')
# sys.stdout = open('output.txt', 'w')


def solve(test):
	k = int(input())
	a, b = map(int, input().split())
	if b // k == a // k:
		if a // k == a or a // k == b:
			print('OK')
		else:
			print('NG')
	else:
		print('OK')





if __name__ == "__main__":
	test_cases = 1
	for t in range(1, test_cases + 1):
		solve(t)

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//k - a//k >1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

for i in range(a,b):
    if i % 7 == 0:
        print("OK")
        exit()
print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

if ret==0:
    print('NG')
else:
    print('OK')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A/K < B/K:
  print("OK")
elif A/K == B/K and A%K <= A%K:
  print("OK")
else:
  print("NG")

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:
        print("OK")
        flag = True
        break

if flag == False:
    print("NG")

Submission status: Wrong Answer

Solution code:
#---We Love Golf

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

judge_a = int(a/K)
judge_b = int(b/K)

if(K == 1):
  print("OK")
  exit()
  

if(judge_b == judge_a):
  print("NG")
else:
  print("OK")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
k=int(input())
ab=list(map(int, input().split()))
a=ab[0]
b=ab[1]
ak=(a+1)//k
bk=b//k
if a%k==0:
    print('OK')
elif ak!=bk:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print('OK' if A%K == 0 or B%K == 0 or B - A >= K else 'NO')

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 (a//k+1)*k <= b or (a//k)*k <= b:
  print('OK')
else:
  print('NG')

Submission status: Wrong Answer

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

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

if a == b:
    if a % k == 0:
        print("OK")
        exit()
    else:
        print("NG")
        exit()

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
  K = int(input())
  AB = input().split()
  A, B = int(AB[0]), int(AB[1])
  
  if (B - A) >= K:
    print("OK")
  else:
    print("NG")

Submission status: Wrong Answer

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

if C<K:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

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

     ans = k
     while(True):
          # print(ans)
          if ans >= a and ans <= b:
               print('Yes')
               break
          elif ans > b:
               print('No')
               break
          else:
               ans = ans + k

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
N, M = map(int, input().split())

if K == 1:
    print("OK")
    exit()

for i in range(N, M + 1):
    if i & K == 0:
        print("OK")
        exit()


print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = [int(n) for n in input().split()]
ans = 'NO'
for i in range(A, B+1):
    if i%K == 0:
        ans = 'OK'
        break
print(ans)

Submission status: Wrong Answer

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

if k != 1 and 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 or A % K == 0:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
import os

def file_input():
    f = open('../Beginner_Contest_165/input.txt', 'r')
    sys.stdin = f

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

print('NG')
exit()

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline

N = int(input())
A,B = map(int,input().split())
red = B -A + 1
if N <= red:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:

N = int(input())
A = list(map(int, input().split())) 
sum = 0
for i in range(A[0],A[1]):
    if i % N ==0:
        sum +=1
        
if sum == 0:
    print("NG")
else:
    print("OK")

Submission status: Wrong Answer

Solution code:
import sys

def main():
    input = sys.stdin.readline
    K = int(input())
    A, B = map(int, input().split())
    if K == 1:
        return 'OK'
    elif B - A >= K:
        return 'OK'
    else:
        return 'NG'

if __name__ == '__main__':
    print(main())

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
@author: H_Hoshigi
"""
def main():
    K = int(input())
    A, B = map(int, input().split())
    answer = ""
    if B - A >= K - 1:
        answer = "OK"
    else:
        answer = "NG"
    print(answer)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

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

if f:
    print("Yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
# ABC165a


def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    # 再帰関数を使わない限りPypyで出すこと

    def dump(*args):
        sys.stderr.write(str(args))

    k = int(input())
    a, b = map(int, input().split())
    if k == 1:
        print('OK')
        exit(0)
    if b - a >= k:
        print('OK')
        exit(0)
    print('NG')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


if B - A + 1 >= K:
    print("OK")
    exit(0)

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

print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k=int(input())

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

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

Submission status: Wrong Answer

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

c = a // k
c += 0 if c*k == a else k
d = c * k
if d >= a and d <= b:
	print('OK')
else:
	print('NG')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
A, B = map(int,input().split())
n_A = A//K
n_B = B//K
if n_B - n_A >= 1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# n,m = map(int,sys.stdin.readline().split())
# a = list(map(int,sys.stdin.readline().split()))
# a = [sys.stdin.readline() for _ in range(n)]
# s = sys.stdin.readline().rstrip()
# n = int(sys.stdin.readline())
import sys,bisect,math
sys.setrecursionlimit(15000)

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

if A//K == B//K and not B%K==0:
    print("NG")
    exit()
print("OK")

Submission status: Wrong Answer

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

if abs(a-b)+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 > 1 and b // k > 1:
    print('OK')
else:
    print('NG')

Submission status: Wrong Answer

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

a1=a//k
b1=b//k

if a1>=1 and b1>=2:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
K = int(input())
A, B = map(int, input().split())

print("OK" if A // K != B // K or K == 1 else "NG")

Submission status: Wrong Answer

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

if a==1:
    print("OK")
else:
    if x==y:
        print("NG")
    else:
        print("OK")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a = A//K
b = B//K

flag = 0

for i in range(a,b+1):
    N = K*i
    if A<= N <= B:
        flag = 1
        print("OK")
        break

if flag == 0:
    print("NO")

Submission status: Wrong Answer

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

min_k=a//k
max_k=b//k

if (min_k<max_k)|(k==1):
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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


def solve(K: int, A: int, B: int):

    if K == 1:
        print("OK")
        exit()
    
    a = A // K

    if (a + 1) * K <= B:
        print("OK")
    else:
        print("NG")

    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    K = int(next(tokens))  # type: int
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(K, A, B)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
p=int(input())
n, k = map(int, input().split())
k1=n//p
k2=k//p
if n==k:
  if k1==k2:
    print("OK")
else:
  if k1<k2:
    print("OK")
  else:
    print("NG")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    K = int(input())
    A, B = list(map(int, input().split()))
    if K == 1 or 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<=B-A+1:
    print("OK")
else:
    print("NG")

Submission status: Wrong Answer

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

#print(k,a,b)

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

if flug==0:
    print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
k=int(input())
l=list(map(int,input().split()))
x=l[0]//k
if(x*k==l[0] or x*(k+1)<=l[1]):
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
from pprint import pprint

K = int(sys.stdin.readline().strip())
A, B = map(int, sys.stdin.readline().strip().split())
if K == 1:
    print("OK")
else:
    if B - A >= K:
        print("OK")
    else:
        print("NG")

Submission status: Wrong Answer

Solution code:
s = input().split()
k=int(s[0])
s = input().split()
a=int(s[0])
b=int(s[1])
if k>1:
    if (b-a+1)/7>1:
        print('OK')
    else:
        print('NG')
else:
    print('OK')

Submission status: Wrong Answer

Solution code:
n = int(input())
m = input().split()
a = int(m[0])
b = int(m[1])

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