結果
| 問題 | No.454 逆2乗和 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-05 02:03:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 408 ms |
| コンパイル使用メモリ | 37,760 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 20:58:25 |
| 合計ジャッジ時間 | 2,171 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 31 |
ソースコード
#include <cstdio>
#include <cmath>
#define repeat_from(i,m,n) for (int i = (m); (i) < (n); ++(i))
int main() {
long double x; scanf("%Lf", &x);
long double y = 0;
repeat_from (n,1,1000000) y += pow(x+n, -2);
printf("%.12Lf\n", y);
return 0;
}