結果
問題 |
No.454 逆2乗和
|
ユーザー |
![]() |
提出日時 | 2016-12-06 12:17:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 1,275 ms |
コンパイル使用メモリ | 166,100 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-28 01:57:20 |
合計ジャッジ時間 | 2,181 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 12 WA * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; using R=long double; int main(void){ int x; cin >> x; R ans=acos(-1.0)*acos(-1.0)/6.0; for(int i=x;i>=1;--i){ R cur=1.0/i/i; ans-=cur; } cout.precision(20); cout << fixed << ans << endl; return 0; }