longest dp (19,731 results)