Skip to content

Week 2 · Language Details and Old-School Classics ​

This round the format lineup expands. Week 1 was all judge-submitted code; this week, "free-response" and "thought" problems join the field: two of them you solve without ever opening an editor — lay out your reasoning clearly and get the number right, and you pass. Thinking it through before you put pen to paper is exactly what these two formats are meant to train.

The first two probe language and engineering details: one asks why Chinese identifiers get no love in engineering — the compiler nods along just fine, so why does nobody write that way in real projects; the other works out what x = (a++, b++) actually evaluates to — with a side question that the problem's author himself got wrong at first. The last three switch back to writing code, all drawn from old books and classic problems: copy_n is picked from Pointers on C, "Longest Plateau" is the same breed of textbook exercise, and Eight Queens is the beginner's gate you can't get around when learning backtracking. Difficulty runs from one star to three, and the order on the cards is the suggested tackling order — work top to bottom and the problems get steadily meatier.

题目加载中…
题目加载中…
题目加载中…
题目加载中…
题目加载中…

Where the problems come from: "Chinese identifiers" comes from owollz4's idle musings; "comma expression" is the original question a friend of his tossed out; copy_n is an after-chapter exercise from Kenneth Reek's Pointers on C; "Eight Queens" and "Longest Plateau" are classics that have been making the rounds forever. All five problems this week were curated and contributed by owollz4; we shaped them into the online-judge and spoken-answer formats, and every judge case was verified by local testing.

pdf-latest-4-g85128cc · 85128cc · 2026-10-05