結果
問題 | No.53 悪の漸化式 |
ユーザー |
|
提出日時 | 2020-08-22 08:15:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 5,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 1,087 ms |
コンパイル使用メモリ | 87,916 KB |
最終ジャッジ日時 | 2025-01-13 06:51:01 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream>#include <iomanip>#include <cmath>using ldouble = long double;void solve() {int n;std::cin >> n;std::cout << std::pow(3.L / 4, n) * 4 << "\n";}int main() {std::cin.tie(nullptr);std::ios::sync_with_stdio(false);std::cout << std::fixed << std::setprecision(20);solve();return 0;}