結果
| 問題 | No.454 逆2乗和 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-30 07:10:39 |
| 言語 | Nim (2.2.8) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 337 bytes |
| 記録 | |
| コンパイル時間 | 2,543 ms |
| コンパイル使用メモリ | 70,848 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-22 10:55:18 |
| 合計ジャッジ時間 | 3,459 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 11 WA * 20 |
ソースコード
import sequtils,strutils,math template times*(n:int,body) = (for _ in 0..<n: body) template `max=`*(x,y) = x = max(x,y) template `min=`*(x,y) = x = min(x,y) let x = stdin.readLine().parseFloat() var ans = 0.0 for i in 720000.countdown(1): let n = i.float ans += x * (x + 2.0 * n) / (n * n * (x + n) * (x + n)) echo PI * PI / 6 - ans