starting day 17
This commit is contained in:
parent
14d3e749cd
commit
85e90970fd
|
@ -0,0 +1,12 @@
|
||||||
|
io.input("test")
|
||||||
|
|
||||||
|
map = {}
|
||||||
|
for line in io.lines() do
|
||||||
|
local row = {}
|
||||||
|
string.gsub(line, "(%d)", function (c) table.insert(row,c) end)
|
||||||
|
table.insert(map, row)
|
||||||
|
end
|
||||||
|
|
||||||
|
for i,row in ipairs(map) do
|
||||||
|
print(i, table.concat(row, " "))
|
||||||
|
end
|
|
@ -0,0 +1,13 @@
|
||||||
|
2413432311323
|
||||||
|
3215453535623
|
||||||
|
3255245654254
|
||||||
|
3446585845452
|
||||||
|
4546657867536
|
||||||
|
1438598798454
|
||||||
|
4457876987766
|
||||||
|
3637877979653
|
||||||
|
4654967986887
|
||||||
|
4564679986453
|
||||||
|
1224686865563
|
||||||
|
2546548887735
|
||||||
|
4322674655533
|
Loading…
Reference in New Issue