結果
| 問題 |
No.1232 2^x = x
|
| コンテスト | |
| ユーザー |
tk
|
| 提出日時 | 2022-04-28 21:34:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 151 bytes |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 64,512 KB |
| 最終ジャッジ日時 | 2024-06-28 07:57:18 |
| 合計ジャッジ時間 | 1,023 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 3 |
ソースコード
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)
tk