結果
| 問題 |
No.1408 Nice Dice Game
|
| コンテスト | |
| ユーザー |
googol_S0
|
| 提出日時 | 2021-02-26 23:02:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 346 bytes |
| コンパイル時間 | 349 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 76,288 KB |
| 最終ジャッジ日時 | 2024-10-02 15:50:28 |
| 合計ジャッジ時間 | 6,639 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=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)
googol_S0