結果

問題 No.1556 Power Equality
ユーザー O2MTO2MT
提出日時 2021-06-25 23:36:17
言語 PyPy3
(7.3.13)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 122 bytes
コンパイル時間 1,139 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 71,456 KB
最終ジャッジ日時 2023-09-07 15:54:31
合計ジャッジ時間 2,509 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,456 KB
testcase_01 AC 72 ms
71,416 KB
testcase_02 AC 72 ms
71,224 KB
testcase_03 WA -
testcase_04 AC 71 ms
71,304 KB
testcase_05 AC 70 ms
71,216 KB
testcase_06 AC 71 ms
71,416 KB
testcase_07 AC 71 ms
71,300 KB
testcase_08 AC 69 ms
71,264 KB
testcase_09 AC 72 ms
71,248 KB
testcase_10 AC 71 ms
71,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int,input().split())
MOD = 10**9+7
flg = pow(A,B,MOD) == pow(B,A,MOD)
if flg:
  print('Yes')
else:
  print('No')
0