結果

問題 No.1556 Power Equality
ユーザー Super SolenoidSuper Solenoid
提出日時 2021-07-03 23:07:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 71,892 KB
最終ジャッジ日時 2023-09-13 04:59:00
合計ジャッジ時間 2,013 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,724 KB
testcase_01 AC 69 ms
71,688 KB
testcase_02 AC 69 ms
71,892 KB
testcase_03 AC 71 ms
71,824 KB
testcase_04 AC 69 ms
71,564 KB
testcase_05 AC 71 ms
71,800 KB
testcase_06 AC 70 ms
71,592 KB
testcase_07 AC 71 ms
71,884 KB
testcase_08 AC 68 ms
71,604 KB
testcase_09 AC 70 ms
71,208 KB
testcase_10 AC 69 ms
71,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = (int(x) for x in input().split())
if B > A:
    A, B = B, A

if pow(A,B/A)==B:
    print('Yes')
else:
    print('No')
0