注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 匿名 于 2024-10-20 02:52 编辑
新人求米~
一共两个小时,3道题,第一题数学,第二题DP,第三题数学
A network security administrator must protect networks at a number of locations from cyber-attacks. Initially, the ith network has num_ server[i] servers, and moneylil funds allocated for security upgrades. To upgrade a server in the ith network, it costs upgradeli]. Selling a server adds sellfifto available funds.
Given the arrays num_ servers, money, upgrade, and sell, each with n integers, determine the maximum number of servers that can be upgraded to ensure optimal network security. The result should be an array of n integers, wmple
X = 0.35
В = [[3, - 1], [-2, 3]]
C = [0.2, 0.8]
After solving the equation X = A*B*C under the constraints
A[1] = 1 - A[0], the value of the vector A = [[ 0.75, 0.25 ]].
The values of A should be rounded to two decimal places.
Function Description
Complete the function findA in the editor below.
findA has the following parameters):
float X: the value of X. float B[2][2]: the matrix B. float C[2][1]: the vector C. |