Memory limit for FROGV

I am getting RTE again and again.
What is the memory limit for this problem??

Firstly we should not discuss about the question at this time as it’s in ongoing contest,but one thing that I can say is :
Memory limit is 1400M(some accepted java solutions used upto 1400M) and this is the standard limit for most of the problems in codechef.In most of the cases RTE is due to dividing by zero (or) using too much memory. The below link may help you.