結果
問題 | No.1048 Zero (Advanced) |
ユーザー | kit84 |
提出日時 | 2020-05-08 22:13:14 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 631 bytes |
コンパイル時間 | 95 ms |
コンパイル使用メモリ | 10,996 KB |
実行使用メモリ | 8,316 KB |
最終ジャッジ日時 | 2023-09-17 02:59:22 |
合計ジャッジ時間 | 1,051 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 13 ms
8,232 KB |
testcase_01 | AC | 13 ms
8,100 KB |
testcase_02 | AC | 13 ms
8,208 KB |
testcase_03 | AC | 12 ms
8,268 KB |
testcase_04 | AC | 13 ms
8,176 KB |
testcase_05 | AC | 15 ms
8,104 KB |
testcase_06 | AC | 13 ms
8,316 KB |
testcase_07 | AC | 14 ms
8,268 KB |
testcase_08 | AC | 13 ms
8,212 KB |
testcase_09 | AC | 13 ms
8,280 KB |
testcase_10 | AC | 12 ms
8,208 KB |
testcase_11 | AC | 12 ms
8,232 KB |
testcase_12 | AC | 12 ms
8,152 KB |
testcase_13 | AC | 12 ms
8,216 KB |
testcase_14 | AC | 13 ms
8,136 KB |
testcase_15 | AC | 13 ms
8,264 KB |
testcase_16 | WA | - |
testcase_17 | AC | 13 ms
8,264 KB |
testcase_18 | WA | - |
ソースコード
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 L==R: if K*L%M != 0: say(0) if K*L%M >= K*R%M: res = 1 # print(res) say(res) main()