結果
| 問題 |
No.53 悪の漸化式
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-03-05 01:18:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 494 ms |
| コンパイル使用メモリ | 62,356 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-24 07:59:41 |
| 合計ジャッジ時間 | 1,117 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 WA * 4 |
ソースコード
#include <iostream>
#include <iomanip>
using namespace std;
long double a[110];
int main()
{
a[0]=4, a[1]=3;
for(int i=2;i<=100;++i) a[i]=(19*a[i-1]-12*a[i-2])*0.25;
int n;
while (cin>>n) cout<<setprecision(15)<<a[n]<<endl;
}
hogeover30