commit 31520500da712cc23e1913cdc7b58d2422ff3508 parent 94ef6243f3a83b1035f8ccb46f3875d83c373ba6 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Fri, 11 May 2018 02:21:46 +0200 change criterion Diffstat:
homophones.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/homophones.py b/homophones.py @@ -32,7 +32,7 @@ for l in sys.stdin.readlines(): total_words = 0 total_groups = 0 -for k in sorted(phons, key=(lambda x: max(y[5] for y in phons[x]))): +for k in sorted(phons, key=(lambda x: min(y[5] for y in phons[x]))): v = phons[k] #if len(set([x[6] for x in v])) < 2: if len(set([x[1] for x in v])) < 2: