結果
| 問題 |
No.1235 ζ関数
|
| ユーザー |
|
| 提出日時 | 2022-12-20 12:12:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 216 bytes |
| コンパイル時間 | 1,293 ms |
| コンパイル使用メモリ | 162,328 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-06-20 11:08:24 |
| 合計ジャッジ時間 | 1,984 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
double ans = 0;
cin >> n;
for(int i = 1; i <= 100000; i++){
ans += double(1) / pow(i, n);
}
printf("%.15lf\n", ans);
}