Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A,B= list(map(int, input().split()))
S = 0
while S<=A:
    S += K
if S<=B:
    print("OK")
else:
    print("NG")

Failing test case input:
1
11 11

Expected output:
OK

Actual output:
NG


Fixed submission (verdict: Accepted):
K = int(input())
A,B= list(map(int, input().split()))
S = 0
while S < A:
    S += K
if S <= B:
    print("OK")
else:
    print("NG")

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input().split()
k=int(s[0])
s = input().split()
a=int(s[0])
b=int(s[1])
if k>1:
    if (b-a)/7>1:
        print('OK')
    else:
        print('NG')
else:
    print('OK')


Failing test case input:
4
0 7

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
s = input().split()
k=int(s[0])
s = input().split()
a=int(s[0])
b=int(s[1])
flag=0
for i in range(a,b+1):
    if i%k==0:
        flag=1
        break
if flag==0:
    print('NG')
else:
    print('OK')

Problem: p02693
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K = int(input())
A = list(map(int, input().split()))
d=A[1]-A[0]
ok=0
if d==0:
    if A[0]%K==0:
        print("OK")
        ok+=1
        
for i in range(d):
    if A[0]%K==0:
        print("OK")
        ok+=1
        break
    else:
        a=A[0]
        A[0]=a+1

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


Failing test case input:
4
3 4

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
K = int(input())
A = list(map(int, input().split()))
d=A[1]-A[0]+1
ok=0

for i in range(d):
    if A[0]%K==0:
        print("OK")
        ok+=1
        break
    else:
        a=A[0]
        A[0]=a+1

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

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

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


Failing test case input:
4
1 4

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())
for i in range(a, b+1):
    if i%k == 0 :
        print("OK")
        break
else:
    print("NO")

Failing test case input:
4
5 7

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

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

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

Failing test case input:
4
6 8

Expected output:
OK


Actual output:
NG


Fixed submission (verdict: Accepted):
k=int(input())
x,y = map(int, input().split())

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