結果
| 問題 |
No.1048 Zero (Advanced)
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2020-05-08 21:34:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 270 bytes |
| コンパイル時間 | 83 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-04 00:05:43 |
| 合計ジャッジ時間 | 1,225 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 WA * 3 |
ソースコード
import sys
input = sys.stdin.readline
L,R,M,K=map(int,input().split())
if R-L>=M-1:
print("Yes")
sys.exit()
L%=M
R%=M
if R<L:
L,R=R,L
if (R-L)*K>=M-1:
print("Yes")
sys.exit()
L*=K
R*=K
L%=M
R%=M
if R<=L:
print("Yes")
else:
print("No")
titia