結果
| 問題 |
No.786 京都大学の過去問
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-28 17:56:46 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 392 bytes |
| コンパイル時間 | 9,874 ms |
| コンパイル使用メモリ | 167,300 KB |
| 実行使用メモリ | 184,128 KB |
| 最終ジャッジ日時 | 2024-10-06 11:42:05 |
| 合計ジャッジ時間 | 9,789 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 5 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (96 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
namespace yukicoder
{
public class Program
{
public static void Main()
{
var n = double.Parse(Console.ReadLine())+1;
var a = Math.Sqrt(5);
var fn = 1 / a * (Math.Pow((1 + a) / 2, n) - Math.Pow((1 - a) / 2, n));
Console.WriteLine(fn);
}
}
}