結果
| 問題 |
No.53 悪の漸化式
|
| コンテスト | |
| ユーザー |
beet
|
| 提出日時 | 2018-11-15 14:53:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 529 bytes |
| コンパイル時間 | 1,670 ms |
| コンパイル使用メモリ | 195,972 KB |
| 最終ジャッジ日時 | 2025-01-06 16:41:11 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 6 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using Int = long long;
template<typename T1,typename T2> inline void chmin(T1 &a,T2 b){if(a>b) a=b;}
template<typename T1,typename T2> inline void chmax(T1 &a,T2 b){if(a<b) a=b;}
struct Precision{
Precision(){
cout<<fixed<<setprecision(12);
}
}precision_beet;
//INSERT ABOVE HERE
signed main(){
vector<double> a({4.0,3.0});
Int n;
cin>>n;
for(Int i=0;i<n;i++){
double x=(-12*a[i]+19*a[i+1])/4.0;
a.emplace_back(x);
}
cout<<a[n]<<endl;
return 0;
}
beet