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.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評 開團(tuán)工具
    出評 開團(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ī)場巴士4號線
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士1號線
    合肥機(jī)場巴士1號線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(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

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

          欧美 日韩 国产在线| 9色国产精品| 亚洲天堂成人在线观看| 久久久久久91香蕉国产| 国产精品丝袜白浆摸在线| 亚洲精品色图| 欧美韩国在线| 亚洲国产三级在线| 欧美一区二区视频在线| 欧美日韩一区二区免费视频| 久久久久九九九| 久久在线观看视频| 久久中文久久字幕| 欧美夫妇交换俱乐部在线观看| 亚洲一区二区动漫| 欧美激情综合网| 有坂深雪在线一区| 伊人精品久久久久7777| 国产精品免费网站| 国产一区二区三区在线播放免费观看 | 亚洲欧洲精品一区二区三区 | 久久精品国产久精国产爱| av72成人在线| 亚洲国产天堂久久综合网| 国产日韩亚洲| 在线欧美影院| 欧美日韩精品不卡| 一区在线观看| 亚洲欧美日韩国产成人精品影院| 麻豆精品精华液| 欧美在线视频一区二区| 亚洲看片免费| 欧美一区影院| 激情欧美亚洲| 欧美成人嫩草网站| 亚洲精品乱码久久久久久日本蜜臀| 欧美高清视频在线观看| 日韩亚洲欧美一区二区三区| 欧美日韩精品| 久久aⅴ国产紧身牛仔裤| 国内外成人免费激情在线视频网站| 欧美综合激情网| 亚洲区第一页| 国产精品视频1区| 久久婷婷蜜乳一本欲蜜臀| 亚洲国产成人一区| 欧美日韩一区二区三区高清| 午夜精品99久久免费| 伊人精品视频| 欧美视频免费在线| 久久精品2019中文字幕| 91久久中文字幕| 国产精品日韩欧美大师| 久久综合五月天婷婷伊人| 宅男噜噜噜66一区二区66| 国产在线高清精品| 欧美日韩成人在线播放| 欧美日韩激情小视频| 欧美三级午夜理伦三级中视频| 国产精品国产一区二区| 国产欧美日韩亚洲精品| 在线观看91精品国产入口| 亚洲精品午夜| 性亚洲最疯狂xxxx高清| 欧美日韩国产成人| 中日韩男男gay无套| 先锋影音国产一区| 久久国产精品一区二区三区| 免费精品视频| 国自产拍偷拍福利精品免费一| 激情av一区二区| 国产精品久久久久久久7电影 | 在线成人av.com| 在线精品视频一区二区| 亚洲欧美另类久久久精品2019| 久久综合狠狠综合久久综青草| 国产噜噜噜噜噜久久久久久久久| 国产精品久久久久久亚洲调教| 欧美激情一区二区三区在线| 国产精品成人播放| 在线性视频日韩欧美| 欧美精品色网| 亚洲一级免费视频| 久久嫩草精品久久久精品一| 国产视频亚洲精品| 亚洲另类自拍| 久久九九久精品国产免费直播| 欧美日韩在线播放三区| 一本到12不卡视频在线dvd| 亚洲精品午夜精品| 亚洲久久一区二区| 欧美视频不卡中文| 国产精品一区免费视频| 一区二区三区视频在线| 欧美日韩一区自拍| 久久精品国产久精国产爱| 亚洲欧美日韩精品| 亚洲欧美不卡| 午夜激情一区| 午夜精品久久久| 欧美一区二区精品久久911| 亚洲一区二区综合| 亚洲一区区二区| 午夜在线精品| 久久精品卡一| 久久久青草青青国产亚洲免观| 欧美中文字幕视频| 久久国产精品亚洲va麻豆| 久久精品一区二区| 欧美69wwwcom| 欧美日韩福利| 国产日韩精品一区| 精品成人在线观看| 亚洲精选在线| 亚洲欧美中文日韩v在线观看| 亚洲欧美日韩在线一区| 久久国产精品一区二区三区四区| 久久精品99国产精品日本| 可以免费看不卡的av网站| 国产精品欧美日韩一区| 亚洲制服av| 宅男噜噜噜66国产日韩在线观看| 亚洲视频一区二区| 久久精品99国产精品酒店日本| 久久婷婷国产综合尤物精品| 欧美久久久久久| 国产精品你懂的在线欣赏| 国内视频一区| 亚洲视频第一页| 久久黄色影院| 欧美日韩国产不卡在线看| 国产欧美日本| 日韩视频在线免费观看| 欧美在现视频| 欧美精品一区二区三区高清aⅴ| 欧美视频中文一区二区三区在线观看| 国产九色精品成人porny| 亚洲高清不卡av| 西西裸体人体做爰大胆久久久| 欧美国产1区2区| 国产欧美精品日韩| 亚洲精品少妇| 久久国产夜色精品鲁鲁99| 欧美日韩1080p| 尤物yw午夜国产精品视频明星| 亚洲视频1区| 欧美成人资源| 国产人成精品一区二区三| 一区二区精品在线| 久久久视频精品| 国产精品国产a级| 欧美一区二区三区四区视频 | 亚洲美女免费精品视频在线观看| 午夜精品一区二区三区在线播放| 欧美成人dvd在线视频| 国产欧美大片| 国产精品99久久久久久久久| 久久久一区二区| 国产欧美一区二区三区在线看蜜臀| 亚洲六月丁香色婷婷综合久久| 久久国产免费| 国产亚洲欧美日韩一区二区| 一区二区日韩精品| 欧美另类videos死尸| 永久免费毛片在线播放不卡| 欧美一区二区| 国产精品爽爽爽| 亚洲伊人观看| 国产精品裸体一区二区三区| 99精品欧美一区二区蜜桃免费| 免费亚洲电影在线观看| 在线精品国精品国产尤物884a| 久久久精品性| 加勒比av一区二区| 久久另类ts人妖一区二区| 国产一区二区中文字幕免费看| 午夜精品久久久久久久99水蜜桃 | 亚洲精品久久嫩草网站秘色| 暖暖成人免费视频| 最新中文字幕亚洲| 欧美精品二区| 一区二区三区国产盗摄| 欧美日韩免费观看一区| 亚洲精品午夜| 欧美日韩一二三区| 亚洲一区日本| 国产精品夜夜夜| 午夜视频精品| 黄色欧美日韩| 欧美激情第1页| 99精品久久免费看蜜臀剧情介绍| 欧美乱在线观看| 亚洲一区二区三区精品动漫| 国产精品色婷婷久久58| 欧美一区二区三区视频在线观看| 国产一区免费视频| 免费欧美日韩| 在线视频日本亚洲性| 国产伦精品一区二区三区高清版| 久久精品国产精品亚洲精品|