Grasping `all-the-apples-at-once' › 解法样本 Sample solutions [jsr-000W]

提交到 Lobsters 供讨论的博客文章描述了在 Clojure 中的一个解决方案。但不知为何,这促使会员们用自己选择的编程语言来解决这个问题并发布结果。于是这就形成了一场即兴竞赛。
The blog post submitted to Lobsters for discussion described one solution, in Clojure. Somehow it prompted the members to solve the problem in their language of choice, and post the results. Hence there developed an impromptu contest.

以下是已发布的解法样本。这些解决方案由不同的人用不同的编程语言编写⸺然而不知为何,它们分成了两组,我暂时称之为 Group I 和 Group II。我稍后会告诉你这些组的意义⸺请让我卖个关子。
Below is a sample of posted solutions. They are written in various languages by various people -- yet somehow fall into two groups, which I call for now Group I and Group II. I'll tell what they mean only later -- I hope you'd allow me a bit of suspense.