結果

問題 No.1180 無限和
ユーザー Re_menal2
提出日時 2020-10-20 10:59:32
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 1,124 ms
コンパイル使用メモリ 66,944 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-21 08:18:38
合計ジャッジ時間 1,960 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 2 WA * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#include <iostream>
#include <cmath>

using namespace std;
int main()
{
    double ans;
    double a;
    double cons;

    cin >> a;

    cons = (pow(M_PI, 2.0))/6;
    ans = (1/a)*pow(cons, a);
    cout << ans << endl;
}
0