Quick actions

cmd+k|ctrl+k

Navigation

Languages

Challenge 65 #1

Snippet info

Language

Raku

Visibility

public

Author

fernando-correa

Created

2020-06-15T17:29:20Z

Updated

2020-06-15T17:29:20Z

sub find(UInt $n, UInt $s) {
    (10 ** ($n - 1) ..^ 10 ** $n).grep: *.comb.sum == $s
}

say find 2, 4
INFO