summaryrefslogtreecommitdiff
path: root/problem76.ijs
blob: d5f070c550f671176905c5bf04bfa16041d806a8 (plain) (blame)
1
2
3
4
5
6
7
8
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