結果
問題 | No.1232 2^x = x |
ユーザー | tk |
提出日時 | 2022-04-28 15:21:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 95 ms / 2,000 ms |
コード長 | 149 bytes |
コンパイル時間 | 360 ms |
コンパイル使用メモリ | 87,136 KB |
実行使用メモリ | 76,292 KB |
最終ジャッジ日時 | 2023-09-10 16:50:16 |
合計ジャッジ時間 | 1,574 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,540 KB |
testcase_01 | AC | 93 ms
75,892 KB |
testcase_02 | AC | 95 ms
76,188 KB |
testcase_03 | AC | 94 ms
76,292 KB |
ソースコード
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)