print both cost, zero allocated memory