diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2021-11-11 19:56:12 +0100 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2021-11-11 19:56:12 +0100 |
commit | 87148a396856589ed5b22f02967b5c0eda0f70e2 (patch) | |
tree | 11cd03d8a8699b53db04c0f7084849c8380b140f | |
parent | 8e04f9adc049c2a8281e6d943d5ed26220cedd56 (diff) |
Problem 76
-rw-r--r-- | problem76.ijs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/problem76.ijs b/problem76.ijs new file mode 100644 index 0000000..d5f070c --- /dev/null +++ b/problem76.ijs @@ -0,0 +1,9 @@ +NB. Copied from problem 31, and modified to work here +ways =: {{ + if. y=0 do. + x=0 + else. + +/([:(ways&(<:y)) x-y*])"0 i.>:<.x%y + end. +}} M. +problem76 =: (ways <:) 100 |