結果

問題 No.1048 Zero (Advanced)
ユーザー FromBooskaFromBooska
提出日時 2023-02-17 16:16:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 556 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 71,564 KB
最終ジャッジ日時 2023-09-26 15:05:19
合計ジャッジ時間 2,823 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,380 KB
testcase_01 AC 65 ms
71,104 KB
testcase_02 AC 66 ms
71,276 KB
testcase_03 AC 66 ms
71,340 KB
testcase_04 AC 66 ms
71,224 KB
testcase_05 AC 67 ms
71,368 KB
testcase_06 AC 65 ms
71,352 KB
testcase_07 AC 70 ms
71,356 KB
testcase_08 AC 67 ms
71,364 KB
testcase_09 AC 67 ms
71,544 KB
testcase_10 AC 67 ms
71,092 KB
testcase_11 AC 66 ms
71,248 KB
testcase_12 AC 66 ms
71,324 KB
testcase_13 AC 65 ms
71,280 KB
testcase_14 AC 66 ms
71,092 KB
testcase_15 AC 69 ms
71,092 KB
testcase_16 AC 67 ms
71,280 KB
testcase_17 AC 67 ms
71,376 KB
testcase_18 AC 68 ms
71,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# K回の和の最低値はL*K、最高値はR*K
# この2つの値の間(両端含む)に 0 mod Mが入っていればいい

L, R, M, K = map(int, input().split())
low = L*K
high = R*K
low_mod = low%M
if low + (M - low_mod) <= high or low_mod == 0:
    print('Yes')
else:
    print('No')
0