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