結果
| 問題 |
No.1224 I hate Sqrt Inequality
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-12 21:38:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 196 bytes |
| コンパイル時間 | 613 ms |
| コンパイル使用メモリ | 82,396 KB |
| 実行使用メモリ | 53,688 KB |
| 最終ジャッジ日時 | 2024-06-11 21:34:44 |
| 合計ジャッジ時間 | 1,825 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 WA * 3 |
ソースコード
import math
A, B = map(int, input().split())
A //= math.gcd(A, B)
B //= math.gcd(A, B)
while B % 2 == 0:
B //= 2
while B % 5 == 0:
B //= 5
if B == 1:
print("No")
else:
print("Yes")