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