triple stack dp (129 results)