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

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

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

時間:2024-04-03  來源:合肥網(wǎng)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

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品九九九| 国产午夜福利在线播放| 2019日本中文字幕| 色综合久久久久无码专区| 久久精品国产精品青草色艺 | 欧美中在线观看| 久久久999国产精品| 精品视频第一区| 精品丰满人妻无套内射| 成人h在线播放| 日本精品www| 国产精品免费一区| 高清视频一区| 日本精品福利视频| 国产精品福利在线观看| 91精品一区二区三区四区| 日韩精品手机在线观看| 另类美女黄大片| 久久久亚洲国产精品| 人妻av无码专区| 欧美精品免费播放| 久久美女福利视频| 免费av在线一区二区| 亚洲精品9999| 国产精品欧美风情| 国产精品96久久久久久又黄又硬| 欧美亚洲一区在线| 久久久久久av| www.欧美三级电影.com| 国产乱肥老妇国产一区二| 日韩av免费在线| 久久国产精品99国产精| 久久久性生活视频| 国产深夜精品福利| 日韩在线三区| 国产aaa一级片| 久久久久久久久中文字幕| 国产精选在线观看91| 欧美综合第一页| 亚洲最大的av网站| 久久精品国产精品亚洲| 99久久国产免费免费| 欧美国产二区| 午夜肉伦伦影院| 米奇精品一区二区三区在线观看| 久久福利电影| 成人国产精品日本在线| 欧洲精品视频在线| 亚洲精品在线观看免费| 国产精品女人久久久久久| 久久免费观看视频| 国产女精品视频网站免费| 欧美在线视频观看| 欧美极品jizzhd欧美| 国产不卡一区二区在线播放 | 国产精品久久久久久久久电影网 | 日本国产精品视频| 久久亚洲影音av资源网| www.av中文字幕| 欧美一级片中文字幕| 国产精品久久久久一区二区 | 欧美激情精品久久久久久大尺度 | 国产欧美精品va在线观看| 在线观看成人av| 久久五月天综合| www.亚洲成人| 久久久久久久999| 久久久999视频| 国产精品99久久久久久久| 久久艳片www.17c.com| 欧美成人第一区| 中文精品视频一区二区在线观看| 国产成人97精品免费看片| 国精产品一区一区三区视频 | 久久av一区二区三区亚洲| 国产国语videosex另类| 欧美日韩国产精品激情在线播放| 亚洲熟妇无码另类久久久| 国产精品老女人视频| 国产高清精品一区| 国产日本欧美一区二区三区 | 久久国产精品一区二区三区| 国产精品 欧美在线| 91麻豆天美传媒在线| 国产乱码精品一区二区三区不卡| 免费看又黄又无码的网站| 黄黄视频在线观看| 欧美日韩二三区| 免费在线国产精品| 欧美久久在线| 欧美日韩在线观看一区| 欧美精品久久久久久久久久久 | 日本久久久久久久久久久| 日本免费成人网| 欧美主播一区二区三区美女 久久精品人 | 日韩中文字幕av| 久久精品中文字幕一区| 久久人人爽人人爽爽久久| 久久精品青青大伊人av| 国产精品-区区久久久狼| 国产精品久久久久久久久久久久久| 国产精品区二区三区日本| 国产精品精品视频一区二区三区 | 女同一区二区| 精品亚洲第一| 黄色免费高清视频| 麻豆久久久av免费| 国产欧美一区二区视频| 国产狼人综合免费视频| 国产精品一区电影| 91精品视频观看| 国产成人福利视频| 亚洲a在线观看| 久久国产精品精品国产色婷婷| 国产精品99久久久久久白浆小说 | 久久99精品国产99久久| 久久影院理伦片| 国产精品入口尤物| 色综合久久久888| 午夜视频在线瓜伦| 青青草国产免费| 国产一区二区视频在线观看 | 亚洲一卡二卡三卡| 日本高清视频一区二区三区| 黄色一级视频播放| 成人免费观看a| 久久久成人精品一区二区三区| 视频在线观看99| 另类天堂视频在线观看| 亚洲欧洲日韩精品| 欧日韩在线观看| 国产午夜福利100集发布| 69精品丰满人妻无码视频a片| 色婷婷综合久久久久中文字幕1| 国产精品久久999| 亚洲国产一区二区三区在线| 欧美在线3区| 国产欧美自拍视频| 国产成人精品视频| 国产精品久久综合av爱欲tv| 一级日韩一区在线观看| 日本视频一区二区在线观看| 黄色一级片播放| 91精品国产91久久久久久| 日本三级中文字幕在线观看| 亚洲欧美日韩不卡一区二区三区| 亚洲精品一区二区三区四区五区| 萌白酱国产一区二区| 在线观看一区欧美| 欧美久久久久久久久久久久久| 亚洲一区二区久久久久久久| 日韩最新在线视频| 亚洲欧美丝袜| 亚洲精品乱码视频| 日本精品久久久久久久久久| 欧美中文字幕在线视频| 欧洲亚洲一区二区三区四区五区| 狠狠干视频网站| 国产精品一区二区三区在线播放| 国产精品99久久久久久人 | 91精品国产91久久| 日韩在线中文字幕| 欧美成人中文字幕在线| 岛国视频一区免费观看| 欧美精品七区| 国产欧美日韩中文| 久久精品二区| 超碰91人人草人人干| 亚洲精品不卡| 欧美 日韩 国产一区| 操人视频欧美| 久久精品欧美视频| 影音先锋欧美在线| 日韩免费毛片视频| 日韩在线视频免费观看| 亚洲国产一区二区三区在线| 国产精品一区在线播放| 国产精品久久久久久久9999| 欧美在线观看黄| 日本亚洲精品在线观看| 午夜欧美大片免费观看| 免费在线观看一区二区| 97精品国产97久久久久久春色| 国产精品视频网址| 久久精品国产第一区二区三区最新章节| 久久久久久久久久久国产| 午夜精品久久久内射近拍高清| 国产精选久久久久久| 久久亚洲影音av资源网| 精品91免费| 久久精品视频99| 欧美极品一区| 国产精品老牛影院在线观看| 精品日本一区二区三区| 久久深夜福利免费观看| 欧美亚洲黄色片| 久久人人爽人人爽爽久久| 欧美国产二区| 国产精品免费在线| 欧美精品第三页|