add lua solution for day 0

This commit is contained in:
Felix Van der Jeugt 2021-11-30 22:49:02 +01:00
parent f4fa590833
commit 9aa652953c
No known key found for this signature in database
GPG key ID: 58B209295023754D
3 changed files with 14 additions and 2 deletions

8
Day00/Part1.lua Normal file
View file

@ -0,0 +1,8 @@
io.input(arg[3])
local min, max = math.huge, -math.huge
for i = 1, io.read("*n") do
local num = io.read("*n")
max = math.max(num, max)
min = math.min(num, min)
end
print(min .. " " .. max)