結果

問題 No.53 悪の漸化式
ユーザー soupesuteaka
提出日時 2014-10-31 00:07:05
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 662 bytes
コンパイル時間 702 ms
コンパイル使用メモリ 83,376 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-30 14:48:40
合計ジャッジ時間 1,503 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <cstdio>
#include <sstream>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <set>
#include <map>
#include <list>
#include <iomanip>

#define INF 1000000001
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define RFOR(i, a, b) for (int i = (a); i >= (b); i--)

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
const double PI = acos(-1.0);


int main()
{
	ios::sync_with_stdio(false);

	int n;
	cin >> n;
	double ans = 4.0*pow(3.0/4.0,n);
	cout << setprecision(15) << ans << endl;
}
0