3 4 1 2 3
3 样例解释 输入数据表明:一共有1个1,2个2,3个3,4个joker。最多可以组成三副套牌:{1,J,3}, {J,2,3}, {J,2,3},joker还剩一个,其余牌全部用完。 数据范围 50%的数据满足:2 < = n < = 5, 0 < = m < = 10^ 6, 0< = ci < = 200 100%的数据满足:2 < = n < = 50, 0 < = m, ci < = 500,000,000。