Standard DP: dp[i][j] = minimum expected time to complete first i levels using exactly j regions. Transition (the formula to compute each state): dp[i][j]=minp<i(dp[p][j−1]+cost(p+1,i)) where cost(l,r) is the expected time to complete levels l through r as a single region.
Time complexity: O(n2k).
Space complexity: O(n) for the dp array. With n=200,000 and k=50, that's 2×1012 operations. Way too slow. Even O(n2) transitions are borderline at 4×1010 operations.