⌨️

[AtCoder]ABC-165|A - We Love Golf

2023/03/12に公開

設問ページ

提出結果

def getInt():
    return int(input())


def getIntMap():
    return map(int, input().split())


def main():
    k = getInt()
    a, b = getIntMap()

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


if __name__ == "__main__":
    main()

Discussion