To count number of quadruplets with sum = 0

n00m n00m at narod.ru
Fri Mar 16 02:28:04 EDT 2007


Steve,
imo strangely enough but your suggestion to replace "if...: else:..."
with

     x_y = x + y
     h[x_y] = h.get(x_y, 1)

s=l=o=w=e=d the thing by ~1 sec.




More information about the Python-list mailing list