ZhenlongDai/ACPR huggingface dataset:
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
A,B=(input().split())
A=int(A)
B=int(B)

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

Failing test case input:
4
2 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K=int(input())
A,B=(input().split())
A=int(A)
B=int(B)

s=range(A,B+1)   
for n in range(1,1000):  
        if K*n in s:
            print("OK")
            break
        if K==1:
            print("OK")
            break
else:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
A,B=map(int,input().split())
for i in range(1000):
    if (i+1)%K==0 and A <= (i+1):
        print('Yes')
        exit()
print('No')

Failing test case input:
4
1 2

Expected output:
NG


Actual output:
Yes


Fixed submission (verdict: Accepted):
K=int(input())
A,B=map(int,input().split())
for i in range(1000):
    if (i+1)%K==0 and (A <= (i+1) and (i+1) <= B) :
        print('OK')
        exit()
print('NG')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a,b = map(int, input().split())

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

print(ans)


Failing test case input:
4
1 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
k = int(input())
a,b = map(int, input().split())

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

print(ans)

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A,B = list(map(int,input().split()))

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

Failing test case input:
4
1 2

Expected output:
NG


Actual output:
NO


Fixed submission (verdict: Accepted):
K = int(input())
A,B = list(map(int,input().split()))

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


k = int(input())

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



d = a % k
e = a - d

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


Failing test case input:
4
3 8

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):


k = int(input())

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

d = a % k
e = k - d

if (a % k == 0) or ((a + e) <= b):
    print('OK')
else:
    print('NG')
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a, b = map(int, input().split())

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

Failing test case input:
4
1 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
k = int(input())
a, b = map(int, input().split())

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a, b = map(int,input().split())

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

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

print('NG')

Failing test case input:
4
6 8

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
import math
k = int(input())
a, b = map(int,input().split())

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

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

print('NG')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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')

Failing test case input:
4
8 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
import sys

input = sys.stdin.readline

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

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 A[0] == A[1]:
    if A[0] % N ==0:
        print("OK")
    else:
        print("NG")
else:
    if sum == 0:
        print("NG")
    else:
        print("OK")

Failing test case input:
4
3 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):

N = int(input())
A = list(map(int, input().split())) 
sum = 0

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
K = int(input())
if K == 1:
  print("OK")
  sys.exit()
A, B = map(int, input().split(" "))

ret = int(B / K) - int(A / K)
if ret > 0:
  print("OK")
else:
  print("NG")

Failing test case input:
4
8 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
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("NG")
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
A,B=map(int,input().split())
n=int(A/K)
m=int(B/K)
if (B-A)>=K:
    print("OK")
elif n != m:
    print("OK")
else:
    print("NG")

Failing test case input:
4
8 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K=int(input())
A,B=map(int,input().split())
sum=0
for i in range(A,B+1):
    if i%K==0:
        sum += 1
if sum>=1:
    print("OK")
else:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a,b = map(int,input().split())
i = 1
c = 0
while k <= b:
    if a <= k*i<= b:
        print("OK")
        break
    elif k*i >b:
        c = 1
        break
    else:
        i += 1
if c == 1:
    print('NG')

Failing test case input:
4
1 2

Expected output:
NG


Actual output:

Fixed submission (verdict: Accepted):
k = int(input())
a,b = map(int,input().split())
i = 1
c = 0
if k > b:
    print('NG')
while k <= b:
    if a <= k*i<= b:
        print("OK")
        break
    elif k*i >b:
        c = 1
        break
    else:
        i += 1
if c == 1:
    print('NG')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
a,b = map(int,input().split())
for n in range(a,b):
  if n%K == 0:
    print("OK")
  else:
    print("NG")

Failing test case input:
4
2 16

Expected output:
OK


Actual output:
NG
NG
OK
NG
NG
NG
OK
NG
NG
NG
OK
NG
NG
NG


Fixed submission (verdict: Accepted):
k = int(input())
a,b = map(int,input().split())
if a % k != 0 and b % k != 0 and a
  print("NG")
else:
  print("OK")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
A,B=map(int,input().split())
b=0

for i in range(A,B+1):
    if i%K==0:
        b+=1
        
if b!=0:
    print("Yes")
