結果

問題 No.554 recurrence formula
コンテスト
ユーザー yamanchu3776
提出日時 2017-08-23 12:30:33
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 198 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 77,428 KB
最終ジャッジ日時 2025-12-04 00:31:54
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 10 RE * 1 TLE * 1 OLE * 2 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import math
num = int(raw_input())


sn = []
sn.append(0)
sn.append(1)
for i in range( num-1 ):
	i = i+2
	ss = i*sn[-1] + sn[-2]
	sn.append(ss)

an = sn[-1] - sn[-3]

print sn
print an%1000000007


0