DotBox/sus801 | DotBox/yervandsargsyan | ||||
---|---|---|---|---|---|
f | 1 | import math | f | 1 | import math |
n | 2 | vis = [] | n | 2 | lent = [] |
3 | widt = [] | ||||
3 | shir = [] | 4 | high = [] | ||
4 | dlina = [] | ||||
5 | 5 | ||||
6 | while True: | 6 | while True: | ||
n | 7 | s = input().split(",") | n | 7 | lst = input().split(",") |
8 | if len(s) != 3: | 8 | if len(lst) != 3: | ||
9 | break | 9 | break | ||
n | 10 | a = s[0] | n | 10 | x = lst[0] |
11 | b = s[1] | 11 | y = lst[1] | ||
12 | c = s[2] | 12 | z = lst[2] | ||
13 | 13 | ||||
n | n | 14 | lent.append(float(x)) | ||
14 | vis.append(float(c)) | 15 | widt.append(float(y)) | ||
15 | shir.append(float(b)) | 16 | high.append(float(z)) | ||
16 | dlina.append(float(a)) | ||||
17 | 17 | ||||
n | 18 | result = (max(dlina)-min(dlina))*(max(shir)-min(shir))*(max(vis)-min(vis)) | n | 18 | res = (max(lent)-min(lent))*(max(widt)-min(widt))*(max(high)-min(high)) |
19 | 19 | ||||
t | 20 | print(result) | t | 20 | print(res) |
21 | 21 |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|