結果

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

ソースコード

diff #

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

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

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