結果

問題 No.44 DPなすごろく
ユーザー yuyyuyuyuyyuyu
提出日時 2015-08-04 15:39:07
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 98 bytes
コンパイル時間 434 ms
コンパイル使用メモリ 77,540 KB
実行使用メモリ 76,756 KB
最終ジャッジ日時 2023-09-25 01:03:30
合計ジャッジ時間 3,377 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
76,508 KB
testcase_01 AC 75 ms
76,704 KB
testcase_02 AC 74 ms
76,268 KB
testcase_03 AC 74 ms
76,584 KB
testcase_04 AC 75 ms
76,144 KB
testcase_05 AC 76 ms
76,144 KB
testcase_06 AC 75 ms
76,456 KB
testcase_07 AC 74 ms
76,156 KB
testcase_08 AC 76 ms
76,560 KB
testcase_09 AC 75 ms
76,252 KB
testcase_10 AC 73 ms
76,232 KB
testcase_11 AC 75 ms
76,580 KB
testcase_12 AC 75 ms
76,428 KB
testcase_13 AC 75 ms
76,756 KB
testcase_14 AC 74 ms
76,464 KB
testcase_15 AC 76 ms
76,416 KB
testcase_16 AC 75 ms
76,752 KB
testcase_17 AC 74 ms
76,480 KB
testcase_18 AC 74 ms
76,264 KB
testcase_19 AC 74 ms
76,492 KB
testcase_20 AC 74 ms
76,448 KB
testcase_21 AC 74 ms
76,352 KB
testcase_22 AC 74 ms
76,456 KB
testcase_23 AC 74 ms
76,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

dp=[0]*60
dp[0]=1
N=input()
for i in xrange(N):
    dp[i+1]+=dp[i]
    dp[i+2]+=dp[i]
print(dp[N])
0