結果
問題 |
No.1723 [Cherry 3rd Tune *] Dead on
|
ユーザー |
|
提出日時 | 2021-10-29 21:55:30 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 427 bytes |
コンパイル時間 | 231 ms |
コンパイル使用メモリ | 82,496 KB |
実行使用メモリ | 58,880 KB |
最終ジャッジ日時 | 2024-10-07 11:05:32 |
合計ジャッジ時間 | 4,428 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 WA * 6 |
ソースコード
x,a,y,b = map(int,input().split()) dx = {} dy = {} for i in range(2,int(x**0.5)+1): if x%i: continue c = 0 while x%i == 0: c += 1 x //= i dx[i] = c for i in range(2,int(y**0.5)+1): if y%i: continue c = 0 while y%i == 0: c += 1 y //= i dy[i] = c for k,v in dy.items(): if dx.get(k,0)*a < v*b: print("No") exit() print("Yes")