結果

問題 No.1048 Zero (Advanced)
ユーザー tamatotamato
提出日時 2020-05-08 21:29:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 382 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 87,624 KB
実行使用メモリ 72,004 KB
最終ジャッジ日時 2023-09-17 01:40:55
合計ジャッジ時間 2,380 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,780 KB
testcase_01 AC 67 ms
71,576 KB
testcase_02 AC 65 ms
71,708 KB
testcase_03 AC 67 ms
71,752 KB
testcase_04 AC 67 ms
71,616 KB
testcase_05 AC 70 ms
71,520 KB
testcase_06 AC 66 ms
71,780 KB
testcase_07 AC 65 ms
71,652 KB
testcase_08 AC 66 ms
71,488 KB
testcase_09 AC 66 ms
71,560 KB
testcase_10 AC 68 ms
71,684 KB
testcase_11 AC 66 ms
71,836 KB
testcase_12 AC 64 ms
71,740 KB
testcase_13 AC 63 ms
71,608 KB
testcase_14 AC 63 ms
71,748 KB
testcase_15 AC 66 ms
71,608 KB
testcase_16 WA -
testcase_17 AC 67 ms
71,564 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:
        print("Yes")
    else:
        if (L*K)%mod > (R*K)%mod:
            print("Yes")
        else:
            print("No")


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