There are several frogs on a line, each with an integer coordinate and a specific tongue size, more precisely, the ith frog is on coordinate ximand its tongue has a size si , additionally, there are flies also positioned on integer coordinates. the ith fly is positioned on the yi coordinate. a frog i manages to eat a fly j if (xi - yi) < = si

how many flies can each frog eat. x is a list of f2%



Answer :

Other Questions