結果
| 問題 | No.454 逆2乗和 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-30 07:09:57 |
| 言語 | Nim (2.2.12 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 16 ms / 2,000 ms |
| + 131µs | |
| コード長 | 339 bytes |
| 記録 | |
| コンパイル時間 | 2,472 ms |
| コンパイル使用メモリ | 73,084 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-17 07:01:18 |
| 合計ジャッジ時間 | 4,922 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
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 10000000.countdown(1): let n = i.float ans += x * (x + 2.0 * n) / (n * n * (x + n) * (x + n)) echo PI * PI / 6 - ans