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.

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(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ī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
  • 短信驗(yàn)證碼 目錄網(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號(hào)-3 公安備 42010502001045

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

          9000px;">

                www.国产com| 成人乱码一区二区三区| av中文在线观看| 欧美日韩在线观看不卡| 亚洲欧美一区二区三区四区五区| 黑鬼狂亚洲人videos| 少妇献身老头系列| 国精品人伦一区二区三区蜜桃| 日韩三级久久久| 国产福利资源在线| 无码免费一区二区三区| 国产一级黄色录像| 中文字幕在线观看二区| 激情五月深爱五月| 亚洲一区中文字幕永久在线| 久草福利在线观看| 夜夜嗨aⅴ一区二区三区| 蜜桃av乱码一区二区三区| 中文字幕在线2018| 精产国品一区二区| 中文字幕永久免费| 久草国产在线视频| 亚洲天堂小视频| 区一区二在线观看| 亚洲精品视频在线观看免费视频| 麻豆精品国产免费| 91丨porny丨在线中文| 男人的天堂a在线| 91精品国产综合久| 日韩国产亚洲欧美| 丰满人妻一区二区三区无码av| 日本视频在线观看免费| 波多野结衣一二三四区| 手机av免费观看| 国产亚洲精品女人久久久久久| 色屁屁草草影院ccyy.com| 国产成人av免费在线观看| 午夜视频在线观看国产| 精品国产乱子伦| 992在线观看| 天天色综合av| 久久精品免费在线| 岛国av在线免费| 中文字幕欧美人妻精品一区蜜臀 | 手机在线成人av| 国产免费一级视频| 亚洲精品色午夜无码专区日韩| 秋霞视频一区二区| 国产污污视频在线观看| 2021亚洲天堂| 在线免费看av的网站| 免费国产羞羞网站美图| 丰满的亚洲女人毛茸茸| 污污污www精品国产网站| 国产精品熟女久久久久久 | 国产亚洲精品av| 在线视频1卡二卡三卡| 欧美精品xxxxx| 国产视频一区二区三| 亚洲天堂2024| 久久亚洲成人av| 亚洲色偷精品一区二区三区| 日韩网站在线播放| 丰满少妇乱子伦精品看片| 伊人成人在线观看| 日韩va在线观看| 久久久精品成人| 国产婷婷在线观看| 成人免费a视频| 91插插插插插插插插| 中文字幕精品无码亚| 污污内射在线观看一区二区少妇| 男人天堂手机在线观看| 国产真实乱偷精品视频| 国产成人精品一区二三区四区五区| 亚洲精品电影院| 在线免费看毛片| 天天插天天操天天干| 日本在线观看视频网站| 男人天堂av网| 美女在线视频一区二区| 久久国产免费观看| 国产精品久久久国产盗摄| 99热99这里只有精品| 一级国产黄色片| 91亚洲一线产区二线产区| 一本一道无码中文字幕精品热| 中日韩av在线| 中文字幕在线观看免费视频| 中文字幕黄色片| 亚洲图色中文字幕| av免费观看网址| 不卡av免费在线| 国产福利在线免费| 国产精品日日夜夜| 国产香蕉视频在线| 国产污视频在线看| 精品人妻无码一区二区三区蜜桃一| 国产美女高潮视频| 国产在线观看免费av| 国产成人无码www免费视频播放| 粉嫩精品久久99综合一区| 国产污视频在线看| 久久精品无码av| 强伦人妻一区二区三区| 日韩欧美一级大片| 无码人妻精品一区二区三区9厂| 樱花草www在线| 亚洲精品中文字幕成人片| 亚洲影视一区二区| 成人免费看片98欧美| 黄色在线视频网| 欧美一级免费片| 性色av浪潮av| 亚洲熟妇一区二区| 国产精品老女人| 国产精品福利导航| 激情五月激情综合| 欧美在线 | 亚洲| 五月婷婷视频在线| 亚洲一区二区偷拍| 国产微拍精品一区| 欧美性猛交xxxx乱大交少妇| 亚洲 精品 综合 精品 自拍| 自拍视频一区二区| 国产盗摄x88av| 欧美熟妇乱码在线一区| 婷婷激情五月综合| 99久久人妻无码中文字幕系列| 国产真人真事毛片| 日韩在线 中文字幕| 亚洲国产精品一区二区久久hs| wwwav网站| 麻豆国产精品一区| 亚洲成a人片在线www| 亚洲精品乱码久久久久久蜜桃图片| 91久久久久国产一区二区| 国产又粗又黄又爽| 日韩在线 中文字幕| 亚洲专区在线播放| 国产一级片自拍| 在线观看国产精品入口男同| 91久久国产综合| 男女免费视频网站| 亚洲日本黄色片| 精品日韩在线视频| 亚洲av无码一区东京热久久| 成人小说亚洲一区二区三区| 美女喷白浆视频| 亚洲精品无amm毛片| 久久久精品视频免费观看| 中文字幕一区二区三区四 | 日韩精品――中文字幕| 亚洲天堂伊人网| 蜜桃av噜噜一区二区三区麻豆| 亚洲AV午夜精品| 精品视频第一页| 中文字幕在线视频精品| 久草综合在线视频| 亚洲精品男人天堂| 蜜臀尤物一区二区三区直播| 亚洲欧美自偷自拍| 妺妺窝人体色WWW精品| 97人妻天天摸天天爽天天| 久久久久女人精品毛片九一| 中文字幕久久久久久久| 久一区二区三区| 在线 丝袜 欧美 日韩 制服| 九九热精品在线观看| 亚洲久久久久久| 欧美日韩黄色网| 国产suv一区二区| 在线视频 日韩| 嫩草av久久伊人妇女超级a| 一本色道久久亚洲综合精品蜜桃| 久久无码人妻精品一区二区三区| 亚洲视频在线观看一区二区| 欧美一区二区三区久久久| jizz中文字幕| 午夜视频在线网站| 免费在线黄色网| 插我舔内射18免费视频| 亚洲AV无码成人精品区东京热| 精品肉丝脚一区二区三区| 中文字幕一区二区三区四| 久久久久性色av无码一区二区| 一个色综合久久| 天天色棕合合合合合合合| 免费一级a毛片夜夜看| av2014天堂网| 性猛交富婆╳xxx乱大交天津| 久久中文字幕精品| 国产精品久久久免费观看| 亚洲天堂网在线观看视频| 色婷婷在线影院| 久久无码精品丰满人妻| 国产第一页在线播放| 亚洲国产果冻传媒av在线观看| 日本不卡一二区| 国产又大又黄视频|