日韩精品一区二区三区高清_久久国产热这里只有精品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>
        在线日韩成人| 久久久久久久网站| 欧美一区二区视频免费观看| 国产区欧美区日韩区| 国内揄拍国内精品少妇国语| 亚洲国产精品毛片| 亚洲精品国产精品国自产观看浪潮| 一本色道久久88综合日韩精品| 亚洲最新视频在线播放| 欧美日韩精品二区| 欧美精品1区| 最新精品在线| 国内成人自拍视频| 欧美日韩国产综合视频在线观看| 国产一区在线播放| 黄色工厂这里只有精品| 久久精品一本久久99精品| 久久久综合激的五月天| 国产美女高潮久久白浆| 国产精品sss| 亚洲国产精品第一区二区三区| 欧美日韩在线亚洲一区蜜芽| 国产最新精品精品你懂的| 亚洲乱码国产乱码精品精| 亚洲免费伊人电影在线观看av| 国产乱子伦一区二区三区国色天香| 亚洲欧美日韩综合| 亚洲高清资源综合久久精品| 欧美日本在线播放| 欧美亚洲自偷自偷| 国产精品高清在线观看| 午夜在线精品偷拍| 久久欧美中文字幕| 欧美日韩在线视频首页| 欧美午夜在线视频| 欧美日韩美女| 欧美成人中文字幕在线| 国产精品草莓在线免费观看| 蜜桃精品久久久久久久免费影院| 欧美在线观看你懂的| 亚洲欧美国产不卡| 亚洲欧美欧美一区二区三区| 在线亚洲欧美| 亚洲精选91| 欧美/亚洲一区| 久久五月天婷婷| 久久激情婷婷| 99xxxx成人网| 999在线观看精品免费不卡网站| 亚洲男女毛片无遮挡| 欧美精品一区在线观看| 欧美a级片网站| 国模精品娜娜一二三区| 久久久精品国产99久久精品芒果| 一本大道久久a久久精品综合| 亚洲激情视频在线播放| 国产精品区免费视频| 亚洲综合日韩| 亚洲欧美在线aaa| 亚洲激情在线播放| 国模 一区 二区 三区| 欧美三级午夜理伦三级中文幕| 国产精品视频不卡| 亚洲深夜激情| 欧美在线观看天堂一区二区三区| 欧美精品免费播放| 亚洲福利视频一区二区| 日韩视频在线观看免费| 亚洲精品一二区| 另类av一区二区| 中日韩美女免费视频网址在线观看| 久久久精品久久久久| 亚洲大片在线| 欧美日韩一区二区在线观看视频| 欧美在线国产精品| 久久精品天堂| 国模精品一区二区三区| 欧美主播一区二区三区美女 久久精品人| 久久综合九色九九| 韩国精品在线观看| 国产日韩欧美综合| 国产精品99一区| 欧美视频福利| 亚洲国产精品一区二区第一页| 亚久久调教视频| 91久久国产综合久久| 欧美成人中文字幕在线| 欧美久久综合| 亚洲在线观看视频| 欧美日韩综合不卡| 亚洲午夜精品在线| 国产日韩欧美视频| 一本色道久久88亚洲综合88| 亚洲欧美影音先锋| 亚洲激情黄色| 欧美在线首页| 国产精品入口麻豆原神| 麻豆av福利av久久av| 国产精品另类一区| 在线观看91精品国产入口| 一区二区三区在线视频免费观看| 亚洲第一页中文字幕| 国产偷国产偷亚洲高清97cao| 麻豆成人综合网| 美女黄网久久| 国产一区二区成人久久免费影院| 激情av一区| 亚洲精品一区二区三区四区高清| 欧美一区二区精品在线| 中文久久精品| 亚洲午夜电影| 亚洲精品欧洲精品| 狠狠操狠狠色综合网| 欧美日韩国产精品成人| 制服诱惑一区二区| 久久午夜精品一区二区| 亚洲一区二区精品在线| 午夜视频在线观看一区| 欧美成人日韩| 久久久久久综合| 欧美猛交免费看| 老妇喷水一区二区三区| 欧美在线视频日韩| 亚洲日本视频| 欧美日韩视频在线观看一区二区三区| 亚洲欧美制服中文字幕| 亚洲欧美精品在线观看| 国内精品一区二区三区| 国内自拍一区| 国产精品青草综合久久久久99| 久久成人综合视频| 欧美一级久久久久久久大片| 亚洲在线日韩| 亚洲片在线资源| 亚洲国产欧美一区| 欧美性天天影院| 久久久精品tv| 欧美精品国产一区| 欧美一区二区三区播放老司机| 欧美日韩视频专区在线播放| 日韩亚洲欧美精品| 亚洲高清成人| 久久久国产精品一区二区三区| 国产深夜精品| 亚洲天堂第二页| 欧美日韩精品| 免费毛片一区二区三区久久久| 99re在线精品| 中日韩视频在线观看| 久久精品国内一区二区三区| 久久蜜桃av一区精品变态类天堂| 久久国产精品久久久| 亚洲精品乱码| 久久国产色av| 亚洲美女精品成人在线视频| 欧美日韩中文精品| aⅴ色国产欧美| 亚洲欧洲精品成人久久奇米网| 蜜桃av噜噜一区| 国产精品久久久久久妇女6080| 久久久久一区| 久久久高清一区二区三区| 欧美日韩四区| 亚洲深夜av|