結果
| 問題 |
No.1408 Nice Dice Game
|
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2021-02-27 02:50:15 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 2,000 ms |
| コード長 | 277 bytes |
| コンパイル時間 | 1,959 ms |
| コンパイル使用メモリ | 191,316 KB |
| 最終ジャッジ日時 | 2025-01-19 07:39:38 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 36 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
int n;
cin >> n;
double ans = 0;
for (int i = 1; i < 1000000; i++)
{
ans += pow(i, -(n + 2));
}
cout << setprecision(17) << ans << endl;
return 0;
}
trineutron