freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-73-counting-fractio...

1.8 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f3b61000cf542c50fec8 5 Problem 73: Counting fractions in a range 问题73计算范围内的分数

Description

考虑分数n / d其中n和d是正整数。如果是

说明

测试

 tests: - text: <code>euler73()</code> should return 7295372. testString: 'assert.strictEqual(euler73(), 7295372, "<code>euler73()</code> should return 7295372.");' 

挑战种子

 function euler73() { // Good luck! return true; } euler73(); 

 // solution required 

Instructions

Tests

tests:
  - text: <code>euler73()</code>应该返回7295372。
    testString: 'assert.strictEqual(euler73(), 7295372, "<code>euler73()</code> should return 7295372.");'

Challenge Seed

function euler73() {
  // Good luck!
  return true;
}

euler73();

Solution

// solution required