加勒比久久综合,国产精品伦一区二区,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

    日本中文字幕视频一区| 亚洲网址在线| 久久精品免费| 欧美国产一级| 亚洲网站啪啪| 日韩不卡手机在线v区| 亚洲爱爱视频| 亚洲综合日本| 亚洲91中文字幕无线码三区| 国产伦一区二区三区| 高清av一区二区三区| 国产精品外国| 婷婷成人在线| 国产精品调教视频| 国产伦一区二区三区| 国产精品久久久久久久久久妞妞 | 久久久久久婷| 午夜影院欧美| 成人羞羞在线观看网站| 亚洲精品3区| 国产精品xvideos88| 国产一区二区三区黄网站| 日韩影院在线观看| 亚洲免费高清| 亚洲一级网站| 99精品国产一区二区三区| 精品久久亚洲| 亚洲va久久| 国产精区一区二区| 美女www一区二区| 91tv亚洲精品香蕉国产一区| 四季av一区二区三区免费观看| 红桃视频亚洲| 自拍亚洲一区| 亚洲第一精品影视| 欧美日韩在线二区| 久久久久久影院| 老牛国内精品亚洲成av人片| 66精品视频在线观看| 日韩电影免费一区| 日韩av中文字幕一区二区三区| 国产毛片一区二区三区| 99久久999| 国产探花一区| 日韩大胆成人| 日韩精品丝袜美腿| 欧美日韩播放| 精品欧美视频| 日韩精品成人| 综合激情网...| 在线一区二区三区视频| 成人精品毛片| 欧美日韩一区二区三区在线电影 | 国产777精品精品热热热一区二区| 久久福利精品| 免费成人在线影院| 黄色成人免费网| 欧美一区二区三区婷婷| 97精品国产综合久久久动漫日韩| 99久久综合国产精品二区| 日本成人在线网站| 国产日韩欧美在线播放不卡| 麻豆国产一区二区| 9999精品免费视频| 日韩电影免费在线看| 91精品日本| 亚洲福利久久| 亚洲美女少妇无套啪啪呻吟| 三级一区在线视频先锋 | 男女男精品视频网| 伊人久久综合一区二区| 97人人做人人爽香蕉精品| 美女久久久精品| 高清久久一区| www.豆豆成人网.com| 久久久久久久久国产一区| 欧美 日韩 国产一区二区在线视频 | 天堂√中文最新版在线| 日本午夜精品久久久久| 欧美日韩一区二区国产| 久久久精品区| 1024精品一区二区三区| 男女精品网站| 免费在线观看一区| 欧美a一区二区| 精品国产亚洲一区二区三区大结局| 大陆精大陆国产国语精品| 国产高清欧美| 久久电影tv| 欧美日韩一卡| 国产精品网址| 99热免费精品| 日韩不卡视频在线观看| av一级久久| 久久99偷拍| 日韩中文字幕区一区有砖一区| 在线一区视频观看| 国产专区精品| 欧洲亚洲一区二区三区| 美女精品网站| 日韩和的一区二区| 精品中文字幕一区二区三区四区| 美女午夜精品| 久久久久久一区二区| 日日夜夜免费精品| 日韩高清一区| 麻豆精品91| 久久精品系列| 国产伦精品一区二区三区在线播放| 日韩一级欧洲| 久久这里有精品15一区二区三区| 深夜福利一区二区三区| 亚洲男女自偷自拍| 日韩国产在线观看一区| 精品午夜久久| 欧美喷水视频| 日韩有码中文字幕在线| 91超碰国产精品| 另类小说视频一区二区| 黑人久久a级毛片免费观看| 最新日韩在线| 亚洲日本免费| 国产日韩三级| 麻豆网站免费在线观看| 国产精品成人**免费视频| 在线日韩中文| 国产精品第一| 国产日韩欧美一区| 视频一区日韩精品| 模特精品在线| 一区二区影视| 91久久国产| 另类小说综合欧美亚洲| 99久久夜色精品国产亚洲狼| 欧美二三四区| 成人中文字幕视频| 日本不卡1234视频| 日韩电影一区二区三区四区| 视频一区欧美日韩| 国产亚洲电影| 蜜桃精品视频在线| 日韩超碰人人爽人人做人人添| 羞羞答答国产精品www一本| 宅男噜噜噜66国产精品免费| 亚洲精彩视频| 国产精品二区影院| 欧美婷婷在线| 99视频这里有精品| 亚洲欧美日韩在线观看a三区| 在线免费观看亚洲| 天堂va蜜桃一区二区三区 | 免费精品一区二区三区在线观看| 欧美r级电影| 精品国产鲁一鲁****| 三上悠亚一区二区| 麻豆国产欧美一区二区三区r| 深夜日韩欧美| 欧美大人香蕉在线| 成人在线视频www| 欧美韩日高清| 精品久久91| 美女久久久精品| 一本久久知道综合久久| 奇米狠狠一区二区三区| 国产欧美一区二区三区精品酒店| 日韩欧美中文在线观看| 日本欧美一区| 欧美99久久| 色综合综合色| 欧美日韩视频网站| 国产91一区| 精品一区二区三区视频在线播放| 免费美女久久99| 国产成人在线中文字幕| 日韩和的一区二区| 久久最新视频| 欧美人体视频| av在线精品| 亚洲精品555| 亚洲激精日韩激精欧美精品| 亚洲三级精品| www.26天天久久天堂| 亚洲欧洲午夜| 国产精品调教视频| 国内精品久久久久久久97牛牛| 免费av成人在线| 欧洲精品一区| 国产专区精品| 日本中文字幕视频一区| 丝袜美腿一区二区三区| 精品国精品国产自在久国产应用 | 久久激情中文| 国产欧美日韩在线一区二区| 国产超碰精品| 六月婷婷一区| 久久精品国产99久久| 日韩1区2区3区| 日本在线观看不卡视频| 日韩成人激情| 好吊一区二区三区|