期末考-1111405038-俞星合 - #1327
Open
H-HoYu wants to merge 11 commits into
Open
期末考-1111405038-俞星合#1327H-HoYu wants to merge 11 commits into
H-HoYu wants to merge 11 commits into
Conversation
This reverts commit ac4ec36.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Data Cleaning 題目 - RP 摘要
📋 題目摘要
題目名稱
資料清理(Data Cleaning)- 第一題
題目需求
對每一組整數數列,完成三個步驟:
核心演算法
範例
輸入:
輸出:
過程:
✅ 測試結果
測試執行輸出
測試涵蓋項目
4 7 4 2 9 2 6 72 4 61 3 5NONE442 4 2 6 42 4 6-4 -2 -4 3 -2-4 -2結果:6/6 通過(綠燈 ✅)
🔧 我跟 AI 改了什麼地方
改動 1:修正 OCR 識別錯誤
原始問題: 題目文件中有 OCR 掃描錯誤(「保保結」等亂碼)
AI 給的方案:
我的判斷與修改:
改動 2:修正篩選條件(關鍵)
原始問題: 題目初版誤認篩選條件是「保留偶數」
用戶明確指令:
AI 給的修正方案:
我的判斷與修改:
num % D == 0正確應用在邊界情況說明影響: 這個修正直接影響了題目邏輯與測試設計
改動 3:紅燈測試設計與錯誤排除
原始問題: 需要設計 6 個測試案例,並確保能正確執行
AI 給的方案:
redirect_stdin處理輸入我的判斷與修改:
from contextlib import redirect_stdin導入無效改動 4:解題檔實作
原始問題: 需要實作三步演算法
AI 給的方案:
我的判斷與修改:
sorted()排序(正確)📊 改動統計
關鍵修改: 篩選條件從「偶數」修正為「被 D 整除」,影響整個題目邏輯與測試設計。
📝 最終評語
✅ 題目分析: 完整,邏輯清晰
✅ 測試設計: 6 個案例,涵蓋邊界情況
✅ 實現驗證: 所有測試通過(6/6 綠燈)
✅ 改動記錄: 關鍵修改有明確的「為什麼改」與「改了什麼」
本題目完全符合「只做我要求的」原則,每項改動都基於用戶明確指令或 AI 錯誤的修正。