else:
    print("No")

Failing test case input:
4
0 4

Expected output:
OK


Actual output:
Yes


Fixed submission (verdict: Accepted):
K=int(input())
A,B=map(int,input().split())
b=0

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = map(int, input().split())
for _ in range(B-A+1):
    if A%K==0:
        print("OK")
        break
    A+=1
    if A==B:
        print("NG")

Failing test case input:
4
2 2

Expected output:
NG


Actual output:

Fixed submission (verdict: Accepted):
K = int(input())
A, B = map(int, input().split())
for _ in range(1000):
    if A%K==0:
        print("OK")
        break
    A+=1
    if A==B+1:
        print("NG")
        break

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = map(int, input().split())

a = 0

for i in range(A, B+1):
  if i%K == 0:
    a+=1
  else:
    pass
if a != 0:
  print("Yes")
else:
  print("NG")



Failing test case input:
1
11 11

Expected output:
OK

Actual output:
Yes


Fixed submission (verdict: Accepted):
K = int(input())
A, B = map(int, input().split())

a = 0

for i in range(A, B+1):
  if i%K == 0:
    a+=1
  else:
    pass
if a != 0:
  print("OK")
else:
  print("NG")
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a,b = map(int,input().split())

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

Failing test case input:
4
2 5

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
k = int(input())
a,b = map(int,input().split())

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):



def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    

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


Failing test case input:
4
8 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):



def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    

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

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


if __name__ == '__main__':
    main()

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a, b = [int(i) for i in input().split()]

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


Failing test case input:
4
1 23

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
k = int(input())
a, b = [int(i) for i in input().split()]

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

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import math
def fact(n):
    ans = 1
    for i in range(2, n+1):
        ans*= i
    return ans
def comb(n, c):
    return fact(n)

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


Failing test case input:
4
1 3

Expected output:
NG


Actual output:
OK


Fixed submission (verdict: Accepted):
import math
def fact(n):
    ans = 1
    for i in range(2, n+1):
        ans*= i
    return ans
def comb(n, c):
    return fact(n)

k = int(input())
a,b = map(int, input().split())
val = math.ceil(a/k)
if(b >= k*val):
    print('OK')
else:
    print('NG')
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = (int(x) for x in input().split())
if A == B:
  if A%K == 0:
    print("OK")
  else:
    print("NG")
else:
  for i in range(A, B):
    if i%K == 0:
      print("OK")
      quit()
  print("NG")

Failing test case input:
4
6 8

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K = int(input())
A, B = (int(x) for x in input().split())
if A == B:
  if A%K == 0:
    print("OK")
  else:
    print("NG")
else:
  for i in range(A, B+1):
    if i%K == 0:
      print("OK")
      quit()
  print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from sys import stdin

def main():

    input = stdin.readline

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

    
    for i in range(1,1001):
        if A <= i * K & B >= i * K:
            print("OK")
            return 0
    else:
        print("NG")

    
if __name__ == "__main__":
    main()

Failing test case input:
7
500 600

Expected output:
OK

Actual output:
NG


Fixed submission (verdict: Accepted):
from sys import stdin

def main():

    input = stdin.readline

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

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

    
if __name__ == "__main__":
    main()

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k=int(input())
a,b=map(int,input().split())
c=b-a
if(c>=k-1):
    print("OK")
elif(a%k+c>=k):
    print("OK")
else:
    print("NG")


Failing test case input:
4
8 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
k=int(input())
a,b=map(int,input().split())
c=b-a
if(a%k+c>=k)or(a%k==0):
    print("OK")
else:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = input()
a, b = input().split()

for cnt in range(int(b)+1):
    if int(a)-1 < cnt:
        if cnt % int(k) == 0:
            print("OK")
            exit()
print("NO")


Failing test case input:
4
2 2

Expected output:
NG


Actual output:
NO


Fixed submission (verdict: Accepted):
k = input()
a, b = input().split()

for cnt in range(int(b)):
    if cnt+1 >= int(a):
       

        if int(cnt+1)% int(k) == 0 or int(k) == 1:
            print("OK")
            exit()
print("NG")

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def main():
    k = int(input())
    a, b = map(int, input().split(" "))
    if b - a >= k - 1:
        ans = "OK"
    else:
        ans = "NG"
    print(ans)

if __name__ == '__main__':
    main()

Failing test case input:
4
2 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
def main():
    k = int(input())
    a, b = map(int, input().split(" "))
    ans = "NG"
    for i in range(b - a + 1):
        if a % k == 0:
            ans = "OK"
            break
        a += 1

    print(ans)

if __name__ == '__main__':
    main()
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")


Failing test case input:
4
2 23

Expected output:
OK


Actual output:
OK
OK
OK
OK
OK
NG


Fixed submission (verdict: Accepted):
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")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k=int(input())
a,b=map(int, input().split())

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

print('NG')

Failing test case input:
4
2 26

Expected output:
OK


Actual output:
OK
NG


Fixed submission (verdict: Accepted):
k=int(input())
a,b=map(int, input().split())

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

print('NG')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a,b = map(int,input().split())

flag = False

for i in range(b+1):
    if k * i >= a and k * i <= b:
        flag = True
if flag == True:
    print("Yes")
else:
    print("No")
    

Failing test case input:
4
3 8

Expected output:
OK


Actual output:
Yes


Fixed submission (verdict: Accepted):
k = int(input())
a,b = map(int,input().split())

flag = False

for i in range(b+1):
    if k * i >= a and k * i <= b:
        flag = True
if flag == True:
    print("OK")
else:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b, c = map(int, input().split())
for i in range(b, c + 1):
  if i % a == 0:
    print("OK")
    break
  else: 
    print("NG")
    break

Failing test case input:
4
2 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
a = int(input())
b, c = map(int, input().split())
flag = 0
for i in range(b, c + 1):
  if i % a == 0:
    flag = 1
    break

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from sys import stdin

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

if ((B-A) < K) and (A%K < (B-A)) and (B%K < (B-A)):
  print("NG")

else:
  print("OK")

Failing test case input:
4
5 7

Expected output:
NG

Actual output:
OK


Fixed submission (verdict: Accepted):
from sys import stdin

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

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

if count > 0:
  print("OK")
else:
  print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
a,b=map(int,input().split())
l=[abb for abb in range(a, b+1)]
kl=[]
for am in l:
    if am%7==0:
        kl.append(am)
if len(kl)>0:
    print("OK")
else:
    print("NG")
      
    

Failing test case input:
4
5 7

Expected output:
NG

Actual output:
OK


Fixed submission (verdict: Accepted):
n=int(input())
a,b=map(int,input().split())
l=[abb for abb in range(a, b+1)]
kl=[]
for am in l:
    if am%n==0:
        kl.append(am)
if len(kl)>0:
    print("OK")
else:
    print("NG")
Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
K = int(input())
a, b = map(int, input().split())
if a == b:
  b += 1

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


Failing test case input:
4
1 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K = int(input())
a, b = map(int, input().split())
 
for num in range(a, b+1):
  if num % K == 0:
    print('OK')
    break
else:
  print('NG')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

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

k = (B - A) / K 

if K == 1:
	print("OK")
elif k >= 1:
	print("OK")
else:
	print("NG")


Failing test case input:
4
8 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):


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

k = int(B/K) - int((A-1)/K) 

if K == 1:
	print("OK")
elif k >= 1:
	print("OK")
else:
	print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
b,c=map(int, input().split())
k = b
while  b<= k <= c :
    if k % n == 0 :
        print('OK')
        exit()
    b = b +1
print('NG')

Failing test case input:
4
-5 12

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
n = int(input())
b,c=map(int, input().split())
k = b
while  b<= k <= c :
    if k % n == 0 :
        print('OK')
        exit()
    k += 1
print('NG')

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
k = int(input())
a, b = map(int, input().split())

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

Failing test case input:
4
6 8

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
k = int(input())
a, b = map(int, input().split())

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a,b = map(int,input().split())
if 0 < abs(a / k - b / k) < 1:
    print("NG")
else:
    print("OK")

Failing test case input:
4
1 1

Expected output:
NG


Actual output:
OK


Fixed submission (verdict: Accepted):
k = int(input())
a,b = map(int,input().split())
if a 
    print("NG")
else:
    print("OK")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = map(int, input().split())

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


Failing test case input:
4
1 11

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K = int(input())
A, B = map(int, input().split())

a = int(A/K)
if A <= (a+1)*K <= B or A <= a*K <=B:
    print('OK')
else:
    print('NG')
Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
X = int(input())
A,B = map(int, input().split())
F = 0

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

Failing test case input:
4
2 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
X = int(input())
A,B = map(int, input().split())
F = 0

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
b,c=map(int, input().split())
k = b
while  b<= k <= c :
    k % n == 0
    print('OK')
    exit()
    b = b +1
print('NG')

Failing test case input:
4
1 3

Expected output:
NG


Actual output:
OK


Fixed submission (verdict: Accepted):
n = int(input())
b,c=map(int, input().split())
k = b
while  b<= k <= c :
    if k % n == 0 :
        print('OK')
        exit()
    k += 1
print('NG')

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
m = list(map(int,input().split()))

sa = m[1] - m[0]
flag = 0

if sa == 0:
    if sa % n == 0:
        print("OK")
        exit()
    else:
        print("NG")
        exit()

for x in range(sa):
    hantei = m[0]
    hantei += x
    if hantei % n == 0:
        flag += 1

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

Failing test case input:
4
3 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
n = int(input())
m = list(map(int,input().split()))

sa = m[1] - m[0]
flag = 0
hantei = m[0]

if sa == 0:
    if m[0] % n == 0:
        print("OK")
        exit()
    else:
        print("NG")
        exit()

if hantei % n == 0:
    flag += 1

for x in range(sa):
    hantei = (x + 1) + m[0]
    if hantei % n == 0:
        flag += 1

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
A,B=list(map(int,input().split()))
a=A/K
b=B/K

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

Failing test case input:
4
6 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K=int(input())
A,B=list(map(int,input().split()))
a=int(A/K)
b=B/K

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

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys

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

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


Failing test case input:
4
2 5

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
import sys

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

if A % K:
    i = (A 
    ans = A <= (i * K) <= B
else:
    ans = A <= B

if ans:
    print('OK')
else:
    print('NG')
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = [int(a) for a in input().split()]
p = A 
if (A <= p and p <= B) or (K == 1):
    print("OK")
else:
    print("NG")

Failing test case input:
4
5 7

Expected output:
NG

Actual output:
OK


Fixed submission (verdict: Accepted):
K = int(input())
A, B = [int(a) for a in input().split()]
p = (A 
if (A <= p and p <= B) or (A <= p + K and p + K <= B):
    print("OK")
else:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
 
input_line = input()
Line = input_line.split()
Line = [int(s) for s in Line]

if Line[1] == Line[0] and Line[0]%N == 0:
    print("OK")
    
elif Line[1]-Line[0] < N:
    print("NG")

else:
    print("OK")

Failing test case input:
4
6 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
import sys
N = int(input())
 
input_line = input()
Line = input_line.split()
Line = [int(s) for s in Line]

for i in range(Line[0],Line[1]+1):
    
    if i % N == 0:
        print("OK")
        sys.exit()
print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")

Failing test case input:
4
2 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K = int(input())
A, B = map(int, input().split())
 

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a, b=map(int,input().split())
c = 0
Lists = list(range(a, b+1))
for i in Lists:
    if i % k == 0:
        print("OK")
        c = 1
if c == 0:
    print("NG")


Failing test case input:
4
-2 20

Expected output:
OK


Actual output:
OK
OK
OK
OK
OK
OK


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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from sys import stdin

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

if ((B-A) < K) and (A%K != 0):
  print("NF")
else:
  print("OK")

Failing test case input:
4
6 8

Expected output:
OK


Actual output:
NF


Fixed submission (verdict: Accepted):
from sys import stdin

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

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

if count > 0:
  print("OK")
else:
  print("NG")
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a,b=map(int,input().split())

if n == 1:
    print("OK")
else:
    while a <= b:
        a += 1
        if a % n == 0:
            print('OK')
            break
        elif a == b:
            print("NG")

Failing test case input:
4
2 2

Expected output:
NG


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
a,b=map(int,input().split())

if a == b:
    if a % n == 0:
        print('OK')
    else:
        print('NG')
elif a % n == 0:
    print('OK')
else:
    while a < b:
        a += 1
        if a % n == 0:
            print('OK')
            break
        elif a == b:
            print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i for i2 in range(j)]
def dp3(ini, i, j, k): return [[[ini]*i for i2 in range(j)] for i3 in range(k)]






N = ii()
A, B = mi()

for i in range(A, B+1):
    if not i % N:
        print('OK')
        exit()
print('No')

Failing test case input:
4
5 7

Expected output:
NG

Actual output:
No


Fixed submission (verdict: Accepted):
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i for i2 in range(j)]
def dp3(ini, i, j, k): return [[[ini]*i for i2 in range(j)] for i3 in range(k)]






