WA声一片
查看原帖
WA声一片
966040
HAPPY804楼主2024/10/11 20:14

题目链接

a=int(input())
p=input().split()
x=int(p[0])
y=int(p[1])
o=x
w=0
for i in range(x-y+1):
    if x%a==0:
        w=1
    x+=1
if w==1:
    print("OK")
else:
    print("NG")
2024/10/11 20:14
加载中...