結果
問題 |
No.454 逆2乗和
|
ユーザー |
![]() |
提出日時 | 2017-04-18 17:13:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 1,606 ms |
コンパイル使用メモリ | 164,944 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 07:44:51 |
合計ジャッジ時間 | 2,390 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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("%.10f\n", ans); }