I’m have some trouble using Lua for the enormous data problem. I’m using io.read("*all") to pull in the data and then using string.gfind to pull off the integers. The code works, but I’m getting a TLE from the judge.
My code is located here: here
The judge indicates that I’m just over the time limit, 8.01 seconds. I’m not sure how to interpret that though. I guess several test files are run. Any thoughts? I sure would appreciate the advice.
BTW, I don’t see any valid Lua solutions posted for this problem.