結果
問題 | No.1408 Nice Dice Game |
ユーザー | 沙耶花 |
提出日時 | 2021-02-26 21:49:57 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 550 bytes |
コンパイル時間 | 4,538 ms |
コンパイル使用メモリ | 254,300 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-04-10 12:29:49 |
合計ジャッジ時間 | 69,728 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | AC | 1,469 ms
6,812 KB |
testcase_02 | AC | 1,463 ms
6,940 KB |
testcase_03 | AC | 1,469 ms
6,944 KB |
testcase_04 | AC | 1,463 ms
6,940 KB |
testcase_05 | AC | 1,471 ms
6,940 KB |
testcase_06 | AC | 1,464 ms
6,940 KB |
testcase_07 | AC | 1,468 ms
6,944 KB |
testcase_08 | AC | 1,462 ms
6,940 KB |
testcase_09 | AC | 1,466 ms
6,940 KB |
testcase_10 | AC | 1,466 ms
6,940 KB |
testcase_11 | AC | 1,470 ms
6,940 KB |
testcase_12 | AC | 1,465 ms
6,944 KB |
testcase_13 | AC | 1,472 ms
6,940 KB |
testcase_14 | AC | 1,468 ms
6,944 KB |
testcase_15 | AC | 1,464 ms
6,944 KB |
testcase_16 | AC | 1,466 ms
6,940 KB |
testcase_17 | AC | 1,464 ms
6,944 KB |
testcase_18 | AC | 1,458 ms
6,940 KB |
testcase_19 | AC | 1,464 ms
6,940 KB |
testcase_20 | AC | 1,445 ms
6,940 KB |
testcase_21 | AC | 1,464 ms
6,944 KB |
testcase_22 | AC | 1,464 ms
6,944 KB |
testcase_23 | AC | 1,467 ms
6,940 KB |
testcase_24 | AC | 1,464 ms
6,944 KB |
testcase_25 | AC | 1,464 ms
6,940 KB |
testcase_26 | TLE | - |
testcase_27 | TLE | - |
testcase_28 | TLE | - |
testcase_29 | TLE | - |
testcase_30 | TLE | - |
testcase_31 | TLE | - |
testcase_32 | TLE | - |
testcase_33 | TLE | - |
testcase_34 | TLE | - |
testcase_35 | TLE | - |
testcase_36 | TLE | - |
ソースコード
#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>5000000.0)break; for(double b=a+1.0;true;b+=1.0){ if(a*b>5000000.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; }