两个吃奶一个添下面视频_人妻第一页香蕉网_欧美xxxx少妇_妺妺窝人体色www婷婷

1082 問題 K: Tetrahedrons and Spheres

時間限制: 1s 內(nèi)存限制: 128MB 提交: 249 解決: 65
題目描述

There are a tetrahedrons and b spheres in the 3D-splace, you’re asked to calculate the volume occupied by at least one of them (i.e. volume of the union of the objects).

輸入

There will be at most 20 test cases. Each case begins with two integers ab, the number of tetrahedrons and the number of spheres (1<=a,b<=5). The next lines each contains 12 integers: x1, y1, z1, x2, y2, z2,x3, y3, z3, x4, y4, z4, the coordinates (xi, yi, zi)(1<=i<=4) of the four vertices  of a tetrahedron. The next blines each contains 4 integers x, y, z, r, the coordinates of the center (x, y, z) and the radius r (r<=3). All the coordinate values are integers with absolute values no more than 5. The input is terminated by a=b=0.

輸出

 For each test case, print a single line, the volume occupied by at least one of them, rounded to three decimal points.

 

樣例輸入
1 1
0 0 4 1 0 4 0 1 4 0 0 5
0 0 0 1
0 0
樣例輸出
4.356
提示
零基礎同學可以先學習視頻課程,包含C/C++、Python、百練、藍橋杯輔導、算法數(shù)據(jù)結構等課程,提供視頻講解以及配套習題,還有老師答疑,點擊這里了解課程詳情

比賽公告

Tips:
請對本次比賽進行一些描述,公告內(nèi)容應當包含:
比賽的創(chuàng)辦者或組織;
本次比賽的目的或意義;
本次比賽的考點、語言或類型;或其他注意事項及描述等。
至少保證30個漢字長度。