結果

問題 No.1556 Power Equality
ユーザー titan23titan23
提出日時 2022-07-03 04:30:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 82,284 KB
実行使用メモリ 53,536 KB
最終ジャッジ日時 2024-11-28 12:17:58
合計ジャッジ時間 1,353 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8 WA * 1
権限があれば一括ダウンロードができます

ソースコード

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