結果
| 問題 | No.454 逆2乗和 |
| コンテスト | |
| ユーザー |
🐬hec
|
| 提出日時 | 2016-12-06 12:17:33 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 998 ms |
| コンパイル使用メモリ | 179,772 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-22 05:46:31 |
| 合計ジャッジ時間 | 2,254 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
🐬hec