starting day 17

This commit is contained in:
sejo 2023-12-17 15:27:12 +01:00
parent 14d3e749cd
commit 85e90970fd
2 changed files with 25 additions and 0 deletions

12
12023/17/17.lua Normal file
View File

@ -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

13
12023/17/test Normal file
View File

@ -0,0 +1,13 @@
2413432311323
3215453535623
3255245654254
3446585845452
4546657867536
1438598798454
4457876987766
3637877979653
4654967986887
4564679986453
1224686865563
2546548887735
4322674655533