結果
問題 |
No.314 ケンケンパ
|
ユーザー |
![]() |
提出日時 | 2019-04-20 02:11:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 28,208 KB |
最終ジャッジ日時 | 2024-09-24 18:02:25 |
合計ジャッジ時間 | 4,413 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 16 |
ソースコード
import math N = int(input()) count = 0 cn = 1 for n2 in range(N//2+1): n3 = (N-2*n2)//3 cn = math.factorial(n2+n3) // (math.factorial(n2) * math.factorial(n3)) count += cn%(10**9+7) print(count%(10**9+7))