結果

問題 No.1048 Zero (Advanced)
ユーザー kit84kit84
提出日時 2020-05-08 22:08:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 575 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 10,792 KB
実行使用メモリ 8,276 KB
最終ジャッジ日時 2023-09-17 02:56:28
合計ジャッジ時間 1,267 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,272 KB
testcase_01 AC 16 ms
8,124 KB
testcase_02 AC 16 ms
8,120 KB
testcase_03 AC 16 ms
8,104 KB
testcase_04 AC 16 ms
8,212 KB
testcase_05 AC 16 ms
8,040 KB
testcase_06 AC 16 ms
8,080 KB
testcase_07 AC 16 ms
8,212 KB
testcase_08 AC 15 ms
8,120 KB
testcase_09 AC 15 ms
8,208 KB
testcase_10 AC 15 ms
8,120 KB
testcase_11 AC 15 ms
8,212 KB
testcase_12 AC 15 ms
8,256 KB
testcase_13 AC 15 ms
8,252 KB
testcase_14 AC 16 ms
8,248 KB
testcase_15 AC 15 ms
8,204 KB
testcase_16 WA -
testcase_17 AC 16 ms
8,212 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

# from collections import deque

def linput(_t=int):
    return list(map(_t, input().split()))

def say(n):
    print(("No","Yes")[n%2])
    exit(0)

def gcd(n,m):
    while m: n,m = m, n%m
    return n

def lcm(n,m): return n*m//gcd(n,m)

def main():
    # N = int(input())
    # N,K = linput()
    L,R,M,K = linput()
    # vA = linput()
    # vE = [linput() for _ in [0,]*M]

    res = 0

    if K==0:
        say(1)

    if (R-L)*K >= M:
        say(1)

    if K*L%M >= K*R%M:
        res = 1

    # print(res)
    say(res)


main()
0