結果
問題 |
No.1235 ζ関数
|
ユーザー |
|
提出日時 | 2020-09-22 15:45:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 257 bytes |
コンパイル時間 | 667 ms |
コンパイル使用メモリ | 66,816 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-06-20 10:41:29 |
合計ジャッジ時間 | 1,251 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#include <cmath> #include <cstdio> #include <iostream> using namespace std; int main() { double N; cin >> N; double ans = 0; for (double i = 1.0; i <= 6.0; i++) { ans += 1.0 / pow(i, N); } printf("%.7f", ans); }