結果
| 問題 | No.44 DPなすごろく |
| ユーザー |
かりあげクン
|
| 提出日時 | 2020-08-24 21:33:03 |
| 言語 | Nim (2.2.8) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 155 bytes |
| 記録 | |
| コンパイル時間 | 3,209 ms |
| コンパイル使用メモリ | 66,236 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2026-05-06 14:45:08 |
| 合計ジャッジ時間 | 12,743 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 TLE * 1 |
| other | AC * 20 |
ソースコード
import strutils
var N = stdin.readLine.parseInt
proc fib(n: int): int =
if n < 2:
return n
else:
return fib(n - 1) + fib(n - 2)
echo(fib(N+1))
かりあげクン