Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Department-numbers/Sidef/department-numbers.sidef
Normal file
7
Task/Department-numbers/Sidef/department-numbers.sidef
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@(1..7)->combinations(3, {|*a|
|
||||
a.sum == 12 || next
|
||||
a.permutations {|*b|
|
||||
b[0].is_even || next
|
||||
say (%w(police fire sanitation) ~Z b -> join(" "))
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue