結果
| 問題 |
No.1271 初めての級数
|
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-07-10 18:50:46 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 262 bytes |
| コンパイル時間 | 3,523 ms |
| コンパイル使用メモリ | 243,176 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-11 08:49:39 |
| 合計ジャッジ時間 | 3,209 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
signed main(){
int N;
cin>>N;
double ans = 0;
for(int i=1;i<1000000;i++) ans += 1.0/(i*(i+N));
cout<<fixed<<setprecision(12);
cout<<ans+0.0000001<<endl;
}
keisuke6