結果
| 問題 | No.1408 Nice Dice Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-26 22:04:42 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 179 ms / 2,000 ms |
| + 537µs | |
| コード長 | 339 bytes |
| 記録 | |
| コンパイル時間 | 858 ms |
| コンパイル使用メモリ | 179,076 KB |
| 実行使用メモリ | 7,980 KB |
| 最終ジャッジ日時 | 2026-09-09 01:25:43 |
| 合計ジャッジ時間 | 7,603 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 36 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int main(){
cin.tie(0);
ios::sync_with_stdio(0);
double N; cin >> N;
double ans = 0;
for(int i = 1; i < 1e7; i++){
ans += 1/pow(i, N + 2);
}
cout.precision(17);
cout << ans << endl;
}