結果
問題 |
No.53 悪の漸化式
|
ユーザー |
![]() |
提出日時 | 2015-03-05 01:15:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 205 bytes |
コンパイル時間 | 438 ms |
コンパイル使用メモリ | 55,592 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 07:59:40 |
合計ジャッジ時間 | 1,344 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 12 |
ソースコード
#include <iostream> 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<<a[n]<<endl; }