• 基本正确。但需要处理对参数 n 用户输入 0.5 这类数值时情形,避免出现计算前 0.5 项之和的情形。

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment