Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Department-numbers/Zkl/department-numbers-1.zkl
Normal file
3
Task/Department-numbers/Zkl/department-numbers-1.zkl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Utils.Helpers.pickNFrom(3,[1..7].walk()) // 35 combos
|
||||
.filter(fcn(numbers){ numbers.sum(0)==12 }) // which all sum to 12 (==5)
|
||||
.println();
|
||||
3
Task/Department-numbers/Zkl/department-numbers-2.zkl
Normal file
3
Task/Department-numbers/Zkl/department-numbers-2.zkl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
println("Police Fire Sanitation");
|
||||
foreach p,f,s in ([2..7,2], [1..7], [1..7])
|
||||
{ if((p!=s!=f) and p+f+s==12) println(p,"\t",f,"\t",s) }
|
||||
Loading…
Add table
Add a link
Reference in a new issue