TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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`.

Submission attempts (in order):
K = int(input())
A = int(input())
B = int(input())
""" K=4
A=5
B=7 """
q=0


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

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




K = int(input())
A = int(input())
B = int(input())
""" K=4
A=5
B=7 """


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

num=A
while num <= B:

    if num%K == 0:
        print("OK") 
        exit()
    if num==B:
        print("NG")
        exit()
    num += 1


K = int(input())
A = int(input())
B = int(input())
""" K=1
A=11
B=11  """


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

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



K = int(input())
A = int(input())
B = int(input())
""" K=4
A=5
B=7 """


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

num=A
while num <= B:
    num += 1
    if num%K == 0:
        print("OK") 
        exit()
    if num==B:
        print("NG")
        exit()



K = int(input())
A = int(input())
B = int(input())
""" K=4
A=5
B=7 """
q=0


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

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




K = int(input())
A = int(input())
B = int(input())
""" K=4
A=5
B=7 """
q=0


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

if q == 1:
    print("NG")




K = int(input())
A = int(input())
B = int(input())
""" K=7
A=500
B=600 """


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

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



K = int(input())
A = int(input())
B = int(input())
""" K=7
A=500
B=600 """



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



K = int(input())
A = int(input())
B = int(input())
""" K=4
A=5
B=7 """
q=0


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

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




k=int(input())
a,b= map(int, input().split())
q=0
 
for i in range(1,1000):
  if a<=k*i and k*i<=b:
    print('OK')
    q=1
    break
 
if q==0:
  print('NG')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a, b = (int(i) for i in input().split())

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

print('NG')

def main():
    k = int(input())
    a, b = (int(i) for i in input().split())

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

    print('NG')


main()


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K = int(input())
A, B = map(int, input().split())
a = 0
K_sum = K
while K <= B:
    if A<=K and K<=B:
        a = 1
        break
    K_sum += K

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

K = int(input())
A, B = map(int, input().split())
mod = A % K
dif = B - A
if mod + dif >= K or mod==0:
    print("OK")
else:
    print("NG")


Verdicts: Time Limit Exceeded

Accepted
Problem: 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`.

Submission attempts (in order):
import sys

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

if k==1:
    print('OK')
    sys.exit()
wk = b-a
if (wk//k)>= 1:
    print('Ok')
else:
    print('NG')

import sys

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

wk = a
while wk <=b:
    if wk%k==0:
        print('Ok')      
        sys.exit()   
    else:
        wk+=1
print('NG')

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

wk = (b//k)
if wk*k >=a:
    print('Ok')  
else:
    print('NG')

import sys

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

if k==1:
    print('Ok')      
    sys.exit() 

wk = (a//k)+1
while wk*k <=b:
    if wk*k<=b:
        print('Ok')      
        sys.exit()   
    else:
        wk+=1
print('NG')

import sys

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

if k==1:
    print('Ok')      
    sys.exit() 

wk = (a//k)+1
while wk <=b:
    if wk*k<=b:
        print('Ok')      
        sys.exit()   
    else:
        wk+=1
print('NG')

import sys

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

#if k==1:
 #   print('Ok')      
#    sys.exit() 

wk = (a//k)
while wk*k <=b:
    print('Ok')  
    sys.exit()    
    wk+=1

print('NG')

import sys

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

i =1
wk =a
if k==1:
    print('OK')
    sys.exit()
while wk <=a:
    wk =i*k
    i+=1
if wk <b:
    print('Ok')
else:
    print('NG')

import sys

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

#if k==1:
 #   print('Ok')      
#    sys.exit() 

wk = (a//k)
while wk*k <=b:
    print('Ok')  
    sys.exit()    
    wk+=1

print('NG')


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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

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

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


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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
num = list(map(int, input().split()))
check = False
for i in num:
  if (i % k == 0):
    check = True
    break
print("OK" if check else "NG")

k = int(input())
num = list(map(int, input().split()))
checker = False
for i in num:
  if i%k == 0:
    checker = True
    break
print("OK" if checker else "NG")

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

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

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


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

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

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

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

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

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

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


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

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

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

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

for i in range(1001):
  if A<=i*K and i*K<=B:
    ans="OK"
    break

print(ans)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K = int(input())
A, B = map(int, input().split())

flg = False
for i in range(A, B):
	print(i)
	if i % K == 0:
		flg = True
		break

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

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

flg = False
for i in range(A, B):
	if i % K == 0:
		flg = True
		break

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K = int(input())
A,B = map(int,input().split())
for i in range(A,B+1):
    if i%K==0:
        print("Yes")
        break
else:
    print("No")

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K = int(input())
A, B = map(int, input().split())

input_list = list(range(A, B + 1))

flag = False

for i in input_list:
    if i % K == 0:
        flag = True
        break

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

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

input_list = list(range(A, B + 1))

flag = False

for i in input_list:
    if i % K == 0:
        flag = True

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K = int(input())
A, B = map(int, input().split())

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


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

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


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

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

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


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

k = int(input())
a, b = int(input())
if k<=(B-A+1):
  print("OK")
  else:
    print("NG")
  


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

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


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k=int(input())
a,b=list(map(int,input().split()))

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

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

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

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a,b = map(int,input().split())

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

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


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



Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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')




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





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

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

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

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

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

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


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

k= int(input())
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')

else:
    print('NG')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K = int(input())
A, B = map(int, input().split())
large = (B // K) * K
print(large)
if A <= large:
    print("OK")
else:
    print("NG")


K = int(input())
A, B = map(int, input().split())
large = (B / K) * K
if A >= large:
    print("OK")
else:
    print("NO")


K = int(input())
A, B = map(int, input().slice())
print("OK" if B - A >= K else "NG")


K = int(input())
A, B = map(int, input().split())
large = (B // K) * K
if A <= large:
    print("OK")
else:
    print("NG")


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
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")

n=int(input())
a,b=map(int,input().split())
i=a
while i<=b:
  if i%n==0:
    print("OK")
    break
  i+=1
else:
  print("NG")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

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


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


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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
nt(input())
A , B = map(int,input().split())

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

else:
    for i in range(B-A):
        i += A
        if i % K == 0:
            print('OK')
            break

    else:
        print('NG')


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

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

    elif B % K == 0:
        print('OK')

    else:
        print('NG')

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

    else:
        print('NG')


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(inut())
a, b = map(int, input().split())

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

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a,b = map(int, input().split())
for i in range(a, b+1):
  if i % k == 0:
    print('Yes')
  	exit()
print('No')

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
入力
入力は以下の形式で標準入力から与えられる。
K
AB
出力
目標の達成が可能であれば OK と、不可能であれば NG と出力せよ。
k= int(input())
s= input().rsprit().split()
a = int(s[0])
b = int(s[1])
f = "NG"
for i in range(a,b):
	if i%k == 0:
  		f = "OK"
print(f)

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a, b = map(int, input())
if k == 1 or (a // k == a / k):
  print('OK')
else:
  n = a // k
  m = b // k
  if m - n >= 1:
    print('OK')
  else:
    print('NG')

k = int(input())
a, b = map(int, input().split())
if k == 1 or (a // k == a / k):
  print('OK')
else:
  n = a // k
  m = b // k
  if m - n >= 1:
    print('OK')
  else:
    print('NG')

Verdicts: Runtime Error

Accepted
Problem: 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`.

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

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

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k=int(input())
a,b=map(int,input().split())
a=a%k
b=b%k
if b>a:print("NG")
else:print("OK")

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K = int(input())
A,B = map(int,input().split())
f = "NG"

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

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

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

print(f)

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a,b = map(int,input().split())
m = k
while True:
  if a < k < b:
    print("OK")
    break
  m += k
  if m <= 1000:
    print("NG")
    break

k = int(input())
a,b = map(int,input().split())
m = k
while True:
  if a <= m <= b:
    print("OK")
    break
  m += k
  if m >= 1000:
    print("NG")
    break

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K = int(input())
score = input().split()
if int(score[0] < K):
	if int(int(score[0])/K) < int(int(score[1])/K):
		print('OK')
	else:
		if int(score[0]) % K == int(score[1]) % K:
			print('OK')
		else:
			print('NG')

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

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

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

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k= int(input())
cont=0
a, b= input().split()
a= int(a)
b= int(b)
while 1:
    cont+= k
    if a<= cont <= b:
        print("OK")
        break
    if x > b:
        print("NG")
        break

k= int(input())
a, b= input().split()
a= int(a)
b= int(b)
cont=0
while 1:
    cont+= k
    if a<= cont <= b:
        print("OK")
        break
    if cont > b:
        print("NG")
        break

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a,b,n = map(int, input().split())
def f(x):
    return int(a*x/b) - a*int(x/b)
Max = f(min(b-1,n))
print(Max)

K = int(input())
a, b = map(int, input().split())
for i in range(1,1000):
    c = K*i
    if a <= c <= b:
        print("OK")
        test = 1
        break
    else:
        test = 0
        continue
if test == 0:
    print("NG")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a, b = map(int, input().split())

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


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

if a <= (b / k) * k: print('OK')

print('NG') 

k = int(input())
a, b = map(int, input().split())
i = a / k
ans = 'NG'

while k * i <= b:
    if a <= k * i <= b: ans = 'OK'

print(ans)


k = int(input())
a, b = map(int, input().split())
i = 1
ans = 'NG'

while k * i <= b:
    if a <= k * i <= b: ans = 'OK'

print(ans)

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

if a % k == 0: print('OK')
elif (a / k + 1) <= b: print('OK')
print('NG')

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

if a <= int(b / k) * k: print('OK')
else: print('NG') 


Verdicts: Wrong Answer

Wrong Answer

Time Limit Exceeded

Time Limit Exceeded

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
kk = K
while True:
    if kk >= A and kk <= 600:
        ans = 'OK'
        break
    elif  kk > 600:
        ans = 'NG'
        break
    else:
        kk = kk+K
print(ans)

K = int(input())
A , B = (map(int , input().split()))
kk = K
while True:
    if kk >= A and kk <= B:
        ans = 'OK'
        break
    elif  kk > B:
        ans = 'NG'
        break
    else:
        kk = kk+K
print(ans)

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k=int(input())
a,b=map(int,input().split())
for i in range(a,b+1):
  if i % k == 0:
    print('Yes')
    exit()
print('No')

k=int(input())
a,b=map(int,input().split())
for i in range(a,b+1):
  if i % k == 0:
    print('Yes')
    exit()
print('No')

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K = input()
NUM = list(map(int,input().split()))
count = 0
for num in range(NUM[1]-NUM[0]+1):
  if (NUM[1]+num % 7 == 0):
    print("OK")
    count = 1
    break

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

K = input()
NUM = list(map(int,input().split()))
count = 0
for num in range(NUM[1]-NUM[0]+1):
  if ((NUM[0]+num )% int(K) == 0):
    print("OK")
    count += 1
    break

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a, b = map(int, input())

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

k = int(input())
a, b = map(int, input().split())
 
ans = 'NG'
aa =  (a-1) // k
bb =  b // k
if(bb - aa) > 0:
    print('OK')
else:
    print('NG')

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K=int(input())
A,B=map(int,input().split())
a=0
for i in range(A,B+1):
  if i%k==0:
    a=1
if a==1:
  print("OK")
else:
  print("NG")
    


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

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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a, b = map(int, input().split())

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

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
def f(vs,i):
	# print(vs)
	for j in range(len(vs)):
		if vs[j]+i in vs:
			a = vs[j]
			b = vs[j]+i
			print(a,b)
			vs.remove(a)
			vs.remove(b)
			return

n,m = map(int,input().split())
vs = list(range(1,n+1))

for i in range(1,m+1):
	f(vs,i)

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

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

print(ans)

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
import itertools

x = list(map(int, input().split()))
y = []

for i in range(x[2]):
    y.append(list(map(int, input().split())))

for i in range(len(y)):
    y[i][0] -= 1
    y[i][1] -= 1

def get_score(arr: list):
    score = 0
    for yy in y:
        if arr[yy[1]] - arr[yy[0]] == yy[2]:
            score += yy[3]
    return score

scores = []
for t in itertools.combinations_with_replacement(range(1, 11), x[0]):
    isError = False
    for i in range(x[0] -1):
        if t[i] > t[i+1]:
            isError = True
    if isError == True:
        continue
    scores.append(get_score(t))

print(max(scores))

a = int(input())
args = list(map(int, input().split()))

# main
result = "NG"
for i in range(args[0], args[1] + 1):
    if i % a == 0:
        result = "OK"

# /main

print(result)

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a, b = map(int, input().split());

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

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

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

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

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

else:
    print("OK");

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

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = input()
[start,end] = input().split(' ')

for i in range(start,end+1):
  if i % k == 0:
    return True
return False

input = map(int, [input()] + input().split(' '))
[k,start,end] = input

for i in range(start, end + 1):
  if i % k == 0:
    return True
return False



k = int(input())
[start end] = input().split(' ')
start = int(start)
end = int(end)

for i in range(start, end):
  if i % k == 0:
    return True
return False

k = int(input())
(start, end) = map(int, input().split())


for i in range(start, end+1):
  if i % k == 0:
    print('OK')
    exit(0)
print('NG')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
def main():
    k = int(input())
    a, b = eval(input().replace(' ', ','))
    print(k, a, b)
    for i in range(a, b + 1):
        if i % k == 0:
            print("OK")
            break
    else:
        print("NG")


if __name__ == '__main__':
    main()


def main():
    k = int(input())
    a, b = eval(input().replace(' ', ','))
    for i in range(a, b + 1):
        if i % k == 0:
            print("OK")
            break
    else:
        print("NG")


if __name__ == '__main__':
    main()


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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")

mport 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("NG")

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k=int(input())
a,b=map(int,input().split())

for i in range (a,b+1):
    if k%i==0:
        print('ok')
        exit()
print('ng')



k,a,b=map(int,input().split())
for i in range (a,b):
    if k//i==0:
        print('ok')
        break
    else:
        print('ng')
        break

K = int(input())
a,b = map(int, input().split())
for n in range(a, b + 1):
  if n % K == 0:
    print('OK')
    exit()
print('NG')

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k=int(input())
a,b=int(input())
if b//k-(a-1)//k>=1:
  print('OK')
else:
  print('NG')

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
import sys
input = sys.stdin.readline
def main():
    K = int(input())
    A, B = map(int, input().split())
    OK = False
    for i in range(A,B+1):
        if i%K == 0:
            print("OK")
            OK = True
    if OK == False:
        print("NG")

if __name__ == '__main__':
    main()

import sys
input = sys.stdin.readline
def main():
    K = int(input())
    A, B = map(int, input().split())
    OK = False
    for i in range(A,B+1):
        if i%K == 0:
            print("OK")
            OK = True
            break
    if OK == False:
        print("NG")

if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a, b = map(int, input().split())
bl = False
for i in range(a, b+1):
    if i % k == 0:
        bl = True
        break
if bl:
    print("ok")
else:
    print("no")
    

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


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
A,B,N = map(int,input().split())
ans = []
if N < 15:
    for x in range(N+1):
        tmp = (A * x // B) - A * (x//B)
        ans.append(tmp)
        #print(tmp)
else:
    for x in range(N-1000,N+1):
        tmp = (A * x // B) - A * (x//B)
        ans.append(tmp)
        #print(tmp)
print(max(ans))

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
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")
    

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
input1 = input()
Kbai= int(input1)
 
input2=input().split(" ")
maxs= int(input2[0])
mins= int(input2[1])
flg=0
ans=0
 
while ans < maxs:
  ans=ans+kbai
  if ans >= mins and ans <= maxs:
    flg=1
 
if flg ==1:
  print("OK")
else:
  print("NG")

input1 = input()
Kbai= int(input1)

input2=input().split(" ")
maxs= int(input2[0])
mins= int(input2[2])
flg=0
ans=0

while ans < maxs:
  ans=ans+kbai
  if ans >= mins and ans <= maxs:
    flg=1
 
if flg ==1:
  print("OK")
else:
  print("NG")


#
#at coder beginner contest165 a we love golf
#
import math

input1 = input()
kbai= int(input1)
 
input2=input().split(" ")
mins= int(input2[0])
maxs= int(input2[1])
flg=0
ans=0
tmp=0

tmp=math.floor(mins/kbai)
ans=tmp*kbai
#print(tmp)

while ans <= maxs:
  if ans >= mins and ans <= maxs:
    flg=1
  ans=ans+kbai

if flg ==1:
  print("OK")
  #print(ans,maxs,mins,flg)
else:
  print("NG")
  #print(ans,maxs,mins,flg)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
def main():
    K = int(input())
    A, B = map(int, input().split())
    x = list(range(K, 1001, K))
    print(x)
    print('OK') if any([A <= i <= B for i in x]) else print('NG')

    return


if __name__=="__main__":
    main()


def main():
    K = int(input())
    A, B = map(int, input().split())
    x = list(range(K, 1001, K))
    print(x)
    print('OK') if any([A <= i <= B for i in x]) else print('NG')

    return


if __name__=="__main__":
    main()


 main():
    K = int(input())
    A, B = map(int, input().split())
    x = list(range(K, 1001, K))
    print('OK') if any([A <= i <= B for i in x]) else print('NG')

    return


if __name__=="__main__":
    main()


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

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


if __name__=="__main__":
    main()


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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`.

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K = int(input())
A, B = list(map(int, input().split()))

k = K
while k <= B:
   if k >= A:
       print('Yes')
       exit()
   k += K
print('No')

K = int(input())
A, B = list(map(int,input().split()))
ans = 'NG'
for i in range(1,1000):
    if i*K >= A and i*K <= B:
        ans = 'OK'
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a,b = map(int, input().split())
if i%k == 0:
    print("OK")
    exit()
print("NG")

k = int(input())
a,b = map(int, input().split())
    if i%k == 0:
        print("OK")
        exit()
print("NG")

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
a, b = map(int, input())

answer = 'NG'

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



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

answer = 'NG'

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



Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
a,b = map(int, input().split(' '))
for i in range(a,b+1):
    if i % n == 0:
        print('Yes')
        break
else:
    print('No')

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

Verdicts: Wrong Answer

Accepted