99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做320SC編程、代寫Python設計程序
代做320SC編程、代寫Python設計程序

時間:2024-10-11  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Computer Science **0SC – (2024)
Programming Assignment 5
Due: Oct 13 2024 (11:59pm)
Academic Integrity
Before attempting to solve the assignment, please read the message below very carefully.
As described on https://academicintegrity.cs.auckland.ac.nz/, you must NOT
ˆ Use all or part of another student’s solution to the assignment. Changing variable names or
substituting words in a sentence does not make it your solution.
ˆ Allow someone else to complete all or part of the assignment for you.
ˆ Solicit answers for the assignment on contract-cheating websites such as Chegg.com and
Bartleby.com.
ˆ Use code from Internet sources such as StackOverffow or generative-AI tools such as ChatGPT.
 You are encouraged to learn from Internet sources and tools, but you need to come up
with your own implementation of the code to show your learning.
ˆ Allow another student to copy all or part of your solution to the assignment.
ˆ Do all or part of an assignment for someone else.
ˆ Share code that can lead to the solution of an assignment.
ˆ Post the assignment anywhere online or share it with anyone else. The assignment material
is copyrighted and sharing or posting them online violates our copyright.
ˆ Post your solution online on public websites. Your online solutions will encourage other
students to copy your solution. Private GitHub repositories and other private online storage
 drives are acceptable, and you can also share your solution privately with prospective
employers.
ˆ Reuse your own work unless discussed otherwise with the lecturer.
ˆ Leave your computers, devices, and belongings unattended — you must secure these at all
times to prevent anyone having access to your assessments or solutions.
Last year, out of 218 students, there were 11 misconducted cases found on A5 - Task 1. We kept the
submissions from the last few years to run MOSS at https://theory.stanford.edu/~aiken/moss/.
I hope that there will be no cases this year!
1Requirements
This 5th assignment lets you get familiar with dynamic programming design and development. It is
worth 5% of your total course marks. We would like you to implement efffcient dynamic programming
algorithms for two tasks: Task 1: Finding partner and Task 2: Killing enemies.
An excessive number of submissions (over 10) for a particular problem will accrue a 20% penalty per that
problem if you eventually solve it. Therefore, please write a bruteforce algorithm and test your
dynamic programming version with your own generated inputs at scale before submitting
to the automated marker.
We only accept Python programs that use built-in packages (i.e. packages that do not require pip
install).
1 Task 1: Meet your partner at skyscraper
1.1 Problem description
You are standing at the ground ffoor and your partner is waiting at the top ffoor of a skyscraper. You
will have to use an algorithmically designed lift L to reach your partner. The lift L is designed in the
manner that if you use the lift at the ffoor i, you are able to reach any ffoor from i + 1 to i + L[i] where
L[i] is a positive integer that presents the capacity of the lift at the i-th ffoor. Each time you use the
lift costs $1.
Assume that the skyscraper has n ffoors and you are at the ffoor 0. Your partner is at the ffoor n − 1
and waiting for you to see the sky view. The lift information L[i] for 0 ≤ i < n is available at the
ground ffoor. Write a function to return the minimum cost, i.e. the number of time using the lift, to
reach your partner.
O(n) solutions are preferred since we have set the running time limit on the automarker.
1.2 Test case description
Your input will be a sequence of n integers, each value per line corresponding to the lift information
L[i] (e.g. the capacity of the lift) on the i-th ffoor. The ffrst line is for the 0-th ffoor. The last line is
for the (n − 1)-th ffoor, which is a redundant information :-). Your output will be an integer.
There are 4 test cases.
1. A trial test case of n = 10 has no mark.
2. A test case of n = 100, 000 and has 1 mark.
3. A test case of n = 1000, 000 and has 2 marks.
2Sample Input 1:
Sample Output 1:
1
You only need to use the lift once since L[0] = 8 is sufffcient to get you to the 4th ffoor.
Sample Input 2:
Sample Output 2:
2
You only need to use the lift twice. The ffrst one with L[0] = 2 to the 1st ffoor, and L[1] = 5 is sufffcient
to get you to the 4th ffoor.
** Task 2: Arrange tanks to eliminate enemies
2.1 Problem description
You have a queue of n tanks hidden in a forest. Due to the UAV of enemies, only 1 tank is used per
day, and the used tank can only be taken from the front or rear of the queue for some security reasons.
Each tank has a number indicating the number of potential units the tank can eliminate. Since tanks
are hurrily queued up during the night, you cannot organize the tank in the good order to use. Instead,
you have a queue of n values, each reffects the number of potential eliminated units for each tank in
the queue.
Since the war is more and more severe, the number of potential eliminated units dramatically increases
day-by-day. Let the labels of the number of eliminated units from n tanks in the queue be t1,t2, . . . ,tn.
In the i-th day, the used tank k will eliminate i ∗ tk units.
As a commander, for each day, your task is to give an order 1 or 0 corresponding to whether the front
or the rear tank in the queue is used. Write a program to compute the best order of using n tanks for
n days to eliminate maximum number of enemies’ units.
Since there might be several orderings that output the same number of eliminated units, you would
need to output the maximum number of eliminated units only.
You might see that the best solution runs in O(n
2
) time asymptotically. However, a program with low
memory usage (e.g. O(n)) is preferred since the automarker has limited resources, and we have set the
running time limit on the automarker.
2.2 Test case description
Your input will be a sequence of n integers, each value per line i corresponding to the amount of eliminated
 units of the tank ti
