summaryrefslogtreecommitdiff
path: root/problem76.ijs
diff options
context:
space:
mode:
Diffstat (limited to 'problem76.ijs')
-rw-r--r--problem76.ijs9
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