結果
| 問題 |
No.44 DPなすごろく
|
| ユーザー |
bellangeldindon
|
| 提出日時 | 2019-04-25 09:13:55 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 5,000 ms |
| コード長 | 193 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2024-11-17 17:46:35 |
| 合計ジャッジ時間 | 1,467 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
N = int(raw_input()) sugoroku = [1] for i in range(0, N): sugoroku.append(0) for i in range(0, N): sugoroku[i+1] += sugoroku[i] if(i+2 <= N): sugoroku[i+2] += sugoroku[i] print sugoroku[N]
bellangeldindon