1.2 KiB
1.2 KiB
id | challengeType | videoUrl | localeTitle |
---|---|---|---|
5900f3931000cf542c50fea6 | 5 | 问题39:整数直角三角形 |
Description
Instructions
Tests
tests:
- text: <code>intRightTriangles(500)</code>应该返回420。
testString: assert(intRightTriangles(500) == 420);
- text: <code>intRightTriangles(800)</code>应该返回420。
testString: assert(intRightTriangles(800) == 720);
- text: <code>intRightTriangles(900)</code>应该返回840。
testString: assert(intRightTriangles(900) == 840);
- text: <code>intRightTriangles(1000)</code>应该返回840。
testString: assert(intRightTriangles(1000) == 840);
Challenge Seed
function intRightTriangles(n) {
// Good luck!
return n;
}
intRightTriangles(1000);
Solution
// solution required
/section>