結果
問題 | No.454 逆2乗和 |
ユーザー |
|
提出日時 | 2016-12-05 02:05:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 313 bytes |
コンパイル時間 | 907 ms |
コンパイル使用メモリ | 73,296 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-27 20:58:48 |
合計ジャッジ時間 | 3,105 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 31 |
ソースコード
#include <iostream> #include <iomanip> #include <cmath> #define repeat_from(i,m,n) for (int i = (m); (i) < (n); ++(i)) using namespace std; int main() { long double x; cin >> x; long double y = 0; repeat_from (n,1,1000000) y += pow(x+n, -2); cout << setprecision(12) << y << endl; return 0; }