N = ii()
A, B = mi()

for i in range(A, B+1):
    if not i % N:
        print('OK')
        exit()
print('NG')

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
from math import floor
k = int(input())
a,b = map(int,input().split())
if (floor(a/k) < floor(b/k)):
  print("OK")
else:
  print("NG")


Failing test case input:
1
11 11

Expected output:
OK

Actual output:
NG


Fixed submission (verdict: Accepted):
from math import floor
k = int(input())
a,b = map(int,input().split())
ok = False
for i in range(a,b+1):
  if (i%k == 0):
    ok = True
if (ok):
  print("OK")
else:
  print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a, b = map(int, input().split())

for cnt in range(a, b):
  if cnt % k == 0:
    print('OK')
    break
  elif cnt + 1 == b:
    print('NG')

Failing test case input:
1
11 11

Expected output:
OK

Actual output:

Fixed submission (verdict: Accepted):
k = int(input())
a, b = map(int, input().split())

for cnt in range(a, b + 1):
  if cnt % k == 0:
    print('OK')
    break
  elif cnt + 1 == b + 1:
    print('NG')
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
A,B=map(int,input().split())

for i in range(1000):
    if A<=i*K<=B:
        print('OK')
        exit()
    else:
        print('NG')
        exit()


Failing test case input:
4
6 8

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K=int(input())
A,B=map(int,input().split())

for i in range(1000):
    if A<=i*K and i*K<=B:
        print('OK')
        exit()
print('NG')
exit()

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
k = int(input())
a,b = map(int,input().split())
flg = False
for i in range(a,b):
    if i % k != 0:
        continue
    print("OK")
    flg = True
    break
if not flg :
    print("NG")


Failing test case input:
4
3 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
k = int(input())
a,b = map(int,input().split())
flg = False
for i in range(a,b + 1):
    if i % k != 0:
        continue
    print("OK")
    flg = True
    break
if not flg :
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a,b = map(int,input().split())
for i in range(a,b):
    if i % n == 0:
        print("OK")
        break
else:
    print("NG")

Failing test case input:
4
2 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
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")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")

Failing test case input:
4
1 3

Expected output:
NG


Actual output:
NO


Fixed submission (verdict: Accepted):
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")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    k = int(input())
    a,b = map(int, input().split())
    cnt = 0
    for ai in range(a,b+1):
        if ai%k==0:
            print("OK")
            break
        else:
            print("NG")
            break

if __name__ == "__main__":
    main()


Failing test case input:
4
5 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
import sys

def main():
    k = int(input())
    a,b = map(int, input().split())
    n = "OK"
    for ai in range(a,b+1):
        if ai%k==0:
            n = "OK"
            break
            sys.exit()
        else:
            n="NG"
    print(n)
    
if __name__ == "__main__":
    main()
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = map(int, input().split())
for i in range(A, B):
    if i % K == 0:
        print('OK')
        exit()
print('NG')


Failing test case input:
1
11 11

Expected output:
OK

Actual output:
NG


Fixed submission (verdict: Accepted):
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')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from sys import stdin

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

if ((B-A) < K) and (A%K > (K + (B-A))) or (B%K < (K - (B-A))):
  print("NG")

else:
  print("OK")

Failing test case input:
4
1 3

Expected output:
NG


Actual output:
OK


Fixed submission (verdict: Accepted):
from sys import stdin

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

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

if count > 0:
  print("OK")
else:
  print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
K = int(input())
if K == 1:
  print("OK")
  sys.exit()
