結果

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

ソースコード

diff #

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

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

    cin >> a;

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