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;">

                不卡在线观看av| 一区二区三区中文字幕电影| 亚洲视频小说图片| 色综合一区二区三区| 亚洲福利视频一区| 欧美精品一区二区三区蜜桃| 成人深夜福利app| 亚洲成av人片在线| 久久久久久综合| 成人精品免费看| 亚洲一区二区三区在线看| 欧美日韩dvd在线观看| 韩国欧美国产1区| 国产精品久久久久7777按摩| 欧美日韩日本视频| 狠狠网亚洲精品| 亚洲精品午夜久久久| 久久综合资源网| 欧美在线啊v一区| 蜜臀av一区二区在线观看| 国产亚洲欧美一级| 91精品国产综合久久久蜜臀图片| 国产69精品久久99不卡| 日本色综合中文字幕| 综合在线观看色| 国产日产精品1区| 欧美大尺度电影在线| 欧美在线观看18| 色菇凉天天综合网| 成人国产一区二区三区精品| 午夜精品国产更新| 亚洲一区视频在线| 国产精品久久二区二区| 精品少妇一区二区三区视频免付费| 91一区二区三区在线观看| 久久91精品久久久久久秒播| 五月婷婷综合网| 亚洲综合久久久久| 一区二区三区四区不卡在线| 国产精品三级视频| 国产欧美va欧美不卡在线| 欧美成人三级在线| 日韩欧美一区二区在线视频| 欧美剧情电影在线观看完整版免费励志电影| 成人在线视频一区| 国产不卡视频在线观看| 国产剧情一区在线| 国产一区二区三区蝌蚪| 精品一区二区三区不卡| 日韩va欧美va亚洲va久久| 亚洲成人动漫在线观看| 日韩精品免费专区| 日韩国产高清影视| 免费高清成人在线| 蜜桃视频在线观看一区二区| 久热成人在线视频| 久久99久久久久久久久久久| 精品亚洲国内自在自线福利| 蜜臀av一级做a爰片久久| 韩国成人精品a∨在线观看| 国产激情视频一区二区三区欧美| 国产精品亚洲成人| 丁香婷婷综合色啪| 99re66热这里只有精品3直播| 99久久夜色精品国产网站| 欧美在线综合视频| 日韩欧美在线不卡| 欧美国产欧美综合| 一区二区三区四区在线| 美女在线视频一区| 丰满白嫩尤物一区二区| 91免费小视频| 欧美精品乱人伦久久久久久| 欧美成人精品二区三区99精品| 久久一夜天堂av一区二区三区| 中文乱码免费一区二区| 亚洲欧美另类图片小说| 日韩高清中文字幕一区| 成人午夜在线播放| 欧美三级在线播放| 久久久精品人体av艺术| 亚洲精品免费电影| 精品一区二区三区免费观看 | 国产亚洲精品bt天堂精选| 最新久久zyz资源站| 日韩影院免费视频| 成人av电影在线观看| 7777女厕盗摄久久久| 国产农村妇女精品| 午夜成人免费视频| 不卡的av中国片| 精品国精品自拍自在线| 18欧美乱大交hd1984| 蜜桃久久久久久| 色综合中文字幕国产| 欧美一区二区三级| 自拍av一区二区三区| 久久99国产精品尤物| 成人午夜在线视频| 欧美喷水一区二区| 最好看的中文字幕久久| 国产精品一区二区x88av| 91麻豆精品国产无毒不卡在线观看| 亚洲国产精品黑人久久久| 麻豆国产91在线播放| 欧美日免费三级在线| 亚洲精选在线视频| 99久久综合精品| 国产精品日产欧美久久久久| 国内外成人在线| 日韩女优毛片在线| 久久精品国产在热久久| 7777精品伊人久久久大香线蕉完整版 | 精品粉嫩超白一线天av| 亚洲bdsm女犯bdsm网站| 91网址在线看| 亚洲免费观看高清完整| www.一区二区| 中文字幕乱码日本亚洲一区二区 | 日韩不卡免费视频| 欧美绝品在线观看成人午夜影视| 一区二区三区不卡视频| 91麻豆精品秘密| 一区二区三区91| 欧美亚洲日本一区| 亚洲国产日韩精品| 欧美日韩三级一区| 日本欧美肥老太交大片| 日韩亚洲国产中文字幕欧美| 老司机精品视频在线| 精品国产凹凸成av人网站| 久久99精品久久久久| 国产日韩三级在线| 91在线一区二区| 亚洲综合图片区| 欧美一级黄色录像| 国产盗摄一区二区三区| 国产精品久久久久久亚洲伦| 色综合视频一区二区三区高清| 一区二区免费看| 欧美一区三区四区| 国产福利一区在线观看| 亚洲欧美日韩国产中文在线| 欧美性高清videossexo| 奇米在线7777在线精品| 久久久久久久久久久久久女国产乱| 国产98色在线|日韩| 一区二区成人在线观看| 欧美另类一区二区三区| 韩国中文字幕2020精品| 亚洲精品久久嫩草网站秘色| 91精品国产91久久久久久最新毛片 | 欧美色综合天天久久综合精品| 亚洲国产另类av| 久久久国产综合精品女国产盗摄| av一区二区三区在线| 日韩中文字幕91| **性色生活片久久毛片| 精品国产一区二区三区久久影院| av一二三不卡影片| 青青草一区二区三区| 亚洲日本成人在线观看| 欧美成人a在线| 欧美亚洲国产一区在线观看网站| 国产在线播放一区二区三区| 亚洲精品福利视频网站| 亚洲精品一线二线三线| 精品视频在线看| 不卡av电影在线播放| 老司机精品视频在线| 亚洲国产精品久久久男人的天堂| 久久精品日韩一区二区三区| 欧美日本一区二区三区| 色94色欧美sute亚洲13| 婷婷成人激情在线网| 国产精品日日摸夜夜摸av| 日韩一区二区电影网| 在线观看欧美黄色| 北条麻妃国产九九精品视频| 美女爽到高潮91| 亚洲大片精品永久免费| 亚洲精品国产精华液| 中文字幕亚洲综合久久菠萝蜜| 久久久99精品久久| 久久先锋资源网| 日韩欧美在线123| 91精品蜜臀在线一区尤物| 欧美中文字幕一区二区三区| 91影院在线免费观看| 不卡的av网站| 91在线国产福利| 99久久综合国产精品| 91丨九色丨黑人外教| 91无套直看片红桃| 色8久久精品久久久久久蜜| 一本在线高清不卡dvd| 91丝袜高跟美女视频| 欧美亚洲自拍偷拍| 欧美一区三区二区| 亚洲精品一区二区三区在线观看|