結果

問題 No.554 recurrence formula
ユーザー yamanchu3776yamanchu3776
提出日時 2017-08-23 12:34:48
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 138 bytes
コンパイル時間 595 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 17,384 KB
最終ジャッジ日時 2024-04-23 13:06:55
合計ジャッジ時間 4,295 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 10 ms
6,940 KB
testcase_02 AC 10 ms
6,940 KB
testcase_03 AC 10 ms
6,944 KB
testcase_04 AC 9 ms
6,944 KB
testcase_05 AC 10 ms
6,944 KB
testcase_06 AC 9 ms
6,944 KB
testcase_07 AC 11 ms
6,940 KB
testcase_08 AC 9 ms
6,940 KB
testcase_09 AC 9 ms
6,944 KB
testcase_10 AC 11 ms
6,940 KB
testcase_11 AC 18 ms
6,944 KB
testcase_12 AC 16 ms
6,940 KB
testcase_13 AC 37 ms
6,940 KB
testcase_14 AC 18 ms
6,944 KB
testcase_15 AC 41 ms
6,944 KB
testcase_16 AC 47 ms
6,940 KB
testcase_17 AC 28 ms
6,940 KB
testcase_18 AC 26 ms
6,940 KB
testcase_19 TLE -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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
0