日韩精品一区二区三区高清_久久国产热这里只有精品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簽證是什么)
  • 下一篇:學生簽入境菲律賓條件(學生簽申請指南)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 酒店vi設計 deepseek 幣安下載 AI生圖 AI寫作 aippt AI生成PPT 阿里商辦

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

    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>
        久久久激情视频| 亚洲人成网站色ww在线| 另类成人小视频在线| 国产精品成人免费视频| 久久久国产91| 欧美精品久久一区| 欧美日韩国产欧美日美国产精品| 一区二区日韩| 在线日韩一区二区| 欧美成人日韩| 老司机午夜精品视频在线观看| 国产欧美一区二区精品忘忧草| 黄色精品一区| 欧美日韩一区二区在线播放| 亚洲精品免费在线观看| 欧美91视频| 亚洲狠狠婷婷| 久久精品在线视频| 欧美日韩国产123区| 亚洲深夜激情| 两个人的视频www国产精品| 欧美.com| 欧美中文日韩| 久久只有精品| 性色av一区二区三区在线观看| 国产精品99免视看9| 欧美高清日韩| 毛片一区二区三区| 欧美日韩国产在线一区| 在线看不卡av| 国产自产女人91一区在线观看| 欧美顶级艳妇交换群宴| 一区二区在线视频播放| 日韩视频一区二区三区| 欧美日韩在线综合| 日韩视频在线一区| 国产精品99久久久久久白浆小说| 黄色成人精品网站| 久久综合网络一区二区| 亚洲午夜成aⅴ人片| 国产一区视频网站| 日韩一级黄色av| 亚洲一区在线免费| 欧美亚洲一区| 欧美日韩亚洲一区| 亚洲欧美日韩在线观看a三区| 激情欧美一区二区三区在线观看| 久久色在线播放| 亚洲视频免费观看| 国产日韩欧美电影在线观看| 国产欧美一区二区在线观看| 日韩亚洲成人av在线| 欧美日本在线观看| 欧美久久视频| 在线观看日韩一区| 亚洲品质自拍| 一本不卡影院| 一区二区在线观看视频| 中文av一区特黄| 午夜精品影院在线观看| 久久久免费观看视频| 亚洲一级网站| 99国产精品视频免费观看| 欧美性做爰猛烈叫床潮| 久久精品主播| 亚洲高清久久久| 日韩一区二区免费高清| 一区二区三区视频在线| 国产日韩高清一区二区三区在线| 亚洲国内精品在线| 亚洲免费视频一区二区| 国产综合精品| 国产日本欧美一区二区三区| 欧美亚洲一区二区在线| 欧美理论在线播放| 香蕉久久a毛片| 国产精品麻豆成人av电影艾秋| 亚洲精品视频一区二区三区| 欧美激情va永久在线播放| 日韩一区二区精品视频| 国产精品美女www爽爽爽| 销魂美女一区二区三区视频在线| 亚洲国产日韩一区二区| 欧美日韩在线视频一区二区| 国产美女在线精品免费观看| 日韩视频在线播放| 在线看无码的免费网站| 欧美日韩精品是欧美日韩精品| 欧美日本韩国一区二区三区| 久久久久欧美精品| 亚洲国产三级网| 亚洲精品乱码| 欧美精品午夜视频| 国产精品成人午夜| 国产精品久久久久9999| 国产午夜精品久久久久久免费视| 欧美日韩在线影院| 亚洲欧美在线aaa| 欧美精品色综合| 欧美日韩国产123| 亚洲激情欧美| 亚洲国产美国国产综合一区二区| 国产欧美va欧美不卡在线| 国内一区二区三区| 久久精品国产亚洲5555| 欧美日韩国产探花| 韩日精品中文字幕| 亚洲精品在线电影| 亚洲成人在线免费| 暖暖成人免费视频| 精品成人一区二区三区四区| 亚洲人成欧美中文字幕| 亚洲一区二区在线看| 欧美国产精品久久| 免费在线亚洲| 亚洲裸体视频| 激情综合色丁香一区二区| 国产精品专区一| 欧美成人r级一区二区三区| 国产精品免费福利| 最新国产拍偷乱拍精品| 国产精品爽爽ⅴa在线观看| 久久男人资源视频| 日韩视频精品在线| 欧美aa在线视频| 韩日在线一区| 在线视频国产日韩| 麻豆精品在线观看| 欧美无砖砖区免费| 欧美在线视频二区| 久久视频一区| 免费观看成人鲁鲁鲁鲁鲁视频| 美女黄毛**国产精品啪啪| 欧美日韩在线视频一区| 国产一区二区三区黄视频| 国产精品久久久久婷婷| 美脚丝袜一区二区三区在线观看| 亚洲综合国产精品| 国产自产女人91一区在线观看| 韩国一区二区三区在线观看| 国产精品欧美日韩| 欧美偷拍一区二区| 欧美日韩亚洲一区二区三区在线观看| 久久久久九九九| 亚洲观看高清完整版在线观看| 国产亚洲成年网址在线观看| 欧美日韩国产限制| 欧美一区二粉嫩精品国产一线天| 欧美成年人视频| 在线看欧美日韩| 国产综合久久| 亚洲一级免费视频| 亚洲欧美一区二区原创| 国产一区三区三区| 久久久久**毛片大全| 老鸭窝毛片一区二区三区| 久久裸体视频| 国产亚洲欧美日韩日本| 免费亚洲网站| 欧美精品免费观看二区| 亚洲日本理论电影| 一区二区三区波多野结衣在线观看| 欧美与欧洲交xxxx免费观看| 国内成+人亚洲|