結果

問題 No.1223 I hate Golf
ユーザー Meso MesoMeso Meso
提出日時 2024-04-21 20:49:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 415 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-21 20:49:14
合計ジャッジ時間 1,513 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,624 KB
testcase_01 AC 27 ms
10,624 KB
testcase_02 AC 25 ms
10,624 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 25 ms
10,624 KB
testcase_09 AC 30 ms
10,624 KB
testcase_10 AC 25 ms
10,496 KB
testcase_11 AC 25 ms
10,624 KB
testcase_12 AC 26 ms
10,624 KB
testcase_13 WA -
testcase_14 AC 26 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k, t = map(int, input().split())

"""
for i in range(k+1):
    d = i * k
    if d >= abs(n) and i <= t:
        print('Yes')
        break
else:
    print('No')
"""
a = n // k
b = n // k + 1

flg = True
if a * k > abs(n) and a <= t:
    flg = True
else:
    flg = False

flag = True
if b * k > abs(n) and b <= t:
    flag = True
else:
    flag = False

if flg or flag:
    print('Yes')
else:
    print('No')
    
0