Anonymous user
Maximum triangle path sum: Difference between revisions
m
→{{header|Elena}}
m (→{{header|Factor}}: Use v+ instead of [ + ] 2map) |
|||
Line 703:
=={{header|Elena}}==
{{trans|C#}}
ELENA
<lang elena>import system'routines
import extensions
import extensions'math
94 48
95 30 96
Line 725:
85 32 25 85 57 48 84 35 47 62 17 01 01 99 89 52
06 71 28 75 94 48 37 10 23 51 06 48 53 18 74 98 15
27 02 92 23 08 71 76 84 15 52 92 63 81 10 44 10 69 93"
public program()
{
var list :=
int i := 0
int j := 0
input
j := 0
line
list[i][j] := num
j += 1
i += 1
list[i][j] := mathControl
console
{{out}}
<pre>
|