日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        最新热久久免费视频| 欧美日韩国产精品| 午夜精品影院在线观看| 欧美日韩一区二区三区在线观看免| 日韩午夜av电影| 亚洲欧美日韩在线不卡| 日韩视频一区二区三区在线播放| 欧美精品在线一区二区三区| 日韩一级精品| 永久91嫩草亚洲精品人人| 在线视频日本亚洲性| 国产精品日韩在线| 亚洲国产成人高清精品| 欧美精品粉嫩高潮一区二区| 国产精品一区毛片| 国内精品久久久久国产盗摄免费观看完整版| 日韩天堂av| 国产一区二区三区日韩| 欧美精品激情在线| 亚洲三级色网| 国产亚洲第一区| 亚洲一区视频| 亚洲综合久久久久| 亚洲视频电影在线| 国产精品久久久久久久久婷婷| 宅男精品导航| 国产精品久久999| 欧美国产专区| 亚洲一区影音先锋| 欧美屁股在线| 亚洲欧美视频一区二区三区| 精品成人一区二区三区| 亚洲欧美日本视频在线观看| 久久免费观看视频| 激情五月***国产精品| 亚洲午夜性刺激影院| 欧美日韩亚洲精品内裤| 国语自产精品视频在线看8查询8| 亚洲永久视频| 亚洲欧美国产一区二区三区| 国产一区二区按摩在线观看| 国产精品久久久久高潮| 亚洲美女91| 国产精品护士白丝一区av| 欧美极品一区二区三区| 欧美成人免费大片| 欧美亚洲系列| 国产在线精品成人一区二区三区| 浪潮色综合久久天堂| 亚洲国产日韩一区二区| 国产最新精品精品你懂的| 伊人久久噜噜噜躁狠狠躁| 夜夜躁日日躁狠狠久久88av| 久久综合伊人77777蜜臀| 国产一区二区三区网站| 欧美国产一区二区| 欧美中文日韩| 久久九九精品| 国产日韩一区二区三区在线播放| 欧美激情第三页| 欧美网站大全在线观看| 国产精品亚洲а∨天堂免在线| 99国产精品视频免费观看一公开| 亚洲高清一二三区| 欧美一区2区三区4区公司二百| 久久av一区二区三区漫画| 在线视频欧美精品| 国内精品久久久久久久97牛牛| 欧美寡妇偷汉性猛交| 女同性一区二区三区人了人一| 99精品国产一区二区青青牛奶| 一区二区三区在线视频播放| 国产区亚洲区欧美区| 洋洋av久久久久久久一区| 久久亚洲精品视频| 久久综合狠狠综合久久综合88| 国产在线观看精品一区二区三区| 亚洲网站在线看| 激情一区二区| 亚洲精品日韩综合观看成人91| 99精品国产99久久久久久福利| 亚洲黄色免费网站| 亚洲在线视频免费观看| 国产精品稀缺呦系列在线| 欧美mv日韩mv国产网站| 国产精品欧美日韩| 国产一区二区三区在线观看精品| 亚洲精品中文字幕在线| 欧美精品高清视频| 国产精品区一区二区三区| 亚洲精品免费在线| 欧美久久成人| 国产日韩欧美日韩大片| 国产亚洲欧美另类中文| 日韩一区二区精品视频| 亚洲乱码精品一二三四区日韩在线| 亚洲影院在线观看| 麻豆av一区二区三区| 亚洲大片精品永久免费| 亚洲精品在线三区| 久久综合久久综合久久综合| 性久久久久久久| 国产精品二区在线| 国产欧美日本在线| 日韩午夜精品| 国产伦一区二区三区色一情| 欧美主播一区二区三区美女 久久精品人| 国产精品男gay被猛男狂揉视频| 亚洲欧洲在线视频| 一区二区三区精品视频在线观看| 欧美xx视频| 韩国三级电影久久久久久| 老司机精品久久| 国产美女高潮久久白浆| 久久久激情视频| 欧美精品在线一区| 亚洲视频在线观看| 欧美一区二区三区成人| 欧美在线www| 国产一区二区三区在线免费观看| 欧美本精品男人aⅴ天堂| 国产精品一区二区久久精品| 国产在线精品成人一区二区三区| 亚洲日韩中文字幕在线播放| 在线性视频日韩欧美| 亚洲欧美另类综合偷拍| 国产精品夜夜夜一区二区三区尤| 欧美精品1区2区3区| 亚洲精品一二三区| 亚洲国产三级| 国产亚洲精品美女| 一区二区欧美在线| 国产自产女人91一区在线观看| 欧美一区二粉嫩精品国产一线天| 蜜臀99久久精品久久久久久软件| 精品9999| 欧美日韩hd| 卡通动漫国产精品| 在线亚洲一区观看| 亚洲国产天堂久久综合网| 黄色成人小视频| 亚洲一区二区三区中文字幕在线| 欧美aa在线视频| 亚洲视频一二三| 久久躁狠狠躁夜夜爽| 国产精品r级在线| 亚洲特级毛片| 亚洲欧洲在线免费| 伊人久久婷婷色综合98网| 午夜一区二区三区在线观看| 亚洲你懂的在线视频| 国语自产精品视频在线看抢先版结局| 久久人人九九| 亚洲精品综合| 国产伦精品一区| 欧美视频在线看| 亚洲美女黄色| 亚洲电影免费观看高清完整版| 免费欧美在线视频| 亚洲欧美在线一区| 韩日欧美一区二区三区| 性欧美8khd高清极品| 久久中文欧美| 亚洲精品久久久一区二区三区|