結果

問題 No.554 recurrence formula
ユーザー matriematrie
提出日時 2020-12-30 23:48:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 80 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 16,980 KB
最終ジャッジ日時 2024-04-17 00:17:40
合計ジャッジ時間 4,531 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 29 ms
10,624 KB
testcase_03 AC 31 ms
10,624 KB
testcase_04 AC 30 ms
10,624 KB
testcase_05 AC 31 ms
10,624 KB
testcase_06 AC 29 ms
10,624 KB
testcase_07 AC 29 ms
10,752 KB
testcase_08 AC 30 ms
10,624 KB
testcase_09 AC 29 ms
10,624 KB
testcase_10 WA -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 TLE -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=[0,1]
for i in range(2,n): x[i%2]+=i*x[1-i%2]
print(n*x[1-n%2])
0