結果
問題 |
No.454 逆2乗和
|
ユーザー |
![]() |
提出日時 | 2017-04-18 17:14:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 1,410 ms |
コンパイル使用メモリ | 165,628 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-19 07:44:56 |
合計ジャッジ時間 | 2,441 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 12 WA * 19 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define rep(i,a,b) for(int i=a;i<b;i++) //----------------------------------------------------------------------------------- int main() { int x; cin >> x; double ans = 0; rep(i, 1, 1010101) ans += 1.0 / (x + i) / (x + i); ans += 1.0 / (x + 1010101); printf("%.20f\n", ans); }