結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,112 KB
testcase_01 AC 16 ms
8,220 KB
testcase_02 AC 16 ms
8,144 KB
testcase_03 AC 16 ms
8,244 KB
testcase_04 AC 15 ms
8,260 KB
testcase_05 AC 16 ms
8,132 KB
testcase_06 AC 16 ms
8,216 KB
testcase_07 AC 16 ms
8,284 KB
testcase_08 AC 16 ms
8,300 KB
testcase_09 AC 16 ms
8,212 KB
testcase_10 AC 15 ms
8,256 KB
testcase_11 AC 15 ms
8,124 KB
testcase_12 AC 16 ms
8,272 KB
testcase_13 AC 16 ms
8,120 KB
testcase_14 AC 16 ms
8,120 KB
testcase_15 AC 16 ms
8,200 KB
testcase_16 AC 15 ms
8,120 KB
testcase_17 AC 15 ms
8,132 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*L==0:
        say(1)

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

    if L==R:
        if K*L%M != 0:
            say(0)

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

    # print(res)
    say(res)


main()
0