前言
高一基礎程式設計期末考
Scoreboard
scoreboard
Scoreboard
考試過程
心態
一開始本來打算從 寫到 的
結果 的題敘太長 & 我看不懂
所以就跳 解了
然後深綠被搶了兩題:D
解題順序
總計 :
題目
pA 可憐哪
難度 :
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
題意 :
給一數
有一值 會隨著 而變動
規則如下 :
- 假如 則 + 1
- 如果 則 + 2
- 如果 則 + 3
- 如果 則 + 5
接著根據的值輸出
- 如果 輸出 "Poor~~"(不含引號)
- 如果 輸出 "Poor You!"(不含引號)
- 如果 輸出 "Pathetic!!"(不含引號)
- 如果 輸出 "Ko lan na~~~"(不含引號)
- 如果 輸出 "Nonsense post!!!"(不含引號)
範例輸入1 :
範例輸出1 :
範例輸入2 :
範例輸出2 :
想法 :
簡單題if else題
沒給 範圍 但感覺 值會溢位
所以我有開long long
code
解題心得 :
放了一張韓國瑜帥臉害我看很久題敘:(
pB 小蘿莉的數學家教B
難度 :
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
題意 :
給二數
代表著平行四邊形的底與高
畫平行四邊形及輸出相關資訊
格式請見範例輸出
範例輸入 :
範例輸出 :
想法 :
簡單實作題
但要小心
要開long long
code
解題心得 :
考的時候總感覺我這題寫很慢
結果看了一下時間
好像也才
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
pC 數字方塊
難度 :
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
題意 :
給一數
要求輸出 的方格
格式請見範例輸出
範例輸入 :
範例輸出 :
想法 :
簡單巢狀題
但我偏偏挑了一個難實作的解法XD
code
- 一般解法
- 我那時候的解法 (看看就行)
pD 化簡分數
難度 :
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
題意 :
給二數 代表 分子與分母
輸出最簡分數即可
格式請見範例輸出
範例輸入 :
範例輸出 :
想法 :
題目沒給 範圍 所以不開long long :D
簡單GCD題
code
- 函式解法
- 輾轉相除法
解題心得 :
之前有做過p, q為負數的
結果這題沒有 好水XD
但這題的難度對新手來說算難了
畢竟沒有人會閒到去背輾轉相除法吧 LOL
pE 伸縮乘法表
難度 :
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
題意 :
給二數 代表著乘法表的列與行數
按照格式輸出乘法表即可
範例輸入 :
範例輸出 :
當然每個等式的最後都有一個空格!
想法 :
巢狀迴圈基礎題 + 判斷
所以不用開long long
code
總結
這次考試雖然考的範圍比較廣
但好像比較簡單(?
至少我破台的時間有變快ㄏㄏ
最後放一張芙莉蓮 慶祝大家資訊一百分:D
希望大家能喜歡資訊這項學科
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →