結果
問題 | No.454 逆2乗和 |
ユーザー |
![]() |
提出日時 | 2016-12-05 01:00:21 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 2,611 ms |
コンパイル使用メモリ | 66,816 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 20:57:44 |
合計ジャッジ時間 | 3,752 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 31 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import strutils, sequtils when isMainModule: var x = stdin.readline.parsefloat ans = 0.0 let p = 1.6449340668482426 for i in 1..1000000: ans -= x*(2*i.float+x) / (i.float*i.float*(i.float+x)*(i.float+x)) echo ans + p