Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi0604 committed Dec 17, 2023
1 parent 0ff7aee commit cd2ca75
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions d12/log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
12818 too high
9863 too high
6 changes: 6 additions & 0 deletions d12/p1reveal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#.#.### 1,1,3
.#...#....###. 1,1,3
.#.###.#.###### 1,3,1,6
####.#...#... 4,1,1
#....######..#####. 1,6,5
.###.##....# 3,2,1
23 changes: 23 additions & 0 deletions d13/p1.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
local function calc(lines)
for i, line in ipairs(lines) do
print(line)

if line == lines[#lines - i + 1] then
end
end

end

while true do
local lines = {};
local line = io.read("l")

if line == nil then
break
elseif line == "" then
calc(lines)
else
lines[#lines+1] = line
end
end

0 comments on commit cd2ca75

Please sign in to comment.