diff options
| author | robbie-hatley <Robbie.Hatley@gmail.com> | 2024-01-29 19:06:45 -0800 |
|---|---|---|
| committer | robbie-hatley <Robbie.Hatley@gmail.com> | 2024-01-29 19:06:45 -0800 |
| commit | c871b3b40ff173b7fa3ac03625f46930d770886e (patch) | |
| tree | 3b2096c06858788f506a2d8bf36bc34a31580c57 | |
| parent | e6b47202299d4b82b954e1f59fd79eebaf5721a0 (diff) | |
| download | perlweeklychallenge-club-c871b3b40ff173b7fa3ac03625f46930d770886e.tar.gz perlweeklychallenge-club-c871b3b40ff173b7fa3ac03625f46930d770886e.tar.bz2 perlweeklychallenge-club-c871b3b40ff173b7fa3ac03625f46930d770886e.zip | |
Fixed spacing error in 254-1.
| -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?" |
