diff options
| author | robbie-hatley <Robbie.Hatley@gmail.com> | 2024-01-29 19:02:39 -0800 |
|---|---|---|
| committer | robbie-hatley <Robbie.Hatley@gmail.com> | 2024-01-29 19:02:39 -0800 |
| commit | e6b47202299d4b82b954e1f59fd79eebaf5721a0 (patch) | |
| tree | 9f9b0a4c3710c70ac70498cdb3ea590ec1704154 | |
| parent | 5d75ab8c8d1460270688b279a857adf0d03ae44b (diff) | |
| download | perlweeklychallenge-club-e6b47202299d4b82b954e1f59fd79eebaf5721a0.tar.gz perlweeklychallenge-club-e6b47202299d4b82b954e1f59fd79eebaf5721a0.tar.bz2 perlweeklychallenge-club-e6b47202299d4b82b954e1f59fd79eebaf5721a0.zip | |
Fixed comment error in 254-1.
| -rwxr-xr-x | challenge-254/robbie-hatley/perl/ch-1.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-254/robbie-hatley/perl/ch-1.pl b/challenge-254/robbie-hatley/perl/ch-1.pl index a12244626d..e3165dde06 100755 --- a/challenge-254/robbie-hatley/perl/ch-1.pl +++ b/challenge-254/robbie-hatley/perl/ch-1.pl @@ -36,8 +36,8 @@ 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 "3**$x". +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?" |
