* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
		
			
				
	
	
		
			41 lines
		
	
	
		
			946 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			946 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| id: 5900f4f21000cf542c510004
 | |
| title: 'Problem 389: Platonic Dice'
 | |
| challengeType: 5
 | |
| forumTopicId: 302053
 | |
| dashedName: problem-389-platonic-dice
 | |
| ---
 | |
| 
 | |
| # --description--
 | |
| 
 | |
| An unbiased single 4-sided die is thrown and its value, T, is noted.T unbiased 6-sided dice are thrown and their scores are added together. The sum, C, is noted.C unbiased 8-sided dice are thrown and their scores are added together. The sum, O, is noted.O unbiased 12-sided dice are thrown and their scores are added together. The sum, D, is noted.D unbiased 20-sided dice are thrown and their scores are added together. The sum, I, is noted.
 | |
| 
 | |
| Find the variance of I, and give your answer rounded to 4 decimal places.
 | |
| 
 | |
| # --hints--
 | |
| 
 | |
| `euler389()` should return 2406376.3623.
 | |
| 
 | |
| ```js
 | |
| assert.strictEqual(euler389(), 2406376.3623);
 | |
| ```
 | |
| 
 | |
| # --seed--
 | |
| 
 | |
| ## --seed-contents--
 | |
| 
 | |
| ```js
 | |
| function euler389() {
 | |
| 
 | |
|   return true;
 | |
| }
 | |
| 
 | |
| euler389();
 | |
| ```
 | |
| 
 | |
| # --solutions--
 | |
| 
 | |
| ```js
 | |
| // solution required
 | |
| ```
 |