結果

問題 No.554 recurrence formula
ユーザー kimiyukikimiyuki
提出日時 2017-08-11 22:30:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 136 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 18,440 KB
最終ジャッジ日時 2024-04-20 22:45:01
合計ジャッジ時間 4,535 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 28 ms
10,624 KB
testcase_02 AC 26 ms
10,496 KB
testcase_03 AC 24 ms
10,496 KB
testcase_04 AC 26 ms
10,624 KB
testcase_05 AC 30 ms
10,624 KB
testcase_06 AC 26 ms
10,624 KB
testcase_07 AC 26 ms
10,624 KB
testcase_08 AC 26 ms
10,624 KB
testcase_09 AC 27 ms
10,496 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 #

#!/usr/bin/env python3
n = int(input())
acc = [ 1, 0 ]
for i in range(2, n):
    acc[1 - i % 2] += i * acc[i % 2]
print(n * acc[n % 2])
0