結果

問題 No.1232 2^x = x
ユーザー tk
提出日時 2022-04-28 15:21:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 81,960 KB
実行使用メモリ 64,880 KB
最終ジャッジ日時 2024-06-28 07:55:58
合計ジャッジ時間 1,113 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

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