Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-139-pythagorean-tiles.chinese.md
Kristofer Koishigawa b3213fc892 fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite

Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.

* fix: ran script, updated testStrings and solutions
2020-03-03 18:49:47 +05:30

1.2 KiB
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f3f71000cf542c50ff0a 5 Problem 139: Pythagorean tiles 问题139毕达哥拉斯瓷砖

Description

abc表示具有整数长边的直角三角形的三个边。可以将四个这样的三角形放在一起以形成长度为c的正方形。例如3,4,5三角形可以放在一起形成一个5乘5的正方形中间有一个1个洞可以看到5乘5的正方形可以用二十五个平铺1个方格。

但是如果使用5,12,13三角形则孔将按7乘7测量并且这些不能用于平铺13乘13平方。鉴于直角三角形的周长小于一亿有多少毕达哥拉斯三角形允许这样的平铺

Instructions

Tests

tests:
  - text: <code>euler139()</code>应该返回10057761。
    testString: assert.strictEqual(euler139(), 10057761);

Challenge Seed

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

euler139();

Solution

// solution required