HashCodePractice2020 Solution for the practice contest of Hashcode2020 You need to modify the constant DP to 200000 only for input d_quite_big.in at line 7. Usage pypy3 greedy_dp.py < e_also_big.in > e.out