From e55fa78b9154d0fcf4721da4d3c9730e71c36224 Mon Sep 17 00:00:00 2001 From: fudanchii Date: Tue, 20 Nov 2018 16:06:30 +0900 Subject: [PATCH] Fix readme, in accordance to the updated tests This is as described in https://github.com/exercism/problem-specifications/pull/1395 The current README will really confuse non math-savvy students, as it asked to find `a*b*c`, while the tests actually check for the triplets. Change it to asks for the triplet explicitly. Give the answer for N = 1000 as it's also spoiled in the test file ;) --- exercises/pythagorean-triplet/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/pythagorean-triplet/README.md b/exercises/pythagorean-triplet/README.md index d52237d0e..d1e9926b2 100644 --- a/exercises/pythagorean-triplet/README.md +++ b/exercises/pythagorean-triplet/README.md @@ -19,9 +19,9 @@ For example, 3**2 + 4**2 = 9 + 16 = 25 = 5**2. ``` -There exists exactly one Pythagorean triplet for which a + b + c = 1000. +Given an input integer N, find all Pythagorean triplets for which `a + b + c = N`. -Find the product a * b * c. +For example, with N = 1000, there is exactly one Pythagorean triplet for which `a + b + c = 1000`: `{200, 375, 425}`. ## Rust Installation