C - 4 Values whose Sum is 0 POJ - 2785 (折半枚举)(二分搜索)
训练赛上一题,当时没做出来,Orz太弱了TheSUMproblemcanbeformulatedasfollows:givenfourlistsA,B,C,Dofintegervalues,computehowmanyquadruplet(a,b,c,d)∈AxBxCxDaresuchthata+b+c+d=0.Inthefollowing,weassumethatalllistshavethes