結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,032 KB
testcase_01 AC 93 ms
75,940 KB
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 = (p - 1)*(p + pow(p-1,p-2,p))
    print(m)
0