結果

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

ソースコード

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 << ans << endl;
}
0