結果

問題 No.1048 Zero (Advanced)
ユーザー tamatotamato
提出日時 2020-05-08 21:31:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 889 ms
コンパイル使用メモリ 87,524 KB
実行使用メモリ 71,812 KB
最終ジャッジ日時 2023-09-17 01:49:07
合計ジャッジ時間 2,503 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,704 KB
testcase_01 AC 70 ms
71,732 KB
testcase_02 AC 69 ms
71,620 KB
testcase_03 AC 70 ms
71,556 KB
testcase_04 AC 67 ms
71,812 KB
testcase_05 AC 67 ms
71,532 KB
testcase_06 AC 66 ms
71,736 KB
testcase_07 AC 69 ms
71,532 KB
testcase_08 AC 69 ms
71,484 KB
testcase_09 AC 70 ms
71,808 KB
testcase_10 AC 71 ms
71,504 KB
testcase_11 AC 69 ms
71,252 KB
testcase_12 AC 69 ms
71,472 KB
testcase_13 AC 67 ms
71,484 KB
testcase_14 AC 68 ms
71,804 KB
testcase_15 AC 67 ms
71,676 KB
testcase_16 WA -
testcase_17 AC 68 ms
71,804 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

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

    if K == 0:
        print("Yes")
        exit()

    if R*K - L*K >= mod-1:
        print("Yes")
    else:
        if (L*K)%mod > (R*K)%mod:
            print("Yes")
        else:
            print("No")


if __name__ == '__main__':
    main()
0