結果
問題 | No.44 DPなすごろく |
ユーザー |
|
提出日時 | 2023-09-18 16:45:27 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 46 ms / 5,000 ms |
コード長 | 149 bytes |
コンパイル時間 | 590 ms |
コンパイル使用メモリ | 81,664 KB |
実行使用メモリ | 59,008 KB |
最終ジャッジ日時 | 2024-07-05 07:02:19 |
合計ジャッジ時間 | 2,383 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
import mathN = int(input())ans = 0for i in range(N//2+1):ans += math.factorial(N-i)//(math.factorial(i) * math.factorial(N-2*i))print(ans)