diff options
| -rwxr-xr-x | challenge-254/robbie-hatley/perl/ch-1.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/challenge-254/robbie-hatley/perl/ch-1.pl b/challenge-254/robbie-hatley/perl/ch-1.pl index e3165dde06..b409d14c7e 100755 --- a/challenge-254/robbie-hatley/perl/ch-1.pl +++ b/challenge-254/robbie-hatley/perl/ch-1.pl @@ -38,6 +38,7 @@ Output: false PROBLEM NOTES: First of all, I had to think hard whether "Three Power" means "x^3" or "3^x". But the latter would be "3 to the x power", whereas the former is "x to the 3 power", so I think "Three Power" means "x^3". + This is also corroborated by Example #2, which states that 0 is a "Three Power" because "0 = 0^3", not "0 = 3^0" which is false (3^0 = 1). So this problem boils down to "Given an integer x, does there exist an integer r such that r^3 = x?" |
