A問題 We Love Golf
1 2 3 4 5 6 7 8 |
k = int(input()) a,b = map(int, input().split()) for i in range(a//k,b//k+1): if a<=k*i<=b: print('OK') exit() print('NG') |
1 2 3 4 5 6 7 8 |
k = int(input()) a,b = map(int, input().split()) for i in range(a//k,b//k+1): if a<=k*i<=b: print('OK') exit() print('NG') |
コメント