結果
問題 |
No.1224 I hate Sqrt Inequality
|
ユーザー |
![]() |
提出日時 | 2025-03-20 18:41:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 283 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 82,392 KB |
実行使用メモリ | 53,656 KB |
最終ジャッジ日時 | 2025-03-20 18:41:50 |
合計ジャッジ時間 | 1,536 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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")