注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
TT家的oa题, 好像是白嫖
When uploading videos on TikTok, data packets travel through a sequence of n servers (labeled 1, 2, 3, ..., n) before reaching the final server where the video is processed. Each server introduces a delay, represented by delayil, affecting the overall upload speed.
The upload process begins at a central server (labeled as server 0) and allows data packets to be transmitted across a maximum of k consecutive servers at a time.
This means that if a data packet is at server i, it can be transmitted to any server from i+1 to i+k (inclusive).
At each server, the delay specific to that server is added to the total upload time.
To ensure a smooth and efficient upload, calculate the minimum total delay required to reach server n while ensuring that the transmission adheres to th您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 使用VIP即刻解锁阅读权限或查看其他获取积分的方式 游客,您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 VIP即刻解锁阅读权限 或 查看其他获取积分的方式 ameters:
int delay[n]: The delay incurred at each server.
int k: The maximum allowable skip distance between servers.
Returns:
long: The minimum total delay required to reach the final server.
面完有段时间一直没消息,应该是简历挂了吧 |