結果

問題 No.53 悪の漸化式
ユーザー togari_takamoto
提出日時 2016-02-26 18:25:01
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 1,249 ms
コンパイル使用メモリ 159,916 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-22 13:58:32
合計ジャッジ時間 1,994 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i,n) for(ll i=0; i<(n); ++i)

int main() {
	cout << fixed << setprecision(10);
	ll n; cin >> n;

	ll p_3 = 1, p_4 = 1;
	REP(i, n) { p_3 *= 3; p_4 *= 4; }

	cout << p_3 * 4 / (double)p_4 << endl;

	return 0;
}
0