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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          国产精品国产亚洲精品看不卡15| 嫩草影视亚洲| 激情欧美一区二区三区| 久久影音先锋| 亚洲看片一区| 国产午夜精品福利| 欧美成人精品一区二区| 一区二区三区 在线观看视频| 国产精品入口麻豆原神| 久久欧美肥婆一二区| 日韩视频在线一区| 国产精品影音先锋| 欧美91大片| 亚洲欧美另类国产| 玉米视频成人免费看| 欧美日韩色综合| 久久国产一区二区三区| 亚洲美女黄网| 国内自拍视频一区二区三区| 欧美国产专区| 欧美一区二区三区日韩视频| 亚洲啪啪91| 国产在线观看一区| 欧美三级电影一区| 免费观看日韩av| 欧美一区二区精品| 日韩视频在线免费| 国内精品久久久久影院优| 欧美日韩国产免费| 老司机午夜免费精品视频| 亚洲综合视频在线| 亚洲人成人一区二区三区| 国产精品天天看| 欧美精品一区二区三区四区| 久久久久国产精品人| 亚洲一区二区三区影院| 亚洲激情自拍| 激情成人av在线| 国产噜噜噜噜噜久久久久久久久 | 久久久精品久久久久| 99亚洲视频| 91久久中文字幕| 精品91在线| 国产欧美日韩亚洲精品| 国产精品theporn| 久久夜色精品亚洲噜噜国产mv| 亚洲一区尤物| 亚洲视频在线二区| 夜夜嗨av一区二区三区| 亚洲精品久久在线| 亚洲国产高清自拍| 黄色日韩网站| 一区二区视频在线观看| 国产亚洲欧洲| 国产色视频一区| 国产女人精品视频| 国产美女搞久久| 国产精品久在线观看| 国产精品久久久久秋霞鲁丝| 欧美日韩免费看| 欧美视频免费看| 欧美手机在线视频| 国产精品国产三级国产| 国产精品极品美女粉嫩高清在线 | 亚洲看片网站| 亚洲精品欧洲| 正在播放欧美一区| 亚洲在线免费| 欧美在线免费观看视频| 欧美诱惑福利视频| 久久精品一区二区三区不卡| 久久久综合激的五月天| 久久综合九色综合久99| 欧美α欧美αv大片| 欧美激情女人20p| 欧美视频精品在线| 国产精品盗摄久久久| 国产精品色婷婷| 国产一区二区三区网站 | 欧美三级日韩三级国产三级| 欧美调教视频| 国产亚洲一区二区三区在线播放| 黄色一区二区三区| 最新亚洲一区| 亚洲一区二区三区精品视频| 性xx色xx综合久久久xx| 久久裸体视频| 欧美日韩一级片在线观看| 国产精品女人毛片| 国内精品久久久| 亚洲区一区二| 小黄鸭精品aⅴ导航网站入口| 久久精品中文字幕一区二区三区| 女女同性女同一区二区三区91| 欧美日韩国产欧美日美国产精品| 国产精品亚洲人在线观看| 精品成人久久| 亚洲精品在线看| 欧美一区二粉嫩精品国产一线天| 狂野欧美激情性xxxx| 欧美日韩亚洲视频| 国产一区二区三区日韩| 99re热精品| 久久久之久亚州精品露出| 欧美日韩午夜剧场| 狠狠噜噜久久| 亚洲在线网站| 女同性一区二区三区人了人一 | 日韩一级网站| 久久久久国产精品麻豆ai换脸| 欧美日韩国产系列| 一区二区三区自拍| 亚洲一区在线播放| 欧美chengren| 国产午夜精品久久| 亚洲视屏在线播放| 欧美99在线视频观看| 国产日韩欧美在线观看| 99国产麻豆精品| 免费视频一区二区三区在线观看| 国产精品户外野外| 亚洲免费观看| 久久综合国产精品| 国产亚洲欧美一区| 在线视频亚洲一区| 欧美激情亚洲国产| 黄色成人精品网站| 欧美亚洲午夜视频在线观看| 欧美三级视频| 日韩一级大片| 欧美国产日韩一区| 影音先锋成人资源站| 欧美在线高清| 国产欧美一区二区三区在线老狼| 99精品欧美一区二区三区综合在线| 久久综合99re88久久爱| 国产视频亚洲精品| 亚洲欧美久久久| 国产精品久久国产精品99gif | 一区精品久久| 久久精品国产亚洲一区二区三区| 欧美性久久久| 亚洲视频一起| 国产精品高清在线| 一区二区三区四区蜜桃| 欧美日韩高清免费| 9久re热视频在线精品| 欧美日韩1234| 亚洲精品乱码| 欧美另类视频| 一本大道久久a久久精二百| 欧美屁股在线| 夜夜嗨一区二区三区| 欧美午夜免费影院| 亚洲午夜未删减在线观看| 欧美四级剧情无删版影片| 亚洲天堂黄色| 国产精品在线看| 欧美伊人久久大香线蕉综合69| 国产精品男gay被猛男狂揉视频| 亚洲免费视频在线观看| 国产欧美精品xxxx另类| 午夜欧美精品| 韩日精品视频一区| 美女免费视频一区| 亚洲精品综合久久中文字幕| 欧美日本韩国| 亚洲欧美国产不卡| 国产一区二区你懂的| 久久综合中文色婷婷| 亚洲日本免费| 欧美视频中文字幕| 欧美亚洲视频在线看网址| 好看不卡的中文字幕| 欧美国产综合视频| 亚洲视频狠狠| 国产一区二区三区高清| 欧美电影资源| 亚洲欧美文学| 一区二区在线免费观看| 欧美日韩一区二区三区免费看| 亚洲欧美一区二区三区久久| 激情六月婷婷久久| 欧美区一区二| 欧美一区二区三区视频在线观看| 激情五月***国产精品| 欧美日本精品| 香蕉尹人综合在线观看| 亚洲激情自拍| 国产精品亚洲片夜色在线| 免费久久99精品国产自在现线| 一本到12不卡视频在线dvd| 国产色综合网| 欧美美女视频| 久久免费视频这里只有精品| 亚洲免费观看| 在线看国产日韩| 国产精品系列在线播放| 欧美黄色aaaa| 久久久久久久一区二区|