Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87730 赵天瑜 03圆的面积 Python3 Wrong Answer 42 MS 4408 KB 340 2024-08-11 12:02:18

Tests(0/1):


Code:

from decimal import Decimal, getcontext # 设置小数精度 getcontext().prec = 10 # 圆周率 π 近似值 pi = Decimal('3.1415926') # 半径列表 radii = [1, 3, 5, 7, 9] # 计算并输出每个圆的面积 for radius in radii: radius_decimal = Decimal(radius) area = pi * radius_decimal ** 2 print(area)


Run Info:

------Input------
0
------Answer-----
3.14159 28.2743 78.5398 153.938 254.469
------Your output-----
3.1415926 28.2743334 78.5398150 153.9380374 254.4690006