結果
| 問題 |
No.1723 [Cherry 3rd Tune *] Dead on
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-29 21:57:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 546 bytes |
| コンパイル時間 | 458 ms |
| コンパイル使用メモリ | 81,780 KB |
| 実行使用メモリ | 59,520 KB |
| 最終ジャッジ日時 | 2024-10-07 11:08:38 |
| 合計ジャッジ時間 | 4,135 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 46 WA * 4 |
ソースコード
from sys import exit
from collections import defaultdict
def Prime_factorization(x):
result=defaultdict(int)
result[1]=1
if x==1:
return result
i=2
while(i**2<=x):
tmp=0
while(x%i==0):
tmp+=1
x//=i
if tmp>0:
result[i]=tmp
i+=1
if x>1:
result[x]=1
return result
x,a,y,b=map(int,input().split())
X=Prime_factorization(x)
Y=Prime_factorization(y)
for q,i in Y.items():
if X[q]*a<i*b:
print("No")
exit()
print("Yes")