11 lines
200 B
Lua
11 lines
200 B
Lua
|
local count = 0
|
||
|
local previous
|
||
|
for number in io.lines(arg[3]) do
|
||
|
number = tonumber(number)
|
||
|
if previous ~= nil and previous < number then
|
||
|
count = count + 1
|
||
|
end
|
||
|
previous = number
|
||
|
end
|
||
|
print(count)
|