結果

問題 No.53 悪の漸化式
ユーザー srjywrdnprkt
提出日時 2022-12-20 02:55:16
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 411 bytes
コンパイル時間 1,263 ms
コンパイル使用メモリ 142,692 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-18 01:44:05
合計ジャッジ時間 1,681 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <cmath>
#include <map>
#include <set>
#include <iomanip>
#include <queue>
#include <algorithm>
#include <numeric>
#include <deque>
#include <complex>

using namespace std;

int main(){

    int N;
    cin >> N;
    long double A=4;
    for (int i=0; i<N; i++){
        A *= 3.l;
        A /= 4.l;
    }

    cout << setprecision(18) << A << endl;

    return 0;
}
0