結果
| 問題 | No.1224 I hate Sqrt Inequality |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 18:41:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 2,000 ms |
| コード長 | 283 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 96,492 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-07-07 07:19:47 |
| 合計ジャッジ時間 | 2,395 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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