結果

問題 No.1556 Power Equality
ユーザー shobonvipshobonvip
提出日時 2023-01-23 04:02:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 442 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 167,400 KB
最終ジャッジ日時 2023-09-07 09:46:15
合計ジャッジ時間 2,109 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,456 KB
testcase_01 AC 65 ms
71,456 KB
testcase_02 AC 65 ms
71,416 KB
testcase_03 AC 90 ms
167,400 KB
testcase_04 AC 66 ms
71,284 KB
testcase_05 AC 63 ms
71,044 KB
testcase_06 AC 63 ms
71,216 KB
testcase_07 AC 64 ms
71,416 KB
testcase_08 AC 65 ms
71,296 KB
testcase_09 AC 62 ms
71,220 KB
testcase_10 AC 62 ms
71,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
if a == b:
	print("Yes")
	exit()

if min(a, b) <= 40 and a ** b == b ** a:
	print("Yes")
else:
	print("No")
0