結果
| 問題 |
No.1466 I am not genius.
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-02 22:04:56 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 287 bytes |
| コンパイル時間 | 705 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-12-23 19:35:40 |
| 合計ジャッジ時間 | 4,530 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 25 |
コンパイルメッセージ
Syntax OK
ソースコード
def fac(n)
[*1..n].reduce(1,:*)
end
N=10
X=(0...N).sum{|n|(-1)**n*24*(1123+21460*n)*(n>0 ? (4*n)*(4*n-1)*(4*n-2)*(4*n-3) : 0)/(882**(2*n+1)*(2**(2**n)*fac(n))**4).to_f}
Y=Math.sqrt(8)/99**2*(0...N).sum{|n|fac(4*n)*(1103+26390*n)/((396**n*fac(n))**4).to_f}
printf "%.16f\n",gets.to_f*X*Y