結果
| 問題 |
No.454 逆2乗和
|
| コンテスト | |
| ユーザー |
square1001
|
| 提出日時 | 2017-03-07 18:33:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 20 ms / 2,000 ms |
| コード長 | 238 bytes |
| コンパイル時間 | 1,638 ms |
| コンパイル使用メモリ | 166,420 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 03:13:13 |
| 合計ジャッジ時間 | 3,347 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
long double x;
int main() {
scanf("%Lf", &x);
long double ret = 0.0;
for(int i = 1; i <= 10000000; i++) ret += 1.0L / ((x + i) * (x + i));
printf("%.12Lf\n", ret + 0.0000001);
return 0;
}
square1001