第一关:弧田术
chord = 30
height_of_arc = 15
area = 1 / 2 * (chord * height_of_arc + height_of_arc ** 2)
print(f'弓形田地面积为{int(area // 240)}亩零{area % 240:.2f}平方步')
chord = 78 + 1 / 2
height_of_arc = 13 + 7 / 9
area = 1 / 2 * (chord * height_of_arc + height_of_arc ** 2)
print(f'弓形田地面积为{int(area // 240)}亩零{area % 240:.2f}平方步')
第二关:弧田术计算弓形面积
chord = float(input())
height_of_arc = float(input())
area = 1 / 2 * (chord * height_of_arc + height_of_arc ** 2)
print(f'弓形田地面积为{int(area // 240)}亩零{area % 240:.2f}平方步')
第三关:弓形面积计算
import math
chord = float(input())
height_of_arc = float(input())