[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Using Lua in programming contests
- From: Martin <eden_martin_fuhrspam@...>
- Date: Wed, 4 Jan 2017 19:07:15 -0800
I've relatively successfully using Lua for solving HackerRank problems.
(Most tricky part was memory limit, but it was resolved by direct
Concerning your algo, try sieve of Eratosthenes. Usually it's
right answer when we need to create table of primes for some segment.
On 17-01-04 04:10 AM, Egor Skriptunoff wrote:
> I have made an attempt to use Lua as language for solving problems
> in a programming contest.
> I came across a situation where I can solve a problem using Pascal,
> but not using Lua (4 test cases of 10 were failed due to timeout).
> This is the problem I'm talking about:
> The contest is over, so it is OK to discuss the solutions.
> My solution (which fails 40% of tests due to timeout):
> I need to increase its speed by only about 10%.
> But how?