結果

問題 No.53 悪の漸化式
ユーザー btk
提出日時 2015-05-23 11:55:28
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 215 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 54,084 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-06 06:07:59
合計ジャッジ時間 912 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<stdio.h>
using namespace std;
const double eps=1e-15;
int main(){
	double num[101]={4.0,3.0};
	int n;cin>>n;
	for(int i=2;i<=n;i++)
		num[i]=num[i-1]*(0.75);
	printf("%.14f\n",num[n]);
}
0