結果
| 問題 |
No.1224 I hate Sqrt Inequality
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:20:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 283 bytes |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 82,404 KB |
| 実行使用メモリ | 53,788 KB |
| 最終ジャッジ日時 | 2025-03-20 20:22:01 |
| 合計ジャッジ時間 | 1,459 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
import math
a, b = map(int, input().split())
g = math.gcd(a, b)
denominator = b // g
# Remove all factors of 2
while denominator % 2 == 0:
denominator //= 2
# Remove all factors of 5
while denominator % 5 == 0:
denominator //= 5
print("Yes" if denominator != 1 else "No")
lam6er