···79 list = concat input
80 width = (length list) `div` height
81 startIndex = fromJust $ elemIndex 'S' list
82- endIndex = fromJust, nub $ elemIndex 'E' list
8384main :: IO ()
85main = do
···79 list = concat input
80 width = (length list) `div` height
81 startIndex = fromJust $ elemIndex 'S' list
82+ endIndex = fromJust $ elemIndex 'E' list
8384main :: IO ()
85main = do
+2
Justfile
···24 time swipl -s "$fn" -g main,halt < {{input}}
25 else if test -f {{part}}.py
26 time python3 "$fn" < {{input}}
0027 else if test -f {{part}}.c
28 gcc "$fn" -o {{part}} > /dev/null
29 and time ./{{part}} < {{input}}
···24 time swipl -s "$fn" -g main,halt < {{input}}
25 else if test -f {{part}}.py
26 time python3 "$fn" < {{input}}
27+ else if test -f {{part}}.rb
28+ time ruby "$fn" < {{input}}
29 else if test -f {{part}}.c
30 gcc "$fn" -o {{part}} > /dev/null
31 and time ./{{part}} < {{input}}