結果

問題 No.1539 不可欠な部分
ユーザー ytftytft
提出日時 2021-08-14 19:35:39
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 491 ms / 2,000 ms
コード長 330 bytes
コンパイル時間 1,741 ms
コンパイル使用メモリ 163,456 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-15 17:17:23
合計ジャッジ時間 27,481 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,820 KB
testcase_01 AC 391 ms
6,940 KB
testcase_02 AC 468 ms
6,944 KB
testcase_03 AC 209 ms
6,940 KB
testcase_04 AC 179 ms
6,940 KB
testcase_05 AC 138 ms
6,940 KB
testcase_06 AC 233 ms
6,940 KB
testcase_07 AC 60 ms
6,944 KB
testcase_08 AC 128 ms
6,944 KB
testcase_09 AC 404 ms
6,940 KB
testcase_10 AC 418 ms
6,944 KB
testcase_11 AC 476 ms
6,940 KB
testcase_12 AC 484 ms
6,944 KB
testcase_13 AC 484 ms
6,944 KB
testcase_14 AC 481 ms
6,940 KB
testcase_15 AC 490 ms
6,940 KB
testcase_16 AC 467 ms
6,940 KB
testcase_17 AC 443 ms
6,940 KB
testcase_18 AC 491 ms
6,944 KB
testcase_19 AC 472 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    int T;
    cin>>T;
    for(int i=0;i<T;i++){
        double N;
        cin>>N;
        double e=exp(1);
        double π=asin(1)*2;
        double a=1/e/π/π/N;
        printf("%.10f", N*e*(a-a*a*a/6+a*a*a*a*a/30-31*pow(a,7)/5040));
        cout<<endl;
    }
    
}
0