there n point coordinate axis OX the ith point locate integer point x_i speed v_i it guarantee point occupy coordinate all n point constant speed coordinate ith point moment t t noninteger calculate x_i t cdot v_iconsider point j Let di j minimum possible distance point possible moment time noninteger it mean point j coincide moment value di j 0your task calculate value sumlimits_1 le j le n di j sum minimum distance pair point