13-4 遞增?遞減? - HackMD
文章推薦指數: 80 %
如果滿足a1≥a2≥a3≥a4≥a5,此數列「遞減」。
因為此題輸出有多種狀況,故需將程式碼複製5次,都判斷正確才給分,每個輸出都要換行。
當嚴格遞減時,也會同時印出此 ...
DICEC語言程式破解
===
>[name=CHAWTeam]
2022年最新版!重新編排題目順序符合原版教材,重新細修程式碼盡量避免系統判定為抄襲。
:::danger
-因應平臺有變更題目與調整編排,我們正著手修正本筆記全部內容,請耐心等候更新~
-我們會保留舊題目的文章,可以當作課後練習,編排於各區段的末端。
:::
:::danger
責任聲明:
本文章筆記僅提供程式解題說明攻略,純粹分享個人心得與想法。
題目、輸出範例與範例程式均屬「[十八豆教育科技有限公司](http://www.18dice.tw)」旗下平臺「[DICE程式設計精準教學平台](http://www.18dice.tw/diceweb)」所有。
:::
:::warning
-本筆記仍處編輯中。
如未標上題目或錯誤連結,均屬於未公開發表的文章筆記。
我們已經盡全力編撰與校稿中,請耐心等候更新。
-若有任何勘誤、建議或疑問,歡迎留言或聯繫:[[email protected]](mailto:[email protected])
:::
-[目錄](https://hackmd.io/@CHAWTeam/DiceC)
-[C語言教學-現代C語言小心得](https://hackmd.io/@Sm-anD2jSA-PISAICYtLxA/HJPpJjvw7)
程式語言
---
-[C語言](https://hackmd.io/@CHAWTeam/DiceC)
-[Python](https://hackmd.io/@CHAWTeam/DicePy)
-[C++(尚未編撰)](!)
1.公告
---
-1-1視訊會議
-1-2白板Jamboard
2.輸出函式
---
-[2-1測試系統](https://hackmd.io/@CHAWTeam/DiceC-2-1)
-[2-2SayHello](https://hackmd.io/@CHAWTeam/DiceC-2-2)
-[2-3印三角形](https://hackmd.io/@CHAWTeam/DiceC-2-3)
-[2-4不是計算](https://hackmd.io/@CHAWTeam/DiceC-2-4)
-[2-5來個表格](https://hackmd.io/@CHAWTeam/DiceC-2-5)
--[2_1倒印三角形](https://hackmd.io/@CHAWTeam/DiceC-2_1)
-[2_2身高體重](https://hackmd.io/@CHAWTeam/DiceC-2_2)
3.變數與指定運算子
---
-[3-1指定整數](https://hackmd.io/@CHAWTeam/DiceC-3-1)
-[3-2加上一些形容詞](https://hackmd.io/@CHAWTeam/DiceC-3-2)
-[3-3指定浮點數](https://hackmd.io/@CHAWTeam/DiceC-3-3)
-[3-4整數與浮點數](https://hackmd.io/@CHAWTeam/DiceC-3-4)
-[3-5=不是等號](https://hackmd.io/@CHAWTeam/DiceC-3-5)
-[3-6自主學習](https://hackmd.io/@CHAWTeam/DiceC-3-6)
--[3_1印出2個指定的整數](https://hackmd.io/@CHAWTeam/DiceC-3_1)
-[3_2最後來的是主人](https://hackmd.io/@CHAWTeam/DiceC-3_2)
-[3_3數蘋果](https://hackmd.io/@CHAWTeam/DiceC-3_3)
-[3_4=不是等號](https://hackmd.io/@CHAWTeam/DiceC-3_4)
-[3_5加法再現](https://hackmd.io/@CHAWTeam/DiceC-3_5)
-[3_6四捨五入](https://hackmd.io/@CHAWTeam/DiceC-3_6)
-[3_7計算一下](https://hackmd.io/@CHAWTeam/DiceC-3_7)
-[3_8自主學習](https://hackmd.io/@CHAWTeam/DiceC-3_8)
4.輸入函式
---
-[4-11個整數](https://hackmd.io/@CHAWTeam/DiceC-4-1)
-[4-2倒序](https://hackmd.io/@CHAWTeam/DiceC-4-2)
-[4-3浮點數](https://hackmd.io/@CHAWTeam/DiceC-4-3)
-[4-43個浮點數](https://hackmd.io/@CHAWTeam/DiceC-4-4)
-[4-5長方形](https://hackmd.io/@CHAWTeam/DiceC-4-5)
-[4-6自主學習](https://hackmd.io/@CHAWTeam/DiceC-4-6)
--[4_1輸入2個整數](https://hackmd.io/@CHAWTeam/DiceC-4_1)
-[4_2兩整數相加](https://hackmd.io/@CHAWTeam/DiceC-4_2)
-[4_3身高與體重](https://hackmd.io/@CHAWTeam/DiceC-4_3)
-[4_4印出資料](https://hackmd.io/@CHAWTeam/DiceC-4_4)
5.算術運算子
---
-[5-1四則運算](https://hackmd.io/@CHAWTeam/DiceC-5-1)
-[5-2餘數](https://hackmd.io/@CHAWTeam/DiceC-5-2)
-[5-3梯形面積](https://hackmd.io/@CHAWTeam/DiceC-5-3)
-[5-4溫度換算](https://hackmd.io/@CHAWTeam/DiceC-5-4)
-[5-5三次溫度換算](https://hackmd.io/@CHAWTeam/DiceC-5-5)
-[5-6時間計算](https://hackmd.io/@CHAWTeam/DiceC-5-6)
-[5-7自主學習](https://hackmd.io/@CHAWTeam/DiceC-5-7)
--[5_1緞帶長度](https://hackmd.io/@CHAWTeam/DiceC-5_1)
-[5_2年利率](https://hackmd.io/@CHAWTeam/DiceC-5_2)
-[5_3圓周長與面積](https://hackmd.io/@CHAWTeam/DiceC-5_3)
-[5_4衛星繞地球](https://hackmd.io/@CHAWTeam/DiceC-5_4)
-[5_5製作時間](https://hackmd.io/@CHAWTeam/DiceC-5_5)
6.單一選擇
---
-[6-1選正數](https://hackmd.io/@CHAWTeam/DiceC-6-1)
-[6-2選偶數](https://hackmd.io/@CHAWTeam/DiceC-6-2)
-[6-3發現不相等](https://hackmd.io/@CHAWTeam/DiceC-6-3)
-[6-4輸出絕對值](https://hackmd.io/@CHAWTeam/DiceC-6-4)
-[6-5預算夠不夠?](https://hackmd.io/@CHAWTeam/DiceC-6-5)
7.用if交換變數
---
-[7-1比大小](https://hackmd.io/@CHAWTeam/DiceC-7-1)
-[7-2三數比大小](https://hackmd.io/@CHAWTeam/DiceC-7-2)
-[7-3五數比大小](https://hackmd.io/@CHAWTeam/DiceC-7-3)
-[7-4判斷閏年](https://hackmd.io/@CHAWTeam/DiceC-7-4)
8.二分選擇
---
-[8-1奇數還是偶數?](https://hackmd.io/@CHAWTeam/DiceC-8-1)
-[8-2是否能構成三角形?](https://hackmd.io/@CHAWTeam/DiceC-8-2)
-[8-3是否直角三角形?](https://hackmd.io/@CHAWTeam/DiceC-8-3)
-[8-4是否與7相關?](https://hackmd.io/@CHAWTeam/DiceC-8-4)
-[8-5是否為3的倍數-1?](https://hackmd.io/@CHAWTeam/DiceC-8-5)
-[8-6是否為3的倍數-2?](https://hackmd.io/@CHAWTeam/DiceC-8-6)
-[8-7是否為迴文?](https://hackmd.io/@CHAWTeam/DiceC-8-7)
-[8-8簡易分數查詢](https://hackmd.io/@CHAWTeam/DiceC-8-8)
9.比較中有比較
---
-[9-1分數等第](https://hackmd.io/@CHAWTeam/DiceC-9-1)
-[9-2正三角形嗎?](https://hackmd.io/@CHAWTeam/DiceC-9-2)
-[9-3玩玩二分法](https://hackmd.io/@CHAWTeam/DiceC-9-3)
-[9-4英文大小寫](https://hackmd.io/@CHAWTeam/DiceC-9-4)
10.多選一
---
-[10-1點套餐](https://hackmd.io/@CHAWTeam/DiceC-10-1)
-[10-2猴子上學](https://hackmd.io/@CHAWTeam/DiceC-10-2)
-[10-3逛牛墟](https://hackmd.io/@CHAWTeam/DiceC-10-3)
11.選擇綜合應用
---
-[11-1分數等第](https://hackmd.io/@CHAWTeam/DiceC-11-1)
-[11-2年齡說](https://hackmd.io/@CHAWTeam/DiceC-11-2)
-[11-3月份判斷](https://hackmd.io/@CHAWTeam/DiceC-11-3)
-[11-4三角形型別](https://hackmd.io/@CHAWTeam/DiceC-11-4)
-[11-5BMI](https://hackmd.io/@CHAWTeam/DiceC-11-5)
-[11-93N+1-2](https://hackmd.io/@CHAWTeam/DiceC-11-9)
-[11-10判斷閏年](https://hackmd.io/@CHAWTeam/DiceC-11-10)
--[11_1薪資計算](https://hackmd.io/@CHAWTeam/DiceC-11_1)
-[11_2BMI-1](https://hackmd.io/@CHAWTeam/DiceC-11_2)
-[11_3BMI-3](https://hackmd.io/@CHAWTeam/DiceC-11_3)
12.用switch做選擇
---
-[12-1字元](https://hackmd.io/@CHAWTeam/DiceC-12-1)
-[12-3點食物](https://hackmd.io/@CHAWTeam/DiceC-12-3)
-[12-4運算](https://hackmd.io/@CHAWTeam/DiceC-12-4)
-[12-5運算列表](https://hackmd.io/@CHAWTeam/DiceC-12-5)
-[12-6計算機](https://hackmd.io/@CHAWTeam/DiceC-12-6)
13.直覺不結構的if...goto
---
-[13-1HaHaHa!笑他10次](https://hackmd.io/@CHAWTeam/DiceC-13-1)
-[13-2HaHaHa!笑他幾次](https://hackmd.io/@CHAWTeam/DiceC-13-2)
-[13-3月份判斷](https://hackmd.io/@CHAWTeam/DiceC-13-3)
-[13-4遞增?遞減?](https://hackmd.io/@CHAWTeam/DiceC-13-4)
14.重複-固定次數
---
-[14-1奇數還是偶數?](https://hackmd.io/@CHAWTeam/DiceC-14-1)
-[14-2印10次](https://hackmd.io/@CHAWTeam/DiceC-14-2)
-[14-3印N次](https://hackmd.io/@CHAWTeam/DiceC-14-3)
-[14-4輸入整10個整數](https://hackmd.io/@CHAWTeam/DiceC-14-4)
-[14-5累加](https://hackmd.io/@CHAWTeam/DiceC-14-5)
-[14-6輸入N個整數](https://hackmd.io/@CHAWTeam/DiceC-14-6)
-[14-7計算總和](https://hackmd.io/@CHAWTeam/DiceC-14-7)
-[14-8計算平均](https://hackmd.io/@CHAWTeam/DiceC-14-8)
-[14-9自主學習](https://hackmd.io/@CHAWTeam/DiceC-14-9)
--[14_11印到100](https://hackmd.io/@CHAWTeam/DiceC-14_1)
-[14_21到100的偶數](https://hackmd.io/@CHAWTeam/DiceC-14_2)
-[14_310個數平均](https://hackmd.io/@CHAWTeam/DiceC-14_3)
-[14_4輸入整數](https://hackmd.io/@CHAWTeam/DiceC-14_4)
-[14_51到100的和](https://hackmd.io/@CHAWTeam/DiceC-14_5)
15.重複-警示值
---
-[15-1印到我說停](https://hackmd.io/@CHAWTeam/DiceC-15-1)
-[15-2直到我說停](https://hackmd.io/@CHAWTeam/DiceC-15-2)
-[15-3重複幾次](https://hackmd.io/@CHAWTeam/DiceC-15-3)
-[15-4班級均分-總和](https://hackmd.io/@CHAWTeam/DiceC-15-4)
-[15-5班級均分-完成](https://hackmd.io/@CHAWTeam/DiceC-15-5)
-[15-6奇數還是偶數?](https://hackmd.io/@CHAWTeam/DiceC-15-6)
-[15-7自主學習](https://hackmd.io/@CHAWTeam/DiceC-15-7)
16.for
---
-[16-11到100和](https://hackmd.io/@CHAWTeam/DiceC-16-1)
-[16-2奇數和](https://hackmd.io/@CHAWTeam/DiceC-16-2)
-[16-3偶數和](https://hackmd.io/@CHAWTeam/DiceC-16-3)
-[16-41到N之和](https://hackmd.io/@CHAWTeam/DiceC-16-4)
-[16-5X到Y之和](https://hackmd.io/@CHAWTeam/DiceC-16-5)
-[16-6遞減值](https://hackmd.io/@CHAWTeam/DiceC-16-6)
-[16-7公比](https://hackmd.io/@CHAWTeam/DiceC-16-7)
-[16-8等比級數公式](https://hackmd.io/@CHAWTeam/DiceC-16-8)
-[16-92的次方數](https://hackmd.io/@CHAWTeam/DiceC-16-9)
-[16-10冒牌費氏數列](https://hackmd.io/@CHAWTeam/DiceC-16-10)
17.重複結構與判斷式
---
-[17-130內6的倍數](https://hackmd.io/@CHAWTeam/DiceC-17-1)
-[17-2非6的倍數](https://hackmd.io/@CHAWTeam/DiceC-17-2)
-[17-3倍數](https://hackmd.io/@CHAWTeam/DiceC-17-3)
-[17-45的倍數不加](https://hackmd.io/@CHAWTeam/DiceC-17-4)
-[17-5公倍數](https://hackmd.io/@CHAWTeam/DiceC-17-5)
-[17-6因數](https://hackmd.io/@CHAWTeam/DiceC-17-6)
-[17-7最大公因數](https://hackmd.io/@CHAWTeam/DiceC-17-7)
-[17-8互質](https://hackmd.io/@CHAWTeam/DiceC-17-8)
-[17-9相反數絕對值](https://hackmd.io/@CHAWTeam/DiceC-17-9)
-[17-10象限](https://hackmd.io/@CHAWTeam/DiceC-17-10)
-[17-11GG了啦!](https://hackmd.io/@CHAWTeam/DiceC-17-11)
--[17_1是3不是5的倍數](https://hackmd.io/@CHAWTeam/DiceC-17_1)
-[17_2與7相關](https://hackmd.io/@CHAWTeam/DiceC-17_2)
-[17_3更多的三角形](https://hackmd.io/@CHAWTeam/DiceC-17_3)
18.巢狀迴圈
---
-[18-1九九乘法](/@CHAWTeam/DiceC-18-1)
-[18-2九九乘法表](/@CHAWTeam/DiceC-18-2)
-[18-3乘法變形排列](/@CHAWTeam/DiceC-18-3)
-[18-41到N乘法表](/@CHAWTeam/DiceC-18-4)
-[18-5N到9乘法表](/@CHAWTeam/DiceC-18-5)
-[18-6找因數](/@CHAWTeam/DiceC-18-6)
-[18-7階乘值-1](/@CHAWTeam/DiceC-18-7)
-[18-8階乘值-2](/@CHAWTeam/DiceC-18-8)
-[18-9印圖形1](/@CHAWTeam/DiceC-18-9)
-[18-10印圖形2](/@CHAWTeam/DiceC-18-10)
-[18-11自主學習](/@CHAWTeam/DiceC-18-11)
19.重複結構-練習
---
-[19-1N的多項式](https://hackmd.io/@CHAWTeam/DiceC-19-1)
-[19-2最大值最小值](https://hackmd.io/@CHAWTeam/DiceC-19-2)
-[19-3百分比](https://hackmd.io/@CHAWTeam/DiceC-19-3)
-[19-43N+1-1](https://hackmd.io/@CHAWTeam/DiceC-19-4)
-[19-53N+1-2](https://hackmd.io/@CHAWTeam/DiceC-19-5)
-[19-63N+1-3](https://hackmd.io/@CHAWTeam/DiceC-19-6)
-[19-7阿姆斯壯數-1](/@CHAWTeam/DiceC-19-7)
-[19-8阿姆斯壯數-2](/@CHAWTeam/DiceC-19-8)
-[19-9完美數](/@CHAWTeam/DiceC-19-9)
-[19-10平年閏年](/@CHAWTeam/DiceC-19-10)
20.重複結構-APCS
---
-[20-1三角形辨別]()
-[20-2祕密差]()
-[20-3邏輯運算子]()
-[20-4工作排程]()
-[20-5反序數量]()
-[20-6人力分配]()
-[20-7購買力]()
-[20-810503-1]()
-[20-910510-7]()
-[20-1010603-18]()
-[20-1110503-1]()
21.數學函式
--
-[21-1找絕對值]()
-[21-2x的y次方]()
-[21-3算平方根]()
-[21-4不小於x的最小整數]()
-[21-5不大於x的最小整數]()
-[21-6算浮點數餘數]()
-[21-7三角形斜邊長]()
-[21-8一元二次方程式]()
-[21-9算利息交給電腦]()
-[21-10算多少利息人都行]()
-[21-11自主學習]()
22.函式
---
-[22-11加到10的和]()
-[22-2圓面積與體積]()
-[22-3x的y次方]()
-[22-4質數判斷]()
-[22-5質數個數]()
-[22-6也是質數個數]()
-[22-7最大質數]()
-[22-8第N個質數]()
-[22-9無傳回值函式]()
-[22-10自主學習]()
23.遞迴
---
-[23-1階層]()
-[23-2最大公因數]()
-[23-3費氏數列]()
-[23-4遞迴數列]()
-[23-5河內塔]()
24.一維陣列
---
-[24-1量大的輸入與輸出]()
-
25.二維陣列
---
-
26.字串陣列
---
-
27.字與數
---
-
28.演算法
---
-
29.排序演算法
---
-
30.搜尋演算法
---
-
31.APCS相關概念
---
-
32.APCS觀念題-非程式
---
-
{%hackmdIiu5mOixR7yWkPHKCkabBg%}
延伸文章資訊
- 1遞增數列:定義,遞增,嚴格遞增,區別,性質,一般形式,項
基本介紹. 中文名:遞增數列; 外文名:increasing sequence; 學科:數學; 相關:遞減數列; 表示:an,其中an ...
- 2遞減數列: -華人百科
中文名稱遞減數列類 別數列特 點遞減含 義每一項都小于它前面的一項.
- 3遞減數列:基本介紹,相關介紹 - 中文百科全書
遞減數列(decreasing sequence)是一類常見的數列,若一個數列從第2項起,每一項都小於或等於它前面的一項(an+1≤an),則這個數列稱為遞減數列。
- 4遞減數列_百度百科
遞減數列(decreasing sequence)是一類常見的數列,若一個數列從第2項起,每一項都小於或等於它前面的一項(an+1≤an),則這個數列稱為遞減數列。
- 513-4 遞增?遞減?
如果滿足a1≥a2≥a3≥a4≥a5,此數列「遞減」。 因為此題輸出有多種狀況,故需將程式碼複製5次,都判斷正確才給分,每個輸出都要換行。 當嚴格遞減時,也會同時印出此 ...