HBC51093约数之和,过关题目,语言题Dropping tests题解

冷夕颜 算法基础篇 59 0
想要检验自己的编程水平?来试试全网最全C++题库,让您在挑战中不断进步。
In a certain course, you takentests. If you getaiout ofbiquestions correct on testi, your cumulative average is defined to be . Given your test scores and a positive integerk, determine how high you can make your cumulative average if you are allowed to drop anykof your test scores. Suppose you take 3 tests with scores of 5/5, 0/1, and 2/6. Without dropping any tests, your cumulative average is. However, if you drop the third test, your cumulative average becomes.

In a certain course, you take n tests. If you get ai out of bi questions correct on test i, your cumulative average is defined to be . Given your test scores and a positive integer k, determine how high you can make your cumulative average if you are allowed to drop any k of your test scores. Suppose you take 3 tests with scores of 5/5, 0/1, and 2/6. Without dropping any tests, your cumulative average is . However, if you drop the third test, your cumulative average becomes .

HBC51093约数之和,过关题目,语言题Dropping tests题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
想要在职场中立于不败之地?那就来试试全网最全C++题库,让您在练习中快速提升技能。

标签: HBC51093约数之和 过关题目 语言题Dropping tests题解