結果

問題 No.53 悪の漸化式
ユーザー srup٩(๑`н´๑)۶
提出日時 2016-08-11 18:30:49
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 328 bytes
コンパイル時間 498 ms
コンパイル使用メモリ 65,496 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 10:59:33
合計ジャッジ時間 1,346 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <queue>
#include <cmath>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)

int main(void){
	double n; cin >> n;
	double ans = 4 * pow(3.0 / 4.0, n);
	// cout << ans << endl;
	printf("%.10f\n", ans);
	return 0;
}
0