結果

問題 No.53 悪の漸化式
ユーザー ioryyyyzioryyyyz
提出日時 2015-07-24 08:46:40
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 349 bytes
コンパイル時間 1,010 ms
コンパイル使用メモリ 6,664 KB
実行使用メモリ 6,472 KB
最終ジャッジ日時 2023-09-22 22:06:31
合計ジャッジ時間 2,098 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,104 KB
testcase_01 AC 11 ms
6,024 KB
testcase_02 AC 11 ms
6,144 KB
testcase_03 AC 11 ms
6,348 KB
testcase_04 AC 11 ms
6,364 KB
testcase_05 AC 11 ms
6,360 KB
testcase_06 AC 12 ms
6,316 KB
testcase_07 AC 12 ms
6,412 KB
testcase_08 AC 11 ms
6,324 KB
testcase_09 AC 11 ms
6,448 KB
testcase_10 AC 11 ms
6,424 KB
testcase_11 AC 11 ms
6,472 KB
testcase_12 AC 12 ms
6,372 KB
testcase_13 AC 12 ms
6,472 KB
testcase_14 AC 11 ms
6,468 KB
testcase_15 AC 12 ms
6,324 KB
testcase_16 AC 12 ms
6,472 KB
testcase_17 AC 11 ms
6,412 KB
testcase_18 AC 11 ms
6,456 KB
testcase_19 AC 12 ms
6,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
# -*- coding:utf-8 -*-

def main():
    # a = list(range(1000))
    # a[0] = 4.0
    # a[1] =  3.0;
    # for i in range(2, 10):
    #     a[i] = (19 * a[i-1] - 12 * a[i-2]) / 4.0
    #     print(a[i], 4.0 * (3.0 / 4.0) ** i)
    N = input()
    print("%.20f" % (4.0 * (3.0 / 4.0) ** N))

if __name__ == "__main__":
    main()
0