結果

問題 No.53 悪の漸化式
ユーザー titiatitia
提出日時 2021-12-11 00:27:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 9,088 KB
最終ジャッジ日時 2023-09-26 01:47:17
合計ジャッジ時間 1,728 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
8,884 KB
testcase_01 AC 22 ms
9,044 KB
testcase_02 AC 20 ms
8,960 KB
testcase_03 AC 20 ms
8,948 KB
testcase_04 AC 21 ms
9,064 KB
testcase_05 AC 21 ms
8,748 KB
testcase_06 AC 20 ms
8,956 KB
testcase_07 AC 20 ms
8,972 KB
testcase_08 AC 20 ms
8,960 KB
testcase_09 AC 20 ms
8,912 KB
testcase_10 AC 21 ms
9,088 KB
testcase_11 AC 20 ms
8,960 KB
testcase_12 AC 20 ms
8,828 KB
testcase_13 AC 20 ms
8,960 KB
testcase_14 AC 20 ms
9,008 KB
testcase_15 AC 21 ms
8,884 KB
testcase_16 AC 20 ms
8,960 KB
testcase_17 AC 21 ms
8,916 KB
testcase_18 AC 20 ms
8,836 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
getcontext().prec = 50

A=[Decimal(4),Decimal(3)]

for i in range(100):
    A.append((19*A[-1]-12*A[-2])/4)
    

N=int(input())
print(A[N])
0