日韩精品一区二区三区高清_久久国产热这里只有精品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號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

    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>
        99精品视频免费全部在线| 浪潮色综合久久天堂| 中日韩视频在线观看| 一本久道久久综合狠狠爱| 性欧美在线看片a免费观看| 亚洲精品视频在线| 亚洲自拍偷拍麻豆| 欧美日韩一区二区三区免费| 国产精品美女久久久久久免费| 在线视频欧美精品| 国产麻豆91精品| 亚洲美女中文字幕| 欧美成人伊人久久综合网| 国产精品素人视频| 亚洲男人第一网站| 99精品视频免费在线观看| 欧美成人一区二区三区| 亚洲看片免费| 亚洲国产裸拍裸体视频在线观看乱了中文| 国产人成精品一区二区三| 久久精品欧美日韩| 国产精品视频久久一区| 亚洲图中文字幕| 免费精品99久久国产综合精品| 久久久久国产成人精品亚洲午夜| 欧美激情综合网| 韩国一区二区三区在线观看| 香蕉久久一区二区不卡无毒影院| 国产精品一区二区久久久久| 一本久久青青| 欧美日一区二区三区在线观看国产免| 亚洲一区二区欧美日韩| 国产视频观看一区| 亚洲国产精品成人久久综合一区| 国产精品多人| 国产精品系列在线| 亚洲综合欧美日韩| 久久精选视频| 欧美高清视频在线播放| 欧美成人dvd在线视频| 亚洲最快最全在线视频| 狠狠入ady亚洲精品| 国产日韩一区欧美| 欧美成人一区二区三区在线观看| 国产精品永久入口久久久| 午夜精品久久久久久| 国产精品国产三级国产aⅴ浪潮| 久久久久九九九| 欧美一区二区精美| 欧美精选在线| 欧美日韩视频专区在线播放| 亚洲黄色一区| 国产精品高潮呻吟久久| 在线观看日韩www视频免费| 久久精品成人欧美大片古装| 欧美午夜一区二区| 久久免费精品视频| 亚洲主播在线观看| 国产伪娘ts一区| 欧美精品一区二区蜜臀亚洲| 亚洲综合视频在线| 一区二区三区毛片| 国产精品第一页第二页第三页| 一区二区三区视频在线观看| 欧美日本精品在线| 亚洲一区二区三区四区在线观看| 欧美激情亚洲另类| 国产综合久久久久影院| 久热综合在线亚洲精品| 久久久久久久激情视频| 亚洲欧美日韩一区二区三区在线| **性色生活片久久毛片| 久久精品国产2020观看福利| 欧美激情第3页| 久热re这里精品视频在线6| 久久久久欧美| 一本一本久久a久久精品综合妖精| 欧美不卡高清| 久久亚洲欧美国产精品乐播| 欧美国产第一页| 亚洲香蕉伊综合在人在线视看| 欧美日韩一级视频| 久久国产精品免费一区| 欧美三级特黄| 国产日韩亚洲欧美| 亚洲精品一线二线三线无人区| 亚洲电影观看| 欧美亚洲一区二区在线观看| 欧美日韩精品三区| 欧美成人国产| 欧美顶级大胆免费视频| 欧美成人资源| 欧美成年人网| 国产日韩欧美一区二区三区四区| 欧美人与禽猛交乱配| 亚洲欧美999| 欧美视频成人| 欧美色精品天天在线观看视频| 国产精品av久久久久久麻豆网| 欧美经典一区二区三区| 欧美日韩综合视频网址| 欧美日韩91| 欧美精品国产| 欧美激情视频一区二区三区在线播放| 国产日韩欧美在线播放不卡| 国产一区二区在线观看免费播放| 久久伊人免费视频| 久久久精品午夜少妇| 一区二区三区在线观看欧美| 午夜久久久久久| 99精品视频免费观看视频| 欧美日韩在线一区| 亚洲色图制服丝袜| 欧美日本成人| 国产一区二区三区四区老人| 亚洲人成毛片在线播放| 好吊成人免视频| 狠狠久久综合婷婷不卡| 亚洲精品免费一二三区| 亚洲一区999| 亚洲欧美福利一区二区| 国产午夜亚洲精品不卡| 欧美精品一区二区高清在线观看| 国产精品卡一卡二卡三| 国产精品日韩一区| 亚洲国产乱码最新视频| 欧美大片一区二区| 亚洲精品乱码久久久久| 中日韩美女免费视频网址在线观看| 激情成人综合网| 国产一区91精品张津瑜| 99成人精品| 欧美日本国产在线| 久久福利一区| 一本色道精品久久一区二区三区| 欧美精品久久久久久久久久| 午夜精品一区二区在线观看| 一区二区三区在线免费观看| 亚洲二区三区四区| 国产麻豆日韩欧美久久| 久久综合影音| 国产视频久久久久久久| 欧美日韩精品一区| 欧美日韩在线亚洲一区蜜芽| 久久精品国内一区二区三区| 欧美日韩亚洲激情| 欧美一区二区三区精品电影| 欧美日韩亚洲一区| 欧美日韩亚洲成人| 夜色激情一区二区| 亚洲精品一区二区在线| 99re亚洲国产精品| 久久国产欧美日韩精品| 亚洲国产天堂久久综合| 欧美亚洲尤物久久| 欧美日韩亚洲综合在线| 国产精品免费在线| 精品动漫一区| 99精品欧美一区二区三区| 久久精品视频在线| 亚洲一卡久久| 亚洲国产小视频在线观看| 亚洲人成网站在线播| 宅男在线国产精品|