freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-205-dice-game.md

26 lines
646 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4391000cf542c50ff4c
title: 问题205骰子游戏
challengeType: 5
videoUrl: ''
---
# --description--
彼得有九个四面金字塔骰子每个骰子都有编号为1,2,3,4的面孔。科林有六个六面立方体骰子每个骰子都有编号为1,2,3,4,5,6的面孔。
彼得和科林掷骰子并比较总数:总得分最高。如果总数相等,结果是平局。
金字塔皮特击败立方科林的几率是多少将您的答案四舍五入到0.abcdefg形式的七位小数
# --hints--
`euler205()`应该返回0.5731441。
```js
assert.strictEqual(euler205(), 0.5731441);
```
# --solutions--