ChaeYeon
Chae Yeon is a popular pop female singer who rose to fame with her amazing sexy dance style
and the sounds of nature voice she has. She proved to be a great dancer, and she showed o
her vocals in her live performances. If you had ever seen her dance, I bet you’d love it.
I felt stage ligh!ng interes!ng when I was enjoying Chae Yeon’s performance. We all know that
stage ligh!ng instruments are used for the concerts and other performances taking place in live
performance venues. They are also used to light the stages. Actually this is a color mixing
process. There are two types of color mixing: Addi!ve and Subtrac!ve. Most stages use the
former and in this case there are three primary colors: red, green, and blue. In the absence of
color, or when no colors are showing, the stage is black. If all three primary colors are showing,
the result is white. When red and green combine together, the result is yellow. When red and
blue combine together, the result is magenta. When blue and green combine together, the
result is cyan. When two same color combine together, the result is s!ll that color.
We have got the coordinate and the primary color of the )gure that each Stage Ligh!ng
Instrument sent out. For simplicity’s sake, we can just treat the )gure as a circle. Of course we’ll
know the radius of each colored circle. Some color may be changed based on the Color Mixed
Theory we men!oned above. Can you )nd the area of each color?
Input
The )rst line consists of an integer T, indica!ng the number of test cases.
The )rst line of each case consists of three integers R, G, B, indica!ng the number of red circles,
green circles and blue circles. The next R + G + B lines, each line consists of three integer x, y, r,