結果

問題 No.1048 Zero (Advanced)
ユーザー flippergo
提出日時 2020-12-24 23:56:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 850 ms
コンパイル使用メモリ 82,268 KB
実行使用メモリ 53,372 KB
最終ジャッジ日時 2024-09-21 17:08:39
合計ジャッジ時間 2,121 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

L,R,M,K = map(int,input().split())
if R-L+1>=M or K>=M:
    print("Yes")
else:
    L = L%M
    R = R%M
    if L>=R:
        print("Yes")
    else:
        k1 = (R*K)//M
        k2 = (L*K-1)//M
        if k1>k2:
            print("Yes")
        else:
            print("No")
0