結果
| 問題 |
No.1466 I am not genius.
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2021-04-02 22:04:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 945 bytes |
| コンパイル時間 | 5,788 ms |
| コンパイル使用メモリ | 250,692 KB |
| 最終ジャッジ日時 | 2025-01-20 09:20:34 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 25 |
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using mint = modint;
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000001
double frac(int n){
double ret = 1.0;
for(int i=1;i<=n;i++)ret *= i;
return ret;
}
double X(int n){
if(n==0)return 0.0;
double ret = 0.0;
ret = pow(0.5,n);
ret *= 24.0;
ret *= frac(n*4);
ret /= frac(n*4-4);
ret *= 1123 + 12460.0 * n;
ret /= pow(882.0,n+1);
ret /= pow(49.0 / 22.0 * 396.0,n);
ret /= pow(pow(2.0,n*2)*frac(n),4.0);
return ret;
}
double Y(int n){
double ret = 0.0;
ret = frac(n*4);
ret *= (1103.0 + 26390.0*n);
ret /= pow(pow(22.0/49.0*882.0,n)*frac(n),4.0);
return ret;
}
int main(){
double x = 0.0;
cin>>x;
x *= sqrt(8.0 / pow(99.0,4.0));
double A = 0.0,B = 0.0;
rep(i,20){
A += X(i);
B += Y(i);
}
x *= A;
x *= B;
cout<<fixed<<setprecision(10)<<x<<endl;
return 0;
}
沙耶花