結果
問題 | No.1048 Zero (Advanced) |
ユーザー | kit84 |
提出日時 | 2020-05-08 23:11:34 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 694 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 10,772 KB |
実行使用メモリ | 8,288 KB |
最終ジャッジ日時 | 2023-09-17 03:26:16 |
合計ジャッジ時間 | 1,062 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 13 ms
8,224 KB |
testcase_01 | AC | 13 ms
8,236 KB |
testcase_02 | AC | 14 ms
8,132 KB |
testcase_03 | AC | 12 ms
8,116 KB |
testcase_04 | AC | 13 ms
8,260 KB |
testcase_05 | AC | 13 ms
8,288 KB |
testcase_06 | AC | 12 ms
8,288 KB |
testcase_07 | AC | 12 ms
8,268 KB |
testcase_08 | AC | 13 ms
8,144 KB |
testcase_09 | AC | 13 ms
8,116 KB |
testcase_10 | AC | 13 ms
8,072 KB |
testcase_11 | AC | 12 ms
8,140 KB |
testcase_12 | AC | 14 ms
8,260 KB |
testcase_13 | AC | 12 ms
8,276 KB |
testcase_14 | AC | 13 ms
8,120 KB |
testcase_15 | AC | 13 ms
8,168 KB |
testcase_16 | AC | 13 ms
8,168 KB |
testcase_17 | AC | 13 ms
8,220 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*L==0: say(1) if M==1: say(1) if (R-L)*K >= M: say(1) if L==R: if K*L%M != 0: say(0) else: say(1) if K*L%M > K*R%M: res = 1 # print(res) say(res) main()