#P1467. 烦恼的高考志愿

烦恼的高考志愿

Description


Input Format

Output Format

输出一行,为最小的不满度之和。

4 3
513 598 567 689
500 600 550
32

Hint

三位学生的不满度之和为 |513-500|+|598-600|+|567-550|=32


Source

二分