Code Jam 2008 Round1A Problem A. Minimum Scalar Product —— 贪心
ProblemYouaregiventwovectorsv1=(x1,x2,...,xn)andv2=(y1,y2,...,yn).Thescalarproductofthesevectorsisasinglenumber,calculatedasx1y1+x2y2+...+xnyn.Supposeyouareallowedtopermutethecoordinatesofeachvectoras