7 texts
+= [sys
.stdin
.next()]
11 regexp
= '"([^"]*)" ([123]) ([-\.0-9]*)'
22 if abs( y
- last
) < min_sep
or y
> last
- min_sep
:
29 def print_column(col
, col_num
):
33 print '"%s" %s %s'%(name
, str(col_num
), str(y
))
36 rex
= re
.compile(regexp
)
40 name
, column
, y
= m
.groups()
41 if column
not in cols
:
44 cols
[column
] += [(float(y
), name
)]
47 sep
= sep_column(cols
[col
])
52 for y
, name
in sep
[1:9]:
53 new_col
+= [(y
+0.04, name
)]
54 for y
, name
in sep
[9:]:
55 new_col
+= [(y
+0.0909, name
)]
58 print_column(sep
, col
)