結果
| 問題 |
No.3357 eの部分和 mod 素数
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-11-20 01:13:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 182 bytes |
| コンパイル時間 | 1,945 ms |
| コンパイル使用メモリ | 82,328 KB |
| 実行使用メモリ | 813,228 KB |
| 最終ジャッジ日時 | 2025-11-20 01:13:46 |
| 合計ジャッジ時間 | 6,493 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 MLE * 1 -- * 11 |
ソースコード
import sys
input = sys.stdin.readline
mod=int(input())
L=[1]
for i in range(1,mod):
L.append(L[-1]*i%mod)
ANS=0
for x in L:
ANS+=pow(x,mod-2,mod)
ANS%=mod
print(ANS)
titia