結果

問題 No.53 悪の漸化式
ユーザー k
提出日時 2021-04-19 05:04:30
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 1,920 ms
コンパイル使用メモリ 193,132 KB
最終ジャッジ日時 2025-01-20 22:01:57
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);

  int n;
  cin >> n;
  double ret = 4 * pow(3.0/4, n);
  cout << fixed << setprecision(15) << ret << endl;
  
  return 0;
}
0