結果
問題 |
No.554 recurrence formula
|
ユーザー |
|
提出日時 | 2017-08-22 03:39:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 207 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,700 KB |
最終ジャッジ日時 | 2024-10-15 00:59:01 |
合計ジャッジ時間 | 3,999 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 TLE * 1 -- * 10 |
ソースコード
n=int(input()) def f(x): if x==1:return 1 if x%2==0:return x*(sum([f(y) for y in range(1,x,2)]))%(10**9+7) else:return x*(sum([f(y) for y in range(2,x,2)]))%(10**9+7) print(f(n)%(10**9+7))