diff options
Diffstat (limited to 'challenge-059')
| -rw-r--r-- | challenge-059/shahed-nooshmand/blog.txt | 1 | ||||
| -rw-r--r-- | challenge-059/shahed-nooshmand/raku/ch-1.sh | 1 | ||||
| -rw-r--r-- | challenge-059/shahed-nooshmand/raku/ch-2.sh | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/challenge-059/shahed-nooshmand/blog.txt b/challenge-059/shahed-nooshmand/blog.txt new file mode 100644 index 0000000000..ad26d9db49 --- /dev/null +++ b/challenge-059/shahed-nooshmand/blog.txt @@ -0,0 +1 @@ +https://rafraichisso.ir/2020/05/09/pwc-59 diff --git a/challenge-059/shahed-nooshmand/raku/ch-1.sh b/challenge-059/shahed-nooshmand/raku/ch-1.sh new file mode 100644 index 0000000000..4a2317b4e3 --- /dev/null +++ b/challenge-059/shahed-nooshmand/raku/ch-1.sh @@ -0,0 +1 @@ +raku -e 'put join " → ", |.grep(* < 3), |.grep(* ≥ 3) given « 1 4 3 2 5 2 »' diff --git a/challenge-059/shahed-nooshmand/raku/ch-2.sh b/challenge-059/shahed-nooshmand/raku/ch-2.sh new file mode 100644 index 0000000000..8ad73fd703 --- /dev/null +++ b/challenge-059/shahed-nooshmand/raku/ch-2.sh @@ -0,0 +1 @@ +raku -e '(2..4).combinations(2).map({ (.comb Z≠ sprintf("\%0{.chars}b", @_.min).comb).grep(1) given @_.max.base(2) }).sum.say' |
