結果
| 問題 | No.1232 2^x = x |
| コンテスト | |
| ユーザー |
tk
|
| 提出日時 | 2022-04-28 15:21:51 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 149 bytes |
| 記録 | |
| コンパイル時間 | 370 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 65,148 KB |
| 最終ジャッジ日時 | 2026-03-16 19:43:30 |
| 合計ジャッジ時間 | 1,432 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
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)
tk