DotBox/sus801
DotBox/yervandsargsyan
f1import mathf1import math
n2vis = []n2lent = []
3widt = []
3shir = []4high = []
4dlina = []
55
6while True:6while True:
n7    s = input().split(",")n7    lst = input().split(",")
8    if len(s) != 3:8    if len(lst) != 3:
9        break9        break
n10    a = s[0]n10    x = lst[0]
11    b = s[1]11    y = lst[1]
12    c = s[2]12    z = lst[2]
1313
nn14    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))
1717
n18result = (max(dlina)-min(dlina))*(max(shir)-min(shir))*(max(vis)-min(vis))n18res = (max(lent)-min(lent))*(max(widt)-min(widt))*(max(high)-min(high))
1919
t20print(result)t20print(res)
2121
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op