summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d9268e6)
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
from math import *
import sys, time
from math import *
import sys, time
+try:
+ set()
+except NameError:
+ from sets import Set as set
+
+
def uniq(alist):
tmpdict = dict()
return [tmpdict.setdefault(e,e) for e in alist if e not in tmpdict]
def uniq(alist):
tmpdict = dict()
return [tmpdict.setdefault(e,e) for e in alist if e not in tmpdict]