国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

代做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簽證是什么)
  • 下一篇:學生簽入境菲律賓條件(學生簽申請指南)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    www国产91| 亚洲一区亚洲二区| 国产精品一区二区三区久久| 欧美亚洲另类视频| 日韩偷拍一区二区| 欧美一级片在线播放| 一区二区三区不卡在线| 国产精品女主播| 国产精品久久久久av福利动漫| 成人毛片100部免费看| 国内偷自视频区视频综合| 欧美日韩高清免费| 欧美国产一二三区| 国产日产欧美精品| 不卡影院一区二区| 91免费的视频在线播放| 国产成人精品视频| 国产精品美女主播| 欧美激情视频网址| 日韩av色在线| 精品日韩在线播放| 久久久免费视频网站| 国产成人短视频| 国产精品伦子伦免费视频| 久久最新资源网| 久久99热精品| 日本久久久a级免费| 欧美国产视频一区| 99久久综合狠狠综合久久止| 久久久久久久久久久免费视频 | 伊人久久av导航| 日本黄网站色大片免费观看| 欧美在线视频网站| 国产日韩欧美综合| 久久9精品区-无套内射无码| 国产精品第8页| 热久久这里只有| 国产中文字幕亚洲| 久久99精品久久久久久秒播放器| 国产精品吊钟奶在线| 日韩激情视频一区二区| 91久久偷偷做嫩草影院| 欧美另类99xxxxx| 欧美极品jizzhd欧美| xxx一区二区| 热99久久精品| 日韩在线中文字| 日本在线高清视频一区| 国产激情久久久| 日韩在线综合网| 91精品国产91久久久久福利| 在线观看福利一区| 国产天堂视频在线观看| 国产精品久久一区| 国产原创精品| 中文字幕精品一区日韩| 91麻豆国产语对白在线观看| 亚洲综合最新在线| 91麻豆精品秘密入口| 自拍视频一区二区三区| 91精品在线看| 视频一区二区综合| 国产精品欧美日韩久久| 国内精品久久久久伊人av| 国产精品久久久久7777| 国产欧美日本在线| 亚洲专区在线视频| 99国产盗摄| 日本一区二区在线视频观看| 久久久久久中文| 精品视频无码一区二区三区| 欧美激情久久久久久| 91精品国产沙发| 欧美国产视频一区| 一区二区三区不卡在线| 久久精品人人做人人爽电影| 国内精品久久久久伊人av| 九九久久久久久久久激情| 91精品国产99久久久久久| 欧美一区观看| 久久99国产精品自在自在app| 97人人香蕉| 亚洲欧洲国产精品久久| 久久久久久久久久国产精品| 国产日韩精品推荐| 热门国产精品亚洲第一区在线 | 欧美一级免费在线观看| 国产精品视频在线播放| 91国在线精品国内播放| 欧美日韩激情四射| 亚洲色婷婷久久精品av蜜桃| 国产精品久久久久9999小说 | 色狠狠久久av五月综合|| 国产精品久久二区| 久草精品电影| 91久热免费在线视频| 麻豆久久久9性大片| 日韩精品一区二区三区丰满| 亚洲中文字幕无码中文字| 国产精品久久久久久久久久久不卡| 91国内在线视频| av网址在线观看免费| 国产日韩精品视频| 免费看黄色a级片| 狠狠色综合一区二区| 欧美日韩精品免费在线观看视频| 色之综合天天综合色天天棕色| 精品国产乱码久久久久久丨区2区| 久久久久久久国产精品| 99精品视频播放| 91久久久亚洲精品| 91精品国产九九九久久久亚洲| 成人3d动漫一区二区三区| 国产免费一区二区三区在线观看| 国产欧美日韩亚洲| 成人乱人伦精品视频在线观看| 97人人澡人人爽| 国产高清在线一区二区| 国产高清一区视频| 久久久久久久久久av| 久久久99免费视频| 国产精品国产亚洲精品看不卡| 国产精品无码av在线播放| 国产精品久久久久91| 精品久久中出| 天堂精品视频| 激情小视频网站| 成人动漫在线观看视频| 久久久久久亚洲精品| 国产精品久久电影观看| 在线不卡视频一区二区| 日韩av大片免费看| 国产日韩一区二区在线| 久久琪琪电影院| 国产精品久久久久久久天堂| 中文字幕色呦呦| 欧美视频免费播放| 国产日韩欧美自拍| 国产二区视频在线播放| 国产精品久久久久久久av电影| 亚洲最大激情中文字幕| 欧美日产一区二区三区在线观看| 超碰97网站| 国产精品精品久久久久久| 欧美一区1区三区3区公司| 国产日韩欧美夫妻视频在线观看| 国产精品18毛片一区二区| 欧美美最猛性xxxxxx| 欧美专区第一页| 久久综合九色综合网站| 色综合久久88| 国内精品久久久久伊人av| 99久久国产综合精品五月天喷水| 国产精品免费一区| 欧美在线影院在线视频| 久久综合九色综合久99| 亚洲精品中文字幕在线| 国产欧美在线一区二区| 国产精品久久久久福利| 欧美最猛黑人xxxx黑人猛叫黄| 91久久久在线| 免费不卡欧美自拍视频| 国内精品久久久久久中文字幕| 国产精品97在线| 美女精品久久久| 国产天堂在线播放| 久久国产精品久久国产精品| 精品欧美一区二区在线观看视频| 日韩亚洲精品视频| 欧美亚洲在线视频| 国产精品视频网址| 狠狠色综合欧美激情| 国产精品久久久久77777| 国产综合免费视频| 精品国产一区二区三区久久久久久| 国产在线视频91| 欧美日产国产成人免费图片| 国产日韩在线看片| 亚洲国产精品www| 国产精品6699| 欧美日韩大片一区二区三区| 国产精品久久在线观看| 国产一区二区中文字幕免费看| 久久夜精品va视频免费观看| 国产精品夜夜夜爽张柏芝| 一本色道久久综合亚洲精品婷婷 | 亚洲欧洲国产精品久久| 久久免费视频观看| 精品1区2区| 亚洲成色www久久网站| www国产91| 国产另类第一区| 日韩精品福利视频| 精品久久久久久综合日本| 91高清免费在线观看| 日韩和欧美的一区二区| 久久亚洲精品一区| 久久精品日产第一区二区三区精品版| 国产资源在线视频| 欧美有码在线观看|