結果
| 問題 |
No.1408 Nice Dice Game
|
| コンテスト | |
| ユーザー |
publfl
|
| 提出日時 | 2021-02-26 21:53:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 281 bytes |
| コンパイル時間 | 135 ms |
| コンパイル使用メモリ | 31,744 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-10-02 14:33:40 |
| 合計ジャッジ時間 | 1,057 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 35 WA * 1 |
ソースコード
#include <stdio.h>
#define MAX (long long int)1e16
int main()
{
int a;
scanf("%d",&a);
double ans = 0;
for(int i=1;i<=100;i++)
{
long long int s = 1;
for(int j=1;j<=a+2;j++)
{
s*=i;
if(s>MAX) goto u;
}
ans += (double)1/s;
u:;
}
printf("%.12lf\n",ans);
}
publfl