結果
問題 |
No.554 recurrence formula
|
ユーザー |
![]() |
提出日時 | 2017-08-23 12:36:48 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 167 bytes |
コンパイル時間 | 66 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 15,532 KB |
最終ジャッジ日時 | 2024-10-15 13:02:20 |
合計ジャッジ時間 | 4,191 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 TLE * 1 -- * 1 |
ソースコード
num = int(raw_input()) s1 = 0 s2 = 1 for i in range(num-1): i = i+2 ss = i*s2 + s1 s1 = s2 s2 = ss if num==1: print 1 else: an = num * s1 print an%1000000007