結果

問題 No.44 DPなすごろく
ユーザー noriocnorioc
提出日時 2023-12-02 00:14:42
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 135 bytes
コンパイル時間 354 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 77,608 KB
最終ジャッジ日時 2023-12-02 00:14:53
合計ジャッジ時間 10,885 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 1,656 ms
77,608 KB
testcase_03 AC 108 ms
74,684 KB
testcase_04 AC 36 ms
53,460 KB
testcase_05 AC 301 ms
75,036 KB
testcase_06 AC 39 ms
58,712 KB
testcase_07 AC 57 ms
69,616 KB
testcase_08 AC 74 ms
74,764 KB
testcase_09 AC 36 ms
53,460 KB
testcase_10 AC 279 ms
75,036 KB
testcase_11 AC 56 ms
69,640 KB
testcase_12 AC 67 ms
74,680 KB
testcase_13 AC 47 ms
63,428 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def fib(n):
    if n == 1: return 1
    if n == 2: return 2
    return fib(n-1) + fib(n-2)


N = int(input())
ans = fib(N)
print(ans)
0