日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

代做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設計編程代做
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        韩日成人av| 亚洲欧美一区二区精品久久久| 久久久久久欧美| 亚洲免费av观看| 欧美激情综合色综合啪啪| 欧美电影在线观看完整版| 久久久一本精品99久久精品66| 国产精品狼人久久影院观看方式| 99在线观看免费视频精品观看| 亚洲国产精品激情在线观看| 国产午夜精品美女视频明星a级| 亚洲影院色在线观看免费| 国产精品毛片高清在线完整版| 国产精品美女www爽爽爽| 欧美日韩免费高清| 欧美日韩国内自拍| 久久精品国产第一区二区三区最新章节| 亚洲综合视频网| 91久久黄色| 黄色成人av在线| 亚洲国产经典视频| 99人久久精品视频最新地址| 国产精品麻豆成人av电影艾秋| 一区二区三区欧美激情| 亚洲欧美日韩综合国产aⅴ| 亚洲国产精品成人精品| 91久久精品国产91久久性色tv| 亚洲一区二区三区久久| 国产嫩草一区二区三区在线观看| 亚洲欧美日韩中文播放| 久久亚洲美女| 欧美午夜大胆人体| 亚洲黄一区二区三区| 久久久夜色精品亚洲| 亚洲一区二区三区视频播放| 亚洲激情网站免费观看| 亚洲成在人线av| 欧美国产亚洲精品久久久8v| 香蕉久久夜色精品| 一区二区视频免费在线观看| 欧美成人一区二区三区| 亚洲精品免费一区二区三区| 国产精品久久一卡二卡| 亚洲国产精品99久久久久久久久| 国产精品亚发布| 欧美与黑人午夜性猛交久久久| 国产一区二区三区无遮挡| 国产精品欧美日韩一区二区| 久久成人一区二区| 亚洲第一中文字幕在线观看| 午夜精品亚洲一区二区三区嫩草| 国产三级欧美三级日产三级99| 国产一区二区三区在线观看精品| 亚洲一区二区三区四区视频| 一区二区三区免费观看| 亚洲一区二区久久| **网站欧美大片在线观看| 一区二区高清在线| 国产精品色婷婷| 欧美视频不卡中文| 欧美大片专区| 鲁鲁狠狠狠7777一区二区| aa亚洲婷婷| 国产一区二区高清不卡| 亚洲欧美日韩综合国产aⅴ| 先锋影音国产一区| 精品动漫av| 久久久青草婷婷精品综合日韩| 午夜久久一区| 欧美日韩国产三级| 亚洲第一精品影视| 国产欧美一区二区在线观看| 午夜视频精品| 亚洲精品美女久久久久| 国产精品美女黄网| 国产精品日韩在线| 激情欧美一区| 国产三级欧美三级日产三级99| 9久草视频在线视频精品| 欧美在线看片| 亚洲欧美日韩综合一区| 欧美日韩一区二区三区在线看| 在线观看国产精品淫| av不卡在线看| 亚洲国产婷婷香蕉久久久久久99| 久久五月婷婷丁香社区| 亚洲婷婷免费| 伊人成年综合电影网| 欧美性一区二区| 一区二区免费在线播放| 亚洲国产综合视频在线观看| 在线不卡免费欧美| 国产精品www| 麻豆九一精品爱看视频在线观看免费| 久久精品卡一| 欧美日韩一级片在线观看| 国产精品香蕉在线观看| 老司机午夜免费精品视频| 蜜桃精品久久久久久久免费影院| 欧美精品三级日韩久久| 亚洲欧美中文日韩v在线观看| 亚洲影视中文字幕| 亚洲一区二区影院| 性18欧美另类| 国产精品亚洲综合色区韩国| 久久午夜精品一区二区| 欧美福利一区二区三区| 久久成人人人人精品欧| 国产一区999| 亚洲国产天堂久久综合网| 日韩视频专区| 国产欧美短视频| 国产日韩在线一区| 午夜日韩av| 乱中年女人伦av一区二区| 久久九九久精品国产免费直播| 国产精品乱码| 久久免费高清| 欧美成人一区二区| 日韩一区二区精品葵司在线| 国产精品久久久久99| 欧美国产丝袜视频| 9久re热视频在线精品| 91久久线看在观草草青青| 久久国产手机看片| 最近中文字幕日韩精品| 国产精品久久久一区二区三区| 国产欧美一区二区精品忘忧草| 麻豆91精品91久久久的内涵| 欧美日韩成人在线| 免费欧美日韩国产三级电影| 亚洲天堂免费在线观看视频| 欧美日本一道本| 国产日本欧洲亚洲| 欧美色图一区二区三区| 欧美日韩和欧美的一区二区| 久久久久女教师免费一区| 亚洲一品av免费观看| 国产精品美女www爽爽爽视频| 亚洲国产精品久久久久久女王| 久久成人久久爱| 欧美高清视频一二三区| 亚洲精品日韩综合观看成人91| 久久亚洲精品网站| 国产日韩精品一区| 久久久人成影片一区二区三区| 国产一区二区三区免费观看| 亚洲一区国产视频| 欧美精品在线播放| 亚洲欧美日韩在线观看a三区| 日韩视频一区二区| 亚洲影音先锋| 欧美成人中文字幕在线| 亚洲一级黄色| 亚洲视频在线播放| 国产揄拍国内精品对白| 亚洲美女啪啪| 鲁鲁狠狠狠7777一区二区| 久久一区二区视频| 午夜一区二区三区不卡视频| 国产精品99久久久久久久久| 日韩午夜电影在线观看| 老司机成人网| 一区二区三区波多野结衣在线观看|