結果

問題 No.1048 Zero (Advanced)
ユーザー tktk_snsntktk_snsn
提出日時 2020-12-16 18:30:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 81,808 KB
実行使用メモリ 53,476 KB
最終ジャッジ日時 2023-10-20 09:44:48
合計ジャッジ時間 2,116 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,416 KB
testcase_01 AC 39 ms
53,416 KB
testcase_02 AC 39 ms
53,416 KB
testcase_03 AC 39 ms
53,416 KB
testcase_04 AC 39 ms
53,416 KB
testcase_05 AC 38 ms
53,416 KB
testcase_06 AC 39 ms
53,416 KB
testcase_07 AC 39 ms
53,416 KB
testcase_08 AC 39 ms
53,416 KB
testcase_09 AC 39 ms
53,416 KB
testcase_10 AC 39 ms
53,416 KB
testcase_11 AC 38 ms
53,416 KB
testcase_12 AC 38 ms
53,416 KB
testcase_13 AC 38 ms
53,416 KB
testcase_14 AC 38 ms
53,416 KB
testcase_15 AC 39 ms
53,416 KB
testcase_16 WA -
testcase_17 AC 39 ms
53,416 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

L, R, M, K = map(int, input().split())

nmin = L * K
nmax = R * K

if nmax - nmin + 1 >= M:
    print("Yes")
else:
    mx = nmax % M
    mn = nmin % M
    if mn >= mx:
        print("Yes")
    else:
        print("No")
0