#include<math.h>
to #include<cmath>
.cdist = max(x,y,z)
with a comparison.
|
|
|
|
93 5 7 max = 93 max2 = 93 85 46 17 max = 85 max2 = 85 77 48 42 max = 77 max2 = 77 38 14 73 max = 73 max2 = 73 84 57 69 max = 84 max2 = 84 12 89 32 max = 89 max2 = 89 82 72 19 max = 82 max2 = 82 32 12 70 max = 70 max2 = 70 39 19 66 max = 66 max2 = 66 98 26 0 max = 98 max2 = 98 |