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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代做COMP9021、代寫Python設(shè)計(jì)編程

時(shí)間:2024-04-03  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



COMP**21 Principles of Programming
Term 1, 2024
Coding Quiz 5
Worth 4 marks and due Week 8 Thursday @ 9pm
Description
You are provided with a stub in which you need to insert your code where indicated without doing
any changes to the existing code to complete the task.
Given the value of seed and density, the provided code randomly fills an array (or grid) of size
10 x 10 with 0s and 1s. Your task is to determine and output the size of the largest parallelogram
with horizontal sides. A parallelogram consists of a line with at least 2 consecutive 1s, with below
at least one line with the same number of consecutive 1s, all those lines being aligned vertically in
which case the parallelogram is actually a rectangle, for instance:
1 1 1
1 1 1
1 1 1
1 1 1
or consecutive lines move to the left by one position, for instance:
 1 1 1
 1 1 1
 1 1 1
1 1 1
or consecutive lines move to the right by one position, e.g.
1 1 1
 1 1 1
 1 1 1
 1 1 1
The size is the number of 1s in the parallelogram. In the above examples, the size is 12.
See test cases below for more examples.
2
Due Date and Submission
Quiz 5 is due Week 8 Thursday 4 April 2024 @ 9.00pm (Sydney time).
Note that late submission with 5% penalty per day is allowed up to 3 days from the due date, that
is, any late submission after Week 7 Sunday 7 April 2024 @ 9pm will be discarded.
Make sure not to change the filename quiz_5.py while submitting by clicking on [Mark] button
in Ed. It is your responsibility to check that your submission did go through properly using
Submissions link in Ed otherwise your mark will be zero for Quiz 5.
Test Cases
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 1
Here is the grid that has been generated:
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
There is no parallelogram with horizontal sides.
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 2
Here is the grid that has been generated:
1 1 0 1 1 1 1 1 1 0
0 1 0 0 1 0 1 0 0 1
1 0 1 1 1 0 1 1 1 0
0 0 1 0 1 1 0 1 0 0
0 0 0 1 0 0 1 1 0 1
1 0 1 0 1 1 0 1 1 0
1 0 0 0 0 1 1 0 0 0
0 0 0 1 1 0 0 1 1 1
1 1 0 1 0 1 1 0 0 0
1 0 0 1 0 1 1 0 0 0
The largest parallelogram with horizontal sides has a size of 4.
3
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 3
Here is the grid that has been generated:
1 1 0 1 1 1 1 1 1 1
1 0 1 0 1 0 0 1 1 1
1 1 0 1 0 1 0 1 1 1
1 0 1 1 1 1 1 0 1 1
1 1 1 0 1 0 0 1 1 1
1 1 0 1 1 1 0 1 1 1
0 0 1 0 0 0 1 1 0 0
1 1 1 0 1 1 1 1 0 1
1 1 0 1 1 1 1 1 0 1
1 1 1 0 1 0 0 0 0 1
The largest parallelogram with horizontal sides has a size of 12.
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 4
Here is the grid that has been generated:
1 1 0 1 1 1 1 1 1 1
1 1 1 0 1 1 1 0 0 1
1 0 1 1 1 1 1 1 1 0
0 0 1 0 1 1 1 1 0 1
1 1 1 1 0 0 1 1 0 1
1 0 1 1 1 1 0 1 1 1
1 1 1 1 0 1 1 0 0 1
1 0 0 1 1 1 1 1 1 1
1 1 0 1 0 1 1 1 1 0
1 0 1 1 1 1 1 0 0 1
The largest parallelogram with horizontal sides has a size of 12.
4
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 1 4
Here is the grid that has been generated:
1 0 1 0 1 1 1 1 1 0
1 0 1 1 0 1 1 1 0 1
0 0 0 0 1 1 1 0 1 1
1 1 1 1 1 1 1 0 1 0
1 1 0 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 0 1
0 1 1 1 1 0 1 0 1 1
1 1 1 0 1 1 1 1 1 1
1 0 1 1 1 1 0 1 1 1
1 1 1 1 1 0 1 1 0 1
The largest parallelogram with horizontal sides has a size of 16.
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 5
Here is the grid that has been generated:
1 1 0 1 1 1 1 1 1 1
1 1 1 1 1 1 0 1 1 1
1 1 1 0 0 1 1 1 0 1
1 1 1 1 1 1 1 1 1 0
1 0 0 1 0 1 1 1 1 1
0 1 1 1 1 1 1 1 0 0
1 1 1 0 1 1 1 0 1 1
1 1 1 1 1 1 1 0 1 1
1 1 1 1 1 1 1 0 1 1
1 0 0 1 1 0 0 1 1 1
The largest parallelogram with horizontal sides has a size of 15.
5
Test Cases Explained
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 1
Here is the grid that has been generated:
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
There is no parallelogram with horizontal sides.
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 2
Here is the grid that has been generated:
1 1 0 1 1 1 1 1 1 0
0 1 0 0 1 0 1 0 0 1
1 0 1 1 1 0 1 1 1 0
0 0 1 0 1 1 0 1 0 0
0 0 0 1 0 0 1 1 0 1
1 0 1 0 1 1 0 1 1 0
1 0 0 0 0 1 1 0 0 0
0 0 0 1 1 0 0 1 1 1
1 1 0 1 0 1 1 0 0 0
1 0 0 1 0 1 1 0 0 0
The largest parallelogram with horizontal sides has a size of 4.
6
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 3
Here is the grid that has been generated:
1 1 0 1 1 1 1 1 1 1
1 0 1 0 1 0 0 1 1 1
1 1 0 1 0 1 0 1 1 1
1 0 1 1 1 1 1 0 1 1
1 1 1 0 1 0 0 1 1 1
1 1 0 1 1 1 0 1 1 1
0 0 1 0 0 0 1 1 0 0
1 1 1 0 1 1 1 1 0 1
1 1 0 1 1 1 1 1 0 1
1 1 1 0 1 0 0 0 0 1
The largest parallelogram with horizontal sides has a size of 12.
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 4
Here is the grid that has been generated:
1 1 0 1 1 1 1 1 1 1
1 1 1 0 1 1 1 0 0 1
1 0 1 1 1 1 1 1 1 0
0 0 1 0 1 1 1 1 0 1
1 1 1 1 0 0 1 1 0 1
1 0 1 1 1 1 0 1 1 1
1 1 1 1 0 1 1 0 0 1
1 0 0 1 1 1 1 1 1 1
1 1 0 1 0 1 1 1 1 0
1 0 1 1 1 1 1 0 0 1
The largest parallelogram with horizontal sides has a size of 12.
7
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 1 4
Here is the grid that has been generated:
1 0 1 0 1 1 1 1 1 0
1 0 1 1 0 1 1 1 0 1
0 0 0 0 1 1 1 0 1 1
1 1 1 1 1 1 1 0 1 0
1 1 0 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 0 1
0 1 1 1 1 0 1 0 1 1
1 1 1 0 1 1 1 1 1 1
1 0 1 1 1 1 0 1 1 1
1 1 1 1 1 0 1 1 0 1
The largest parallelogram with horizontal sides has a size of 16.
$ python3 quiz_5.py
Enter two integers, the second one being strictly positive: 0 5
Here is the grid that has been generated:
1 1 0 1 1 1 1 1 1 1
1 1 1 1 1 1 0 1 1 1
1 1 1 0 0 1 1 1 0 1
1 1 1 1 1 1 1 1 1 0
1 0 0 1 0 1 1 1 1 1
0 1 1 1 1 1 1 1 0 0
1 1 1 0 1 1 1 0 1 1
1 1 1 1 1 1 1 0 1 1
1 1 1 1 1 1 1 0 1 1
1 0 0 1 1 0 0 1 1 1
The largest parallelogram with horizontal sides has a size of 15.

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

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:越南S2結(jié)婚簽證費(fèi)用是多少(S2簽證是什么)
  • 下一篇:學(xué)生簽入境菲律賓條件(學(xué)生簽申請指南)
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評 開團(tuán)工具
    出評 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士1號線
    合肥機(jī)場巴士1號線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

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

          9000px;">

                欧美色图免费看| 麻豆视频一区二区| 色狠狠色噜噜噜综合网| 国内欧美视频一区二区| 亚洲国产精品精华液网站| 国产精品久久久久桃色tv| 日韩欧美国产一区二区在线播放| 欧美日韩中文一区| 色综合中文字幕| 一本大道av一区二区在线播放 | 美国十次综合导航| 五月婷婷久久丁香| 亚洲成人在线免费| 日日夜夜精品视频天天综合网| 一区二区久久久久久| 亚洲欧洲成人精品av97| 国产精品久久三区| 亚洲色图欧美激情| 一区二区三区中文字幕在线观看| 亚洲一区二区成人在线观看| 亚洲一区欧美一区| 五月天婷婷综合| 免费在线观看日韩欧美| 理论电影国产精品| 国产精品羞羞答答xxdd| 丁香六月综合激情| 91免费看视频| 精品1区2区3区| 精品少妇一区二区三区| 国产视频一区在线观看| 亚洲色图清纯唯美| 婷婷综合在线观看| 精品一区二区日韩| 日韩成人免费看| 日本欧美大码aⅴ在线播放| 紧缚奴在线一区二区三区| 国产乱人伦精品一区二区在线观看 | 制服丝袜亚洲色图| 日韩精品资源二区在线| 国产精品灌醉下药二区| 亚洲成人动漫av| 国产成人免费网站| 欧美日韩另类一区| 欧美激情中文不卡| 婷婷久久综合九色综合绿巨人 | 日本久久一区二区| 日韩视频在线观看一区二区| 国产香蕉久久精品综合网| 一区二区三区欧美| 国产传媒久久文化传媒| 欧美私模裸体表演在线观看| 久久九九久精品国产免费直播| 亚洲六月丁香色婷婷综合久久| 久久成人综合网| 91福利视频在线| 精品国产一区二区三区久久久蜜月| 国产精品美女一区二区三区| 人人狠狠综合久久亚洲| 91一区二区三区在线观看| 日韩一区国产二区欧美三区| 亚洲老妇xxxxxx| 国产东北露脸精品视频| 日韩一本二本av| 樱花影视一区二区| 国产成人在线网站| 日韩欧美在线1卡| 亚洲资源中文字幕| 99精品视频一区| 国产精品久久久久久久久免费丝袜 | 欧美日韩国产精选| 中文字幕欧美一| 国产iv一区二区三区| 精品国产亚洲在线| 九色porny丨国产精品| 国产福利精品一区| 久久先锋资源网| 蜜桃视频一区二区| 日韩免费视频一区| 日韩国产欧美一区二区三区| 欧美在线制服丝袜| 亚洲色图欧美激情| 91黄色免费版| 一区二区三区国产豹纹内裤在线| 97超碰欧美中文字幕| 亚洲色图第一区| 欧美视频在线不卡| 亚洲成人你懂的| 欧美综合色免费| 亚洲国产精品久久不卡毛片| 欧美日韩亚洲不卡| 青娱乐精品视频| 精品国产青草久久久久福利| 国产一区二区三区精品欧美日韩一区二区三区 | 美国精品在线观看| 91 com成人网| 日本va欧美va欧美va精品| 91精品免费观看| 蜜桃久久精品一区二区| 日韩精品在线一区| 国产精品一区二区无线| 国产精品乱子久久久久| 99re66热这里只有精品3直播 | 欧美日韩一区二区三区高清| 亚洲午夜在线观看视频在线| 欧美巨大另类极品videosbest | 亚洲精品国产a| 欧美亚洲综合久久| 首页亚洲欧美制服丝腿| 91精品国产色综合久久不卡蜜臀| 激情综合网最新| 国产精品区一区二区三区| 国产精品你懂的在线欣赏| 不卡视频免费播放| 亚洲成人av一区二区三区| 精品国产一区二区三区久久久蜜月 | 首页国产欧美久久| 国产福利一区二区三区在线视频| 国产精品久久久久久久久久免费看| 久久综合给合久久狠狠狠97色69| 日韩一区二区在线观看视频| 日本韩国欧美国产| 欧美电影免费观看高清完整版在线观看| 精品区一区二区| 一区二区视频在线看| 亚洲欧美国产三级| 久久99国产精品免费| 日本韩国欧美三级| 日韩欧美激情在线| 亚洲精品中文在线影院| 懂色av一区二区在线播放| 欧美三级资源在线| 国产精品天美传媒沈樵| 韩国v欧美v日本v亚洲v| 一本大道av伊人久久综合| 久久久一区二区| 奇米影视7777精品一区二区| 日本不卡123| 蜜桃视频在线观看一区二区| 91亚洲国产成人精品一区二区三| 日韩一区二区三区av| 91麻豆自制传媒国产之光| 色婷婷国产精品| 日韩不卡免费视频| 国产精品夫妻自拍| 日韩一级黄色大片| 欧美三级电影一区| 99久久99久久免费精品蜜臀| 精油按摩中文字幕久久| 午夜免费久久看| 亚洲综合色婷婷| 成人欧美一区二区三区| 久久影音资源网| 欧美一区二区三区在线看| 色综合欧美在线| 国产成人av福利| 日韩福利视频网| 婷婷夜色潮精品综合在线| 亚洲女同女同女同女同女同69| 亚洲国产精品传媒在线观看| 久久精品免视看| 久久影院视频免费| 国产午夜三级一区二区三| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 欧美视频一区二区三区四区 | 日韩精品资源二区在线| 911精品国产一区二区在线| 在线观看91精品国产麻豆| 成人黄色a**站在线观看| 极品少妇xxxx精品少妇| 久久精品国产第一区二区三区| 亚洲第一av色| 亚洲国产wwwccc36天堂| 亚洲成av人片在线观看| 日韩专区在线视频| 日韩电影免费在线观看网站| 亚洲国产成人av网| 蜜桃av一区二区在线观看| 麻豆久久一区二区| 高清不卡一区二区在线| jlzzjlzz亚洲日本少妇| 一本一道久久a久久精品| 欧美性感一类影片在线播放| 欧美狂野另类xxxxoooo| 久久精品网站免费观看| 中文一区在线播放| 亚洲成人一区在线| 国产一区二区中文字幕| 色噜噜狠狠成人网p站| 在线不卡a资源高清| 久久久精品综合| 亚洲精品久久7777| 麻豆国产精品一区二区三区 | 成人av电影在线播放| 99国产精品99久久久久久| 在线观看91视频| 精品国产乱码久久久久久蜜臀| 最新不卡av在线| 青青草成人在线观看| www.欧美色图| 欧美精品久久久久久久多人混战|