結果
| 問題 |
No.44 DPなすごろく
|
| ユーザー |
AreTrash
|
| 提出日時 | 2016-09-05 07:17:25 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 5,000 ms |
| コード長 | 1,439 bytes |
| コンパイル時間 | 3,789 ms |
| コンパイル使用メモリ | 107,668 KB |
| 実行使用メモリ | 26,016 KB |
| 最終ジャッジ日時 | 2024-11-15 20:21:26 |
| 合計ジャッジ時間 | 4,664 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace No44{
public class Program{
public static void Main(string[] args){
var res = new[]{
1,
1,
2,
3,
5,
8,
13,
21,
34,
55,
89,
144,
233,
377,
610,
987,
1597,
2584,
4181,
6765,
10946,
17711,
28657,
46368,
75025,
121393,
196418,
317811,
514229,
832040,
1346269,
2178309,
3524578,
5702887,
9227465,
14930352,
24157817,
39088169,
63245986,
102334155,
165580141,
267914296,
433494437,
701408733,
1134903170,
1836311903,
2971215073,
4807526976,
7778742049,
12586269025,
20365011074,
};
Console.WriteLine(res[int.Parse(Console.ReadLine())]);
}
}
}
AreTrash