結果

問題 No.1408 Nice Dice Game
ユーザー 沙耶花沙耶花
提出日時 2021-02-26 21:56:33
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 549 bytes
コンパイル時間 4,545 ms
コンパイル使用メモリ 253,776 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-10 12:37:46
合計ジャッジ時間 16,887 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 262 ms
6,944 KB
testcase_02 AC 262 ms
6,940 KB
testcase_03 AC 261 ms
6,944 KB
testcase_04 AC 261 ms
6,940 KB
testcase_05 AC 261 ms
6,944 KB
testcase_06 AC 263 ms
6,940 KB
testcase_07 AC 261 ms
6,940 KB
testcase_08 AC 262 ms
6,940 KB
testcase_09 AC 262 ms
6,944 KB
testcase_10 AC 262 ms
6,940 KB
testcase_11 AC 262 ms
6,940 KB
testcase_12 AC 261 ms
6,940 KB
testcase_13 AC 262 ms
6,944 KB
testcase_14 AC 261 ms
6,944 KB
testcase_15 AC 262 ms
6,940 KB
testcase_16 AC 261 ms
6,940 KB
testcase_17 AC 261 ms
6,944 KB
testcase_18 AC 263 ms
6,940 KB
testcase_19 AC 260 ms
6,940 KB
testcase_20 AC 262 ms
6,944 KB
testcase_21 AC 261 ms
6,940 KB
testcase_22 AC 261 ms
6,944 KB
testcase_23 AC 262 ms
6,940 KB
testcase_24 AC 262 ms
6,940 KB
testcase_25 AC 261 ms
6,940 KB
testcase_26 AC 432 ms
6,940 KB
testcase_27 WA -
testcase_28 AC 361 ms
6,944 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 362 ms
6,944 KB
testcase_32 AC 373 ms
6,940 KB
testcase_33 WA -
testcase_34 AC 445 ms
6,940 KB
testcase_35 WA -
testcase_36 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;
using namespace atcoder;
using mint = modint1000000007;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000001


int main(){
	
	int N;
	cin>>N;
	
	double ans = 0.0;
	
	for(double a=1.0;true;a+=1.0){
		if(a>200000.0)break;
		for(double b=a+1.0;true;b+=1.0){
			if(a*b>1000000.0)break;
			double temp = pow(1.0/a,N) - pow(1.0/b,N);
			temp /= b;
			temp /= b-a;
			ans += temp;
		}
	}
	
	cout<<fixed<<setprecision(10)<<ans<<endl;
	
    return 0;
}
0