加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代做COMP9021、代寫Python設計編程

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



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

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

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

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

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

    国产视频一区三区| 999色成人| 亚洲精品极品少妇16p| 国产成人av| 欧洲亚洲精品| 一本一本久久| 国产美女撒尿一区二区| 亚洲国产黄色| 色在线中文字幕| 激情五月综合| 狠狠一区二区三区| 伊人久久大香| 国精品产品一区| 免费成人美女在线观看.| 六月丁香久久丫| 亚洲v天堂v手机在线| 亚洲高清资源| 日韩精品专区| 久久不射中文字幕| 欧洲福利电影| 97成人在线| 亚洲制服一区| 久久久久久毛片免费看| 亚洲国产伊人| 蜜桃在线一区二区三区| 不卡一区2区| 久久婷婷一区| 91免费精品国偷自产在线在线| 肉丝袜脚交视频一区二区| 日韩一区二区三区免费播放| 国产亚洲高清视频| 国产一区二区三区四区老人| 在线精品国产亚洲| 国产一区二区三区不卡视频网站| 美女性感视频久久| 女海盗2成人h版中文字幕| 国产精品二区不卡| 国产亚洲综合精品| 不卡中文字幕| 欧美福利在线| 欧美+日本+国产+在线a∨观看| 欧美色图麻豆| 午夜日韩影院| 警花av一区二区三区| 欧美黄视频在线观看| 国产精品久久| 亚洲三级观看| 欧美日本久久| 国内精品亚洲| www欧美在线观看| 亚洲一区导航| 国产一区二区三区天码| 亚洲精品自拍| 综合国产视频| 最新国产一区| 精品91福利视频| 视频一区日韩| 国产一级成人av| 久久久噜噜噜| 国产99久久| 亚洲成人最新网站| 亚洲精品二区三区| 亚洲免费影视| 日韩av免费大片| 三级中文字幕在线观看| 91久久久久久白丝白浆欲热蜜臀| 国产精品久久久久av电视剧| 高清av一区| 欧美一级一区| 国产一区一区| 九九九九九九精品任你躁| 999精品视频在这里| 成人久久综合| 在线看片不卡| 蜜臀av性久久久久av蜜臀妖精| 麻豆蜜桃在线观看| 91国拍精品国产粉嫩亚洲一区| 日韩一级特黄| 欧美日韩影院| 日韩成人一区二区| 欧美日韩导航| 日韩视频一区二区三区在线播放免费观看| 日韩视频不卡| 少妇淫片在线影院| 国产日韩精品视频一区二区三区| 亚洲精品影院在线观看| 日本亚洲欧美天堂免费| 精品视频网站| 99在线精品免费视频九九视| 国产精品13p| 久久精品国产在热久久| 国产aa精品| 欧美久久精品| 在线亚洲观看| 色黄视频在线观看| 亚洲三级免费| www国产精品| 一区二区视频欧美| 你懂得影院夜精品a| 免费观看性欧美大片无片| a日韩av网址| 久久国产人妖系列| 日韩极品少妇| 国产综合色产| 国模精品视频| 影音先锋在线一区| 国产精品毛片久久久| 亚洲精品国产成人影院| 日韩在线第七页| 伊人久久大香| 欧美一区2区| 国产精品久久久久久麻豆一区软件| 国产欧美在线观看免费| 亚洲资源网你懂的| 欧美日韩国产色综合一二三四| 成人在线电影在线观看视频| 久久尤物视频| 日日天天久久| 蜜桃一区二区三区在线| 久久中文在线| 群体交乱之放荡娇妻一区二区| 国产精品99在线观看| 肉肉av福利一精品导航| 国产精品黄网站| 成人黄色av| 国产欧美日韩影院| 欧美在线资源| 美女在线视频一区| 国产精品tv| 老色鬼在线视频| 国产精品一区2区3区| 亚洲激情黄色| 欧美亚洲在线| 在线日韩中文| 久久精品国产亚洲一区二区三区| 日本精品视频| 欧美mv日韩| 亚洲欧洲美洲国产香蕉| 免费看精品久久片| 国产日产精品_国产精品毛片| 国产一区二区你懂的| 亚洲精品麻豆| 99亚洲伊人久久精品影院红桃| 麻豆一区二区三| 在线观看国产精品入口| 亚洲国产精品第一区二区| 天天操综合网| 欧美日韩a区| 亚洲一区二区三区免费在线观看| 久久人人爽人人爽人人片av不| 香蕉久久网站| 91精品麻豆| 日韩中文字幕麻豆| 精品国产一区二| 日韩精品不卡一区二区| 国产成人tv| 欧美影视一区| 婷婷综合亚洲| 亚洲影视一区二区三区| 亚洲美女少妇无套啪啪呻吟| 一本色道久久综合亚洲精品不| 欧美激情91| 亚洲欧洲另类| 亚洲人人精品| 婷婷中文字幕一区| 日本视频一区二区| 亚洲精品网址| 日本中文字幕在线一区| 日韩精品一二区| 日韩高清一级| 欧美另类综合| 国际精品欧美精品| 免费精品视频在线| 日韩av网站免费在线| 蜜桃av一区二区三区电影| 奇米狠狠一区二区三区| 色88久久久久高潮综合影院| 欧美日韩123| 99久久婷婷国产综合精品首页| 精品一区电影| 日韩毛片网站| 91成人精品视频| 日韩高清三区| 水蜜桃在线视频| 老牛国内精品亚洲成av人片| 亚洲精品成人图区| 天天久久夜夜| 欧美一级视频| 亚洲一区二区三区高清不卡| 久久女人天堂| 视频一区在线视频| 7m精品国产导航在线| av在线日韩| 国产亚洲激情| 亚洲国产中文在线二区三区免| 深夜视频一区二区| 天天色综合色| 国产精品一线| 麻豆精品一区二区综合av| 亚洲女人av|