fixed triangle with easier DP