Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -3,13 +3,13 @@ m = 3
|
|||
len result[] m
|
||||
#
|
||||
proc combinations pos val . .
|
||||
if pos <= m
|
||||
for i = val to n - m
|
||||
result[pos] = pos + i
|
||||
combinations pos + 1 i
|
||||
.
|
||||
else
|
||||
if pos > m
|
||||
print result[]
|
||||
return
|
||||
.
|
||||
for i = val to pos + n - m
|
||||
result[pos] = i
|
||||
combinations pos + 1 i + 1
|
||||
.
|
||||
.
|
||||
combinations 1 0
|
||||
combinations 1 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue