Problem C. Segment set
时间限制 1000 ms
内存限制 32 MB
A segment and all segments which are connected with it compose a segment set. The size of a segment set is the number of segments in it. The problem is to find the size of some segment set.
输入数据
输出数据
For each Q-command, output the answer. There is a blank line between test cases.
样例输入
复制
1
10
P 1.00 1.00 4.00 2.00
P 1.00 -2.00 8.00 4.00
Q 1
P 2.00 3.00 3.00 1.00
Q 1
Q 3
P 1.00 4.00 8.00 2.00
Q 2
P 3.00 3.00 6.00 -2.00
Q 5
样例输出
$ Mathjax font initiator $