A, B = map(int, input().split(" "))
ret = int(B / K - A / K)
if ret > 0:
  print("OK")
else:
  print("NG")

Failing test case input:
4
8 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
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("NG")

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
from math import floor
k = int(input())
a,b = map(int,input().split())
if (floor(a/k) <= floor(b/k)):
  print("OK")
else:
  print("NG")


Failing test case input:
4
5 7

Expected output:
NG

Actual output:
OK


Fixed submission (verdict: Accepted):
from math import floor
k = int(input())
a,b = map(int,input().split())
ok = False
for i in range(a,b+1):
  if (i%k == 0):
    ok = True
if (ok):
  print("OK")
else:
  print("NG")

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
k = int(input())
a, b = map(int, input().split())

flag =False
for i in range(a,b+1):
    if i%k==0:
        flag=True
if flag:
    print('Yes')
else:
    print('No')

Failing test case input:
4
0 24

Expected output:
OK


Actual output:
Yes


Fixed submission (verdict: Accepted):
k = int(input())
a, b = map(int, input().split())

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")

Failing test case input:
4
-2 16

Expected output:
OK


Actual output:
Yes


Fixed submission (verdict: Accepted):
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")
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = map(int, input().split())
if B - A + 1 >= K:
    print('OK')
else:
    print('NG')

Failing test case input:
4
2 4

Expected output:
OK


Actual output:
NG


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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    import sys
    input = sys.stdin.readline

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

    x = A

    y = B

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


Failing test case input:
4
6 8

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
def main():
    import sys
    input = sys.stdin.readline

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

    x = A

    y = B

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


if __name__ == "__main__":
    main()

Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def main():
    K = int(input())
    A, B = map(int, input().split())
    hiku = (B/K) - (A/K)
    if hiku >= 1:
        print("OK")
    elif hiku == 0:
        print("OK")
    else:
        print("NG")

main()

Failing test case input:
4
6 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
def main():
    K = int(input())
    A, B = map(int, input().split())
    import math
    wari = math.floor(B/K)
    if wari * K >= A:
        print("OK")
    else:
        print("NG")


main()

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k=int(input())
a,b=map(int,input().split())

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

print(ans)

Failing test case input:
4
-2 10

Expected output:
OK


Actual output:
YES


Fixed submission (verdict: Accepted):
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)

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())

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

b = B % K

x = A - b

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


Failing test case input:
4
0 11

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K = int(input())

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

b = B % K
w = B - A

if w - b >= 0:
    print('OK')
else:
    print('NG')
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a, b = map(int, input().split())

for i in range(b-a):
    c = a+i
    if c%k==0 :
        print("ok")
        break
    
    if c == b-1 :
        print("NG")


Failing test case input:
4
1 26

Expected output:
OK


Actual output:
ok


Fixed submission (verdict: Accepted):
k = int(input())
a, b = map(int, input().split())
n = b-a
c = 0

for i in range(n+1):
    if (a+i)%k==0 :
        c = 1
        print("OK")
        break
    
if c == 0:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = map(int, input().split())

s = A
e = B

ans = "NG"

for i in range(s, e+1):
  if A < (K * i) < B:
    ans = "OK"
    break
  else:
    pass

print(ans)

Failing test case input:
4
5 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
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
  else:
    pass

print(ans)

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A,B = map(int,input().split())
loop = B - A
ans = "NG"

if K == 1:
  ans = "OK"
else:
  for i in range(loop):
    if loop < K:
      break
    if i % K == 0:
      ans = "OK"
      break
    
print(ans)

Failing test case input:
4
6 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K = int(input())
A,B = map(int,input().split())
ans = "NG"

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

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = map(int, input().split())

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

Failing test case input:
4
6 8

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K = int(input())
A, B = map(int, input().split())

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

print('NG')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
A, B = map(int, input().split())

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

Failing test case input:
4
2 5

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
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")
Problem: p02693
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def main():
    k = int(input())
    a, b = map(int, input().split(" "))
    ans = "NG"
    for i in range(b - a + 1):
        a += 1
        if a % k == 0:
            
            ans = "OK"
            break

    print(ans)

if __name__ == '__main__':
    main()

Failing test case input:
4
8 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
def main():
    k = int(input())
    a, b = map(int, input().split(" "))
    ans = "NG"
    for i in range(b - a + 1):
        if a % k == 0:
            ans = "OK"
            break
        a += 1

    print(ans)

if __name__ == '__main__':
    main()

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k=int(input())
a,b=map(int,input().split())
d=0
v=0
for i in range(1001):
    d=k*i
    if d>=a and d<=b:
        v+=1
        break

if v>=1:
    print("OK")
else:
    print("NO")

Failing test case input:
4
2 2

Expected output:
NG


Actual output:
NO


Fixed submission (verdict: Accepted):
k=int(input())
a,b=map(int,input().split())
d=0
v=0
for i in range(1001):
    d=k*i
    if d>=a and d<=b:
        v+=1

if v>=1:
    print("OK")
else:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A, B = map(int,input().split())
for X in range(A - 1, B + 1):
    if X % K == 0:
        print('OK')
        break
else:
    print('NG')


Failing test case input:
4
5 7

Expected output:
NG

Actual output:
OK


Fixed submission (verdict: Accepted):
K = int(input())
A, B = map(int,input().split())
for X in range(A, B + 1):
    if X % K == 0:
        print('OK')
        break
else:
    print('NG')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import os
import sys
from collections import deque
from collections import Counter
from heapq import heappop,heappush

def main():
	k = int(input())
	a,b = map(int, input().split())
	list_a = []
	if b == a:
		print("OK")
		sys.exit()

	for i in range(b,a-1,-1):
		list_a.append(i)
	for i in list_a:
		if i%k == 0:
			print("OK")
			sys.exit()
	print("NG")

if __name__ == "__main__":
	main()


Failing test case input:
4
1 1

Expected output:
NG


Actual output:
OK


Fixed submission (verdict: Accepted):
import os
import sys
from collections import deque
from collections import Counter
from heapq import heappop,heappush

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

if __name__ == "__main__":
	main()
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k = int(input())
a, b = map(int, input().split())
n = b-a

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

Failing test case input:
4
6 8

Expected output:
OK


Actual output:

Fixed submission (verdict: Accepted):
k = int(input())
a, b = map(int, input().split())
n = b-a
c = 0

for i in range(n+1):
    if (a+i)%k==0 :
        c = 1
        print("OK")
        break
    
if c == 0:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A,B = map(int, input().split())

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


Failing test case input:
4
12 18

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
import math
K = int(input())
A,B = map(int, input().split())

under = K*math.ceil(A/K)
if(under<= B):
    print("OK")
else:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

K = int(input())

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



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


Failing test case input:
4
-2 11

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):

K = int(input())

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



if A%K != 0:
  if A-(A%K)+K <= B:
    print("OK")
  else:
    print("NG")
else:
    print("OK")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
A,B=map(int,input().split())
if A/K==B/K and A!=B:
    print('NG')
else:
    print('OK')

Failing test case input:
4
2 2

Expected output:
NG


Actual output:
OK


Fixed submission (verdict: Accepted):
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')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a,b = map(int,input().split())
if b-a >= n-1:
    print('OK')
else:
    print('NG')

Failing test case input:
4
6 8

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
n = int(input())
a,b = map(int,input().split())

if (b-1)
    print('OK')
else:
    print('NG')
Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, gcd
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

K = INT()
A, B = MAP()

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

print("NG")

Failing test case input:
4
2 5

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, gcd
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
 
K = INT()
A, B = MAP()
 
for i in range(A, B+1):
	if i % K == 0:
		print("OK")
		exit()
 
print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")

Failing test case input:
4
-2 16

Expected output:
OK


Actual output:
Yes


Fixed submission (verdict: Accepted):
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")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math

k = int(input())
a, b = (int(x) for x in input().split())
outa = math.floor(a / k)
outb = math.floor(b / k)
if outa == outb:
    print("NG")
else:
    print("OK")


Failing test case input:
4
8 9

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
import math

k = int(input())
a, b = (int(x) for x in input().split())
outa = math.floor(a / k)
outb = math.floor(b / k)
if outb == 0:
    print("NG")
elif outa == outb and a != b and outa != a / k:
    print("NG") 
else:
    print("OK")