diff options
| author | Paulo Custodio <pauloscustodio@gmail.com> | 2021-06-14 21:06:04 +0100 |
|---|---|---|
| committer | Paulo Custodio <pauloscustodio@gmail.com> | 2021-06-14 21:06:04 +0100 |
| commit | 7fe77aad9d67fa0f4f4d71845bb6b8c3416f6dbd (patch) | |
| tree | 645fdc06130ef59857a13b26658416a449841c30 /challenge-109 | |
| parent | 6ba8f88d505b0cf05dcc82c435372a4f45de891e (diff) | |
| download | perlweeklychallenge-club-7fe77aad9d67fa0f4f4d71845bb6b8c3416f6dbd.tar.gz perlweeklychallenge-club-7fe77aad9d67fa0f4f4d71845bb6b8c3416f6dbd.tar.bz2 perlweeklychallenge-club-7fe77aad9d67fa0f4f4d71845bb6b8c3416f6dbd.zip | |
Add Perl solution to challenge 110
Diffstat (limited to 'challenge-109')
| -rw-r--r--[-rwxr-xr-x] | challenge-109/paulo-custodio/perl/ch-1.pl | 6 | ||||
| -rw-r--r--[-rwxr-xr-x] | challenge-109/paulo-custodio/perl/ch-2.pl | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/challenge-109/paulo-custodio/perl/ch-1.pl b/challenge-109/paulo-custodio/perl/ch-1.pl index edb3e9769d..4015a4b8b2 100755..100644 --- a/challenge-109/paulo-custodio/perl/ch-1.pl +++ b/challenge-109/paulo-custodio/perl/ch-1.pl @@ -4,10 +4,10 @@ # # TASK #1 - Chowla Numbers # Submitted by: Mohammad S Anwar -# Write a script to generate first 20 Chowla Numbers, named after, -# Sarvadaman D. S. Chowla, a London born Indian American mathematician. +# Write a script to generate first 20 Chowla Numbers, named after, +# Sarvadaman D. S. Chowla, a London born Indian American mathematician. # It is defined as: -# +# # C(n) = sum of divisors of n except 1 and n # NOTE: Updated the above definition as suggested by Abigail [2021/04/19 18:40]. # Output: diff --git a/challenge-109/paulo-custodio/perl/ch-2.pl b/challenge-109/paulo-custodio/perl/ch-2.pl index b168a71b1a..7c4e8226a3 100755..100644 --- a/challenge-109/paulo-custodio/perl/ch-2.pl +++ b/challenge-109/paulo-custodio/perl/ch-2.pl @@ -5,7 +5,7 @@ # TASK #2 - Four Squares Puzzle # Submitted by: Mohammad S Anwar # You are given four squares as below with numbers named a,b,c,d,e,f,g. -# +# # (1) (3) # ╔══════════════╗ ╔══════════════╗ # ║ ║ ║ ║ @@ -21,14 +21,14 @@ # │ │ │ │ # │ │ │ │ # └──────────────┘ └─────────────┘ -# Write a script to place the given unique numbers in the square box so that sum +# Write a script to place the given unique numbers in the square box so that sum # of numbers in each box is the same. -# +# # Example # Input: 1,2,3,4,5,6,7 -# +# # Output: -# +# # a = 6 # b = 4 # c = 1 @@ -36,7 +36,7 @@ # e = 2 # f = 3 # g = 7 -# +# # Box 1: a + b = 6 + 4 = 10 # Box 2: b + c + d = 4 + 1 + 5 = 10 # Box 3: d + e + f = 5 + 2 + 3 = 10 |