. The ffrst and last lines correspond to the front and rear tanks, respectively.
Your output is an integer in range [0..2
31
] corresponding to the maximum number of eliminated units.
There are 2 test cases.
1. A trial test case of n = 10 has no mark.
2. A test case of n = 10, 000 has 2 marks.
4Sample Input 1:
Sample Output 1:
128
The order is {1, 0, 0, 1, 1}, and the maximum number of detroyed units is 4 * 1 + 10 * 2 + 4 * 3 + 8 *
4 + 12 * 5 = 128. Note that for the last tank (#3), any order of 1 or 0 does not matter.
Sample Input 2:
Sample Output 2:
261
The maximum number of detroyed units is 261 and the order is {1, 1, 1, 0, 0, 0, 0, 1}. Note that for the
last tank (#4), any order of 1 or 0 does not matter.
Submission Procedure
Submit your program solutions to https://www.automarker.cs.auckland.ac.nz.


請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp











 

掃一掃在手機打開當前頁
  • 上一篇:代寫INFS3208、代做Python語言編程
  • 下一篇:代寫ECE4016、Python設計編程代做
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                精品成人一区二区| 欧美一区午夜视频在线观看| 亚洲三级在线免费观看| 国产欧美一区视频| 精品国产乱码久久久久久免费| 欧美高清性hdvideosex| 欧美疯狂性受xxxxx喷水图片| 欧美视频在线播放| 欧美丝袜自拍制服另类| 欧美亚洲禁片免费| 欧美性大战久久久| 欧美福利视频一区| 91精品国产综合久久精品app| 欧美日韩在线播放| 欧美日韩精品一区视频| 91精品国产综合久久久久久漫画| 欧美一区在线视频| 91蜜桃传媒精品久久久一区二区| 99久久久无码国产精品| 色哦色哦哦色天天综合| 欧美日韩免费观看一区三区| 7777女厕盗摄久久久| 欧美成人aa大片| 亚洲国产精品av| 一区二区免费看| 视频一区中文字幕| 久久99国内精品| 成人激情小说乱人伦| 在线一区二区视频| 日韩一级完整毛片| 国产精品美女久久久久久久久久久| 国产精品二区一区二区aⅴ污介绍| 亚洲欧美日韩精品久久久久| 婷婷综合久久一区二区三区| 国产乱人伦偷精品视频免下载| 94-欧美-setu| 日韩一区二区麻豆国产| 26uuu欧美| 亚洲精品一二三| 精品一区精品二区高清| 91美女在线看| 欧美电影免费观看高清完整版在 | 色视频一区二区| 欧美一区二区在线播放| 欧美激情一二三区| 蜜臀av一区二区在线观看| 成人免费黄色在线| 日韩一级二级三级精品视频| 中文字幕中文字幕在线一区 | 国产精品全国免费观看高清 | 欧美一级理论性理论a| 中文字幕亚洲精品在线观看| 久久99九九99精品| 欧美视频一区二| 国产目拍亚洲精品99久久精品| 视频一区二区三区中文字幕| 99久精品国产| 国产日产欧美精品一区二区三区| 日韩电影免费在线| 欧美亚洲动漫另类| 成人免费一区二区三区视频| 国产精品18久久久久久久久久久久 | 91福利区一区二区三区| 久久久久88色偷偷免费| 日韩av中文字幕一区二区 | 欧美精品一区二区高清在线观看| 亚洲一区二区高清| 日本乱码高清不卡字幕| 中文字幕一区在线观看视频| 国产剧情在线观看一区二区| 日韩欧美一区二区在线视频| 婷婷久久综合九色综合伊人色| 99精品欧美一区二区三区小说| 国产女主播在线一区二区| 蜜乳av一区二区| 91精选在线观看| 日本午夜精品一区二区三区电影| 欧美日本免费一区二区三区| 亚洲成人av一区二区三区| 欧美性猛交一区二区三区精品| 亚洲精品免费在线观看| 99久久精品免费观看| 中文字幕一区日韩精品欧美| 97久久精品人人做人人爽50路| 国产精品毛片久久久久久| 丁香一区二区三区| 国产精品伦理一区二区| 91小视频免费观看| 亚洲a一区二区| 精品少妇一区二区三区免费观看| 久久99精品久久只有精品| 国产校园另类小说区| av一区二区三区在线| 一区二区三区精品在线| 欧美高清dvd| 激情小说亚洲一区| 国产精品久久久久久久久免费桃花| 成人av电影观看| 亚洲国产视频在线| 日韩美女天天操| 国产suv精品一区二区883| 亚洲日本一区二区| 欧美一级国产精品| 成人晚上爱看视频| 午夜视频一区二区| 久久精品免视看| 色婷婷综合五月| 免费成人美女在线观看| 国产农村妇女毛片精品久久麻豆| 在线免费观看成人短视频| 另类小说一区二区三区| 成人免费一区二区三区视频| 欧美一区二区三区四区久久 | 色八戒一区二区三区| 偷窥国产亚洲免费视频| 久久精品这里都是精品| 欧美色图免费看| 国产成人精品免费| 天天色天天操综合| 中文字幕一区二区三区在线播放| 欧美一区二区网站| av成人免费在线观看| 日韩av电影免费观看高清完整版 | 天天综合日日夜夜精品| 国产日本一区二区| 欧美欧美午夜aⅴ在线观看| 国产91高潮流白浆在线麻豆| 亚洲国产毛片aaaaa无费看 | 蜜臀91精品一区二区三区| 中文字幕在线免费不卡| 日韩精品一区二区三区视频播放 | 亚洲影院免费观看| 国产嫩草影院久久久久| 91精品国产91综合久久蜜臀| 色狠狠av一区二区三区| 懂色中文一区二区在线播放| 日日摸夜夜添夜夜添亚洲女人| 亚洲视频一区在线观看| 久久久久久久久久看片| 欧美一级高清片| 欧美日韩视频第一区| 91欧美激情一区二区三区成人| 久久草av在线| 美女一区二区久久| 午夜亚洲国产au精品一区二区| 亚洲欧美日韩小说| 国产精品麻豆欧美日韩ww| 久久精品日产第一区二区三区高清版 | 91麻豆精品国产无毒不卡在线观看| 波多野结衣视频一区| 国产精品正在播放| 久久不见久久见中文字幕免费| 日本伊人精品一区二区三区观看方式 | 久久精品在这里| ww亚洲ww在线观看国产| 欧美一卡二卡三卡| 91精品国产欧美日韩| 91麻豆精品国产自产在线| 在线不卡一区二区| 91精品免费在线| 91精品国产手机| 日韩欧美国产综合在线一区二区三区| 欧美精品1区2区3区| 欧美精品第1页| 欧美剧在线免费观看网站| 欧美电影影音先锋| 欧美一区二区性放荡片| 日韩欧美激情在线| 欧美videos大乳护士334| 久久综合色婷婷| 国产人久久人人人人爽| 国产精品不卡在线| 一区二区在线观看免费视频播放| 亚洲激情图片qvod| 亚洲国产欧美在线| 青青草97国产精品免费观看| 蜜臀av一区二区在线观看 | 91香蕉视频mp4| 欧美在线视频全部完| 欧美日韩国产乱码电影| 欧美一区午夜视频在线观看 | 亚洲成av人综合在线观看| 亚洲成人在线观看视频| 蜜臀av一区二区在线观看| 激情综合一区二区三区| 成人听书哪个软件好| 在线一区二区三区四区五区 | 亚洲激情在线播放| 麻豆精品一区二区三区| 成人黄色a**站在线观看| 色综合久久精品| 欧美一区二区三区在线电影 | 国产在线乱码一区二区三区| 成人a区在线观看| 91.xcao| 国产精品久久久久久久久免费丝袜 | 日韩欧美一级二级| 国产精品高清亚洲| 蜜臀91精品一区二区三区| 不卡一区二区三区四区|