結果
問題 | No.454 逆2乗和 |
ユーザー |
![]() |
提出日時 | 2017-04-18 17:08:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 1,440 ms |
コンパイル使用メモリ | 164,880 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-19 07:44:24 |
合計ジャッジ時間 | 8,374 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 3 |
other | TLE * 26 -- * 5 |
ソースコード
#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, 1010101010) ans += 1.0 / (x + i) / (x + i); printf("%.10f\n", ans); }