結果

問題 No.1556 Power Equality
ユーザー rlangevin
提出日時 2023-07-29 19:05:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 713 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-10-08 06:33:39
合計ジャッジ時間 1,451 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())
if A <= 100 and B <= 100:
    print("Yes") if A ** B == B ** A else print("No")
else:
    print("Yes") if A == B else print("No")
0