結果

問題 No.1556 Power Equality
ユーザー titan23titan23
提出日時 2022-07-03 04:30:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 471 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 71,652 KB
最終ジャッジ日時 2023-08-19 00:20:25
合計ジャッジ時間 2,250 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,396 KB
testcase_01 AC 70 ms
71,360 KB
testcase_02 AC 70 ms
71,464 KB
testcase_03 WA -
testcase_04 AC 70 ms
71,012 KB
testcase_05 AC 68 ms
71,316 KB
testcase_06 AC 67 ms
71,316 KB
testcase_07 AC 68 ms
71,360 KB
testcase_08 AC 66 ms
71,148 KB
testcase_09 AC 68 ms
71,416 KB
testcase_10 AC 66 ms
71,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
mod = 10**9 + 7
#  -----------------------  #

a, b = map(int, input().split())
print('Yes' if pow(a,b, mod) == pow(b,a, mod) else 'No')
0