結果

問題 No.1556 Power Equality
ユーザー 👑 H20H20
提出日時 2021-06-27 16:34:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 72,344 KB
最終ジャッジ日時 2023-09-07 18:03:26
合計ジャッジ時間 2,042 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
72,072 KB
testcase_01 AC 88 ms
72,016 KB
testcase_02 AC 90 ms
72,040 KB
testcase_03 AC 89 ms
72,344 KB
testcase_04 AC 90 ms
72,096 KB
testcase_05 AC 89 ms
72,088 KB
testcase_06 AC 92 ms
72,060 KB
testcase_07 AC 90 ms
72,124 KB
testcase_08 AC 90 ms
71,952 KB
testcase_09 AC 90 ms
71,980 KB
testcase_10 AC 90 ms
72,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import random
A,B = map(int, input().split())
mod = random.randint(10**30, 10**31)
if pow(A,B,mod)==pow(B,A,mod):
    print('Yes')
else:
    print('No')
0