#P1582. 小A的糖果

小A的糖果

Description

Input Format

Output Format

6 1
1 6 1 2 0 4
11

Hint

Source

贪心