結果
| 問題 |
No.3357 eの部分和 mod 素数
|
| コンテスト | |
| ユーザー |
ゼット
|
| 提出日時 | 2025-11-14 21:33:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 82,628 KB |
| 実行使用メモリ | 840,988 KB |
| 最終ジャッジ日時 | 2025-11-14 21:34:34 |
| 合計ジャッジ時間 | 22,129 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 MLE * 12 |
ソースコード
mod=int(input())
N=mod
c=1
u2=[1]*(N)
for i in range(1,N):
c*=i
c%=mod
c=pow(c,-1,mod)
result=c
for i in range(N-2,0,-1):
c*=i+1
c%=mod
result+=c
result%=mod
result+=1
result%=mod
print(result)
ゼット