[HDU6222]Heron and His Triangle

Heron and His Triangle

题解

很水的一道找规律题呀

由T**M*E***的要求,还是写一下Pell方程的做法吧

由海伦公式可知,S= \sqrt{p(p-a)(p-b)(p-c)}

\because a=t-1,b= t,c=t+ 1\therefore p=\frac{a+b+c}{2}= \frac{3t}{2}

posted @ 2022-06-15 20:34  StaroForgin  阅读(7)  评论(0)    收藏  举报  来源