Use max memory, not culmulative memory

IOI - 256mb limit, 300+ test cases