SP2901 GEOPROB - One Geometry Problem 题解
什么小学几何题。
解法
小学三年级学的构造弦图,容易得到线图中四个三角形都全等。如图。

a = c − d + d − b + c − d = 2 c − b − d \begin{aligned}a & = c-d+d-b+c-d \\ & = 2c-b-d\end{aligned} a=c−d+d−b+c−d=2c−b−d
证明都在图里了,这里不再多说。
顺带一提,本题要写高精度,这里给部分封装过的模板,开封即用。
class high_accuracy