INPUT
Fetch from url
Upload file
Paste from clipboard
Load example file
normal example or STREAM_IMAGE example
OUTPUT
Download lua file
download
Permalink
Filename: .lua (used for random seed)
- BINOMIAL COEFFICIENT -
> READ N AND K > CALCULATE NUMBER OF WAYS TO CHOOSE K ELEMENTS FROM A SET OF N DISTINCT ELEMENTS > WRITE NUMBER OF CHOICES TO OUT.C
STACK MEMORY NODE
STACK MEMORY NODE
IN.N
IN.K
OUT.C
IN.N
12 6 12 4 4 9 11 10 11 10 11 8 3 9 12 10 11 7 11 7 5 9 9 4 1 5 10 8 10 11 3 2 5 12 6 12 8 12 10
IN.K
5 2 10 3 0 8 0 3 1 7 5 1 0 4 11 10 9 2 2 4 3 0 5 4 1 0 0 6 8 3 1 0 1 9 6 0 3 12 2
OUT.C
792 15 66 4 1 9 1 120 11 120 462 8 1 126 12 1 55 21 55 35 10 1 126 1 1 1 1 28 45 165 3 1 5 220 1 1 56 1 45
IN.N
IN.K
OUT.C
IN.N
7 5 12 6 12 7 10 9 11 7 12 8 9 10 9 11 9 10 9 8 3 10 9 7 6 11 5 10 12 5 7 3 4 0 6 10 11 2 6
IN.K
5 3 6 1 0 3 9 5 3 1 4 7 6 4 7 8 4 8 2 1 1 3 9 6 2 7 4 7 2 5 7 3 4 0 0 6 5 0 5
OUT.C
21 10 924 6 1 35 10 126 165 7 495 8 84 210 36 165 126 45 36 8 3 120 1 7 15 330 5 120 66 1 1 1 1 1 1 210 462 1 6
IN.N
IN.K
OUT.C
IN.N
11 4 12 7 10 3 10 8 11 11 11 9 5 11 2 3 7 6 6 8 12 1 10 9 8 11 9 5 4 10 11 12 4 10 5 7 10 9 8
IN.K
8 4 2 3 5 3 6 7 5 11 1 5 1 3 0 2 4 1 5 6 10 0 4 8 8 0 3 4 0 2 10 0 3 10 0 7 0 0 3
OUT.C
165 1 66 35 252 1 210 8 462 1 11 126 5 165 1 3 35 6 6 28 66 1 210 9 1 1 84 5 1 45 11 1 4 1 1 1 1 1 56
IN.N
IN.K
OUT.C
IN.N
6 3 11 8 8 11 10 7 11 8 10 10 10 1 7 5 5 10 2 9 12 4 10 2 12 6 4 8 11 12 12 6 4 7 4 9 7 10 9
IN.K
2 3 10 4 5 6 4 7 7 8 10 1 6 0 4 2 0 0 2 1 4 4 8 1 2 5 2 3 0 10 0 1 1 2 0 4 5 5 7
OUT.C
15 1 11 70 56 462 210 1 330 1 1 10 210 1 35 10 1 1 1 9 495 1 45 2 66 6 6 56 1 66 1 6 4 21 1 126 21 252 36
Test run: [1] [2] [3] [4]