11 lines
224 B
Lua
Executable File
11 lines
224 B
Lua
Executable File
#!/usr/bin/env luajit
|
|
|
|
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)
|