Commit b25ca0ce by BellCodeEditor

auto save

parent af406c84
Showing with 8 additions and 0 deletions
篮球比赛是高分的比赛,领先优势可能很快被反超。作为观众,希望能在球赛即将结束时,
就提早知道领先是否不可超越,请编程一种算法,用于判断领先是否“安全”。
算法描述:
获取领先的分数,减去3分;
如果目前是领先队控球,则加0.5;否则减0.5(数字小于0则变成0
计算平方后的结果;
如果得到的结果比当前比赛剩余时间的秒数大,则领先是“安全的”。
\ No newline at end of file
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 sign in to comment