結果
問題 |
No.554 recurrence formula
|
ユーザー |
![]() |
提出日時 | 2017-08-23 12:34:48 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 138 bytes |
コンパイル時間 | 306 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 15,408 KB |
最終ジャッジ日時 | 2024-10-15 13:02:10 |
合計ジャッジ時間 | 4,193 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 1 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 an = num * s1 print an%1000000007