Skip to content

week-14-1114405019-洪翊滕 - #1

Open
1114405019 wants to merge 36 commits into
mainfrom
0527
Open

1114405019 wants to merge 36 commits into
mainfrom
0527

Conversation

@1114405019

Copy link
Copy Markdown
Owner

解題內容

學號:1114405019
週次:Week 14(測試、除錯與例外 + 綜合練習)

提交檔案(共 4 題)

題號 手打版 AI 簡單版 測試程式 測試 LOG
11349 Symmetric Matrix 11349.py 11349-easy.py test_11349.py test_11349.log
11417 GCD 11417.py 11417-easy.py test_11417.py test_11417.log
11461 Square Numbers 11461.py 11461-easy.py test_11461.py test_11461.log
12019 Doom's Day Algorithm 12019.py 12019-easy.py test_12019.py test_12019.log

測試結果

  • 測試方式:subprocess 直接執行手打版程式,驗證標準輸出
  • 結果:31 passed(各題個別 LOG + 合併 test.log)

解題說明

  • 11349:中心對稱檢查 M[i][j] == M[n-1-i][n-1-j] 且所有元素 ≥ 0
  • 11417:雙層迴圈枚舉所有數對,累加 gcd(i, j)
  • 11461:公式 isqrt(b) - isqrt(a-1),避免浮點誤差
  • 12019:Doomsday 演算法,2012 年 Doomsday 為星期三,計算與各月錨點的差距後取模 7

🤖 Generated with Claude Code

August Chao and others added 30 commits April 9, 2026 06:47
…PU/AugustChaoTW-patch-4

Update title of homework document
…PU/week-08

docs: update week 08 README with task instructions and submission sta…
Add evaluation guide, quickstart overview, framework README, and
scorecard template for grading the 67 Week 02 student submissions
(UVA 100, 118, 272, 299, 490 — sequence/dict/sorting/counting).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add WEEK08_EXERCISES.md with 5 exercises covering ch.5 (open/encoding,
  'x' mode, StringIO, gzip, pickle) using 109–114 enrollment CSVs
- Add stu-data/ with 6 years of NUP freshman CSVs
- Update README.md to include in-class section with exercise table

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Added a note regarding assignment submission location and grading policy.
…PU/week-08

Add week 09 materials and update assignment submission guidelines
…cessing

- Create HOMEWORK.md for Week 10 detailing tasks on data format conversion and visualization.
- Update README.md to reflect new topics and in-class examples.
- Add in-class examples for CSV reading/writing, JSON handling, XML parsing, encoding, and data statistics.
- Implement a timeit decorator example for measuring function execution time.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…PU/week-08

docs: recommend ChillJudge as extra CPE practice resource
…akeup

Week 11 was cancelled for the 115/06/12 Generative AI Forum.
Week 12 now serves as a combined makeup session.

- weeks/week-11/in-class/: R01–R05 + U01 covering classes, @Property,
  inheritance, special methods, @DataClass, and Die Game simulation
- weeks/week-12/in-class/: R01–R04 + U01 covering GCD/divisibility,
  big-number string handling, binary/bit ops, and 2D matrix search
- docs/COURSE_PLAN.md: annotate Week 11 cancellation and Week 12 makeup
- weeks/week-11/README.md: add cancellation notice and in-class table
- weeks/week-12/README.md: restructure as combined Week 11+12 session

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…PU/wee12

Add Week 11/12 in-class examples and makeup session plan
Interactive tkinter app: 4 colored lights blink at configurable intervals.
Students observe which lights sync (= LCM) and reason about GCD.
Features: progress rings, step mode, speed control, sync detection.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Students use this spec with Claude Code / Codex to build the GCD blink
visualizer incrementally. Covers 6 stages, prompt engineering tips,
grading rubric, and reflection questions on GCD/LCM concepts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
R01-gcd-divisibility.py → R01-divisibility.py
- Focus on digit-sum divisibility by 9 (for 10922)
- Focus on alternating-digit-sum divisibility by 11 (for 10929)
- GCD demoted to a brief utility reference

README: clarify week-12 theme is divisibility + binary + matrix,
not GCD/LCM; add problem-to-example mapping table; note U02 is
a conceptual warm-up activity, not tied to homework problems.

SPEC: add positioning table clarifying U02 is bonus, not required.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds consistent ## AI 使用方式 and ## 今天任務 sections to all 18
week README files (weeks 01,02,06,08–18 were missing the section).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
AugustChaoTW and others added 6 commits May 14, 2026 06:39
…PU/wee12

Week 12 in-class materials: divisibility, blink game, AI usage guide
…ework

- Add 7 in-class examples (R01-R03, U01-U02, A01-A02) covering Python
  Cookbook ch7/ch8 organized by Bloom's Taxonomy (Remember→Understand→Apply)
- Add HOMEWORK.md: matplotlib visualization tasks using NPU enrollment data
  (grouped bar chart + county heatmap), with TDD requirements and REPORT.md
- Add reference images (V01/V02/V03) in assets/ for homework visual guidance
- Update README.md with full course structure and AI usage workflow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…PU/week13

Add Week 13 course materials: in-class examples and visualization hom…
Add 5 in_class examples covering testing, debugging, and exceptions,
classified by Bloom's taxonomy (R: Remember, U: Understand) to mirror
week-04 structure. Update week-14 README to link the new materials.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…PU/week-08

feat(week-14): add Cookbook ch.14 in-class examples (R/U Bloom split)
…5019)

- AI 簡單版(-easy.py)含繁體中文詳細註解
- 手打版(.py)含繁體中文行內註解
- 測試程式(test_*.py)用 subprocess 直接執行手打版驗證輸出
- 各題個別測試 LOG 及合併 test.log(31 passed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@1114405019 1114405019 changed the title week-14 solutions: 1114405019 (11349, 11417, 11461, 12019) week-14-1114405019-洪翊滕 Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants