結果

問題 No.1232 2^x = x
ユーザー tktk
提出日時 2022-04-28 21:34:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 76,524 KB
最終ジャッジ日時 2023-09-10 16:51:49
合計ジャッジ時間 1,312 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
for i in range(n):
    p = int(input())
    if p == 2:
        print(2)
        continue
    m = 2*(p - 1)*pow(p-1,p-2,p)
    print(m)
0