結果

問題 No.1048 Zero (Advanced)
ユーザー 👑 tamatotamato
提出日時 2020-05-08 21:33:50
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 402 bytes
コンパイル時間 868 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 72,000 KB
最終ジャッジ日時 2023-09-17 02:00:08
合計ジャッジ時間 2,717 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,756 KB
testcase_01 AC 71 ms
71,692 KB
testcase_02 AC 71 ms
71,708 KB
testcase_03 AC 71 ms
72,000 KB
testcase_04 AC 73 ms
71,588 KB
testcase_05 AC 74 ms
71,760 KB
testcase_06 AC 74 ms
71,760 KB
testcase_07 AC 73 ms
71,952 KB
testcase_08 AC 74 ms
71,580 KB
testcase_09 AC 74 ms
71,952 KB
testcase_10 AC 75 ms
71,768 KB
testcase_11 AC 73 ms
71,604 KB
testcase_12 AC 73 ms
71,832 KB
testcase_13 AC 74 ms
71,820 KB
testcase_14 AC 74 ms
71,840 KB
testcase_15 AC 73 ms
71,440 KB
testcase_16 AC 75 ms
71,920 KB
testcase_17 AC 73 ms
71,424 KB
testcase_18 AC 74 ms
71,612 KB
権限があれば一括ダウンロードができます

ソースコード

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 or (L*K)%mod == 0:
            print("Yes")
        else:
            print("No")


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