結果
問題 | No.1408 Nice Dice Game |
ユーザー |
![]() |
提出日時 | 2021-02-26 23:03:04 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 275 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 76,160 KB |
最終ジャッジ日時 | 2024-10-02 15:51:52 |
合計ジャッジ時間 | 6,937 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | WA * 35 RE * 1 |
ソースコード
N=int(input()) if N<=3: assert(0) if N==1: print(1.2020569031595942853997381615114499907649862923404988817922715553) elif N==2: print(1.0823232337111381915160036965411679027747509519187269076829762154) elif N==3: print(1.036927755) else: ANS=0 for a in range(1,101): for b in range(a+1,10001): ANS+=(pow(1/a,N)-pow(1/b,N))/(b*(b-a)) print(ANS)