View difference between Paste ID: hZLABedb and jdgmtBvc
SHOW: | | - or go back to the newest paste.
1
import random
2
3
counts = dict([(i,0) for i in range(42004)])
4
for i in range(42004):
5
  j = random.randrange(0,42004)
6
  cur_count = counts[j]
7
  counts[j] = cur_count + 1
8
9-
print sum([i for i in counts.values() if i > 1])
9+
print sum([i-1 for i in counts.values() if i > 1])