[SRM586] PiecewiseLinearFunctionDiv2 by Kaiyang Lv