• 本题的坑就是,在利用面积公式时,别忘了中间的*乘号
  • 已知三角形三边的面积公式为:
    • p=a+b+c
    • x=p/2
    • x1=x(x-a)(x-b)(x-c)
    • sqrt(x1) 得到的结果再开方即可
      import math
      line = input()
      lines = line.split(' ')
      a,b,c = map(int,lines)
      circle_sum = a+b+c
      p = circle_sum
      p = p / 2.0
      area_trangle = math.sqrt(p*(p-a)*(p-b)*(p-c))
      print(f"circumference={circle_sum:.2f} area={area_trangle:.2f}")
      
      

```