hiho week 139 register

Ended

Participants:518

Verdict:Accepted
Score:100 / 100
Submitted:2017-03-01 20:28:30

Lang:Python2

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from itertools import combinations
def calulate(a):
    return (sum([x[0] for x in a])sum([x[1] for x in a]))
for _ in xrange(int(raw_input())):
    a = []
    for _ in xrange(int(raw_input())):
        a.append([float(z) for z in raw_input().split(" ")])
    b = []
    b += list(combinations(a1))
    b += list(combinations(a2))
    b += list(combinations(a3))
    b = list(filter(lambda xx[0] % 5 == 0map(lambda xcalulate(x)b)))
    print int(sorted(bkey=lambda xx[1])[-1][-1])
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX