Wednesday, 12 February 2025

古早遊戲BGM巡遊(9): Wily Castle 2

我數了一下,前幾集提過三次洛克人,三次都是在吐糟capcom。這時我才想起我怎麼忘記了史上最經典的遊戲BGM之一,來自洛克人2的Wily Castle 2呢?

其實我小時候紅白機的年代已經過去了,那時洛克人不是平台遊戲而是EXE作為新式RPG的代名詞。沒有傳統的等級和經驗值,升級全靠晶片搭配和系統升級,當然還有個人的技術磨練。關於EXE的事有機會以後再說,總之我就沒怎樣玩過動作的洛克人。考慮到元祖系列中間斷檔了十幾年,我們這一代沒接觸過也是正常。到了DS年代我總算打了兩作ZX,後來又在GBA上玩到了Z,本質上都是掌機版洛克人。這兩作的劇情和劇情比起原祖系列都有了長足進步,不過當時不會日文卻硬玩日文版的我當然看不懂。

回到遊戲本身,洛克人2是元祖洛克人之上的改良作。把甚麼分數之類的多餘東西丟掉集中在平台過關本身,這才有了史上第二最好賣的系列作品(最好的是快30年後的洛克人11)。可是……這首歌有甚麼特別呢?難道是被那堆會消失的磚塊和那條可惡的綠色飛龍虐成斯德哥爾摩症候群了嗎?好像也說得過去,現在就有不少主播重玩這經典遊戲時被搞得瘋狂哀嚎,崩潰得被剪進精華片段裡面。至於我,其實沒怎樣玩過這遊戲。我上次在switch買的冷飯是Sonic合集,把我虐得崩潰的是這文章系列的第一篇Marble Zone而不是洛克人。

維基的評價是這遊戲的BGM是史上最佳之一,有一堆人做remix還推動了某種rock的發展。只要搜甚麼Best of NES Soundtrack,這首BGM幾乎都在前十。嗯……所以呢?所謂的影響好像都只限在西方圈子裡面。

在東亞這邊,奠定這BGM地位的是一首同人作品:思い出はおっくせんまん,中文簡稱億千萬。

這是一個講童年回憶的故事。小時候做過的傻事,你還記得嗎?那些跟你一些做傻事的朋友,你還記得嗎?可是如今卻早已忘了這些事(でも今じゃそんな事も忘れて),宛如被什麼追趕一般度過每一天(何かに追われるように 毎日生きてる)。如今這些朋友又在何方,又在做甚麼事呢?打開陳舊的日記本,在退色的那一頁,你還記得那段歲月嗎?可是如今卻早已忘了這些事(でも今じゃそんな事も忘れて),宛如被什麼追趕一般度過每一天(何かに追われるように 毎日生きてる)。

算一算在1989玩過這遊戲的小學生當是十歲好了,在這首歌出來的2007已是接近而立的社畜。這十幾年是泡沫爆破後最頹廢的十幾年,也是社畜最痛苦的十幾年。有調查就發現當時日本社畜的平均每週工時和加班時數從1990剛好升到2000升後見頂,2000剛好是這堆人出來工作的年份。當你被職場磨平棱角時忽然被這首歌喚起往日舊事又會作如何反應呢?

嘛,nico肯定不是只有這群三十左右的用家的。乘著niconico從β到γ的極速崛起,加上ゴム那聲撕力竭的唱腔和大家都愛的flash動畫,億千萬成為了n站最火爆作品。被收錄進官方CD裡到進入動畫組曲,這首歌的殿堂級地位就此種下。

其實可以討論的方向還有很多。n站文化、彈幕、從flash時代到nico時代的過渡等等,億千萬的地位當中有著無數偶然的天時地利。但最重要的還是億千萬那觸動靈魂深處的情感。

不信的話現在聽聽看。甚麼可以喚起再做起小時候做過的傻事?是誰賜給你這樣的勇氣?

這BGM和億千萬的地位是前面的BGM加起來都比不過的,但我很懶也沒打算長篇大論。與其把樂理歷史都搬出來,還不如直接聽一遍。我覺得這是對億千萬的正確評價。

啊。聽不懂的話記得找附字幕的,不過ゴム原版真的值得聽一下。

おっくせんまん!おっくせんまん!--


Saturday, 18 January 2025

Simon Marais 2024 Impression 2 + solution comments

Not sure when but they finally decided to announce the result altogether with the full problem set. As a tradition allow me to first comment on paper C which I did not get my hands on without looking at the solution, then we will wrap up with my comments to the solution.


C1. This is actually a good Q1. Algebraically less trivial but easy once you understand nature of the question. 

One direction is simply by rotational symmetry (how long since you last hear this term in college+ maths?) plus origin. The other direction? Let's cheat. All lattice points have a rational x-y ratio. Now if we rotate the square so that the slope of the sides are irrational, it is going to takes the lattice points one at a time each quadrant.

C2. uhhh...factorization?

If this is an IMO question I am 100% sure those 'bulls' would have factorize it without any problem. $f(f(r))-r$ is a polynomial of degree 9 with a very simple factor $(r-1)$. If, assuming in good will, that there are other factors in $\mathbb{R}[r]$, it should be in $\mathbb{Z}[r]$ as well. 

The leading coefficient is 8 and the constant is 25, giving us pretty restricted scope of searching. Linear coefficients didn't work, but searching the quadratic quickly gives $(2r^2-4r+1)(2r^2-4r+5)$, and the remaining polynomial clearly has no real root. 

Admittedly this is painful. So what? It really boils down to instinct -- if you draw the graph of $f(r)$ you can see it looks pretty *rotational* symmetric around $r = 1$, and substitution would verify that guess. With that in mind, we perform a substitution of $r = s + 1$ and finds the much, much simpler formula of
$f(f(r)) - r = \frac{1}{8}s(2s^2-1)(2s^2+3)(2s^4+s^2+2)$.

Notice the complete lack of odd degrees - this is a nicely odd function!

C3. A classic question? Not that I have seen it before, but certainly feels like so. 

If you know Sierpinski's triangle fractal, everything is about reciting that back onto your answer sheet because you can compute all $a_n$'s explicitly for the sum. I've only got 2 side comments:

First, do you remember the convergence in power series test at the boundary case? This is quite important in this question because you have to handle that as well. Many year 1 students don't do that, oh my.

Second, when did I first came across to the Sierpinski's triangle? Not in competitive training nor in fractal or chaos theory, but in a general education math course I had to take to fulfill graduation requirement, and I still feel guilty about taking the course and claiming the first in class.

C4. Oh GENERATING FUNCTION HELLO AGAIN.

I made a comment last year that they should stop making generating function questions as it has become a tradition and is overly predictable. On top of that once you know you use generating function there is only one way to solve the problem with no surprise at all.

Take this question for example. Would you be surprised that the ratio converges? Even without using generating functions I would not doubt about that the slightest bit. This is just not fun as a Q4.

The updated list of generating functions are now 18A4, 22C3, 23B2 and 24C4. Two damn question 4 among them. Just wow.

***

Wow when I look at the problem proposers I saw a few familiar names, more than one of them private friend of mine. But I am not going to point them out because you know, some Simon Marais questions are really bad, right?

A1. Overly trivial to comment.

A2. As pointed out, this is a simplified version of a question from a high school MO (junior level even). While the full version requires an in-depth bashing around base 3 numbers, the small parameter here does not require that. Students could simply count case by case without difficulty, and both provided solutions here did exactly that.

A3. Nice analysis assignment as I said, but thank you for laying out all the details...like an assignment handed in.

A4. Hmm. Round of applaud to this solution because it avoids my criticism against PNT related skill checking. Although the solution still uses the 'well-known' fact of $\prod (1-p^{-1})$ converging to zero which I am not sure given the level of this tournament. 

The nature of this question is that as long as the subset of integers (prime numbers here) is not sparse enough the probability will be 1. But the next question is how tight is the bound? Clearly the product $\prod (1-a_n^{-1})$ could converge to zero for some increasing integer sequence $(a_n)$. Cooperating that we might have a proper B4 level open question...

B1. Shame on me who got it wrong, and I was wrong because I didn't know I have to tap one more time at the end for the correct answer! Yes you need 4 taps to know the two boxes that contain coins, then one more tap to kill the game.

B2. Yup standard.

B3. This is the kind of abstract problem we would expect in Putnam, and nice to see that here. I wish we have more of that in the future. It's also nice to have some further comments from the proposer since it really links to higher maths...

B4. Error correcting codes! The world of coding using linear algebra and finite field has been mesmerizing, despite that everyone's onto turbo codes now days...

C1. Yes yes yes. I am glad the 'cheat' is indeed the way to go. Is it possible to construct a square that contains exactly $4n+1$ lattice points for each $n$? Possibly yes but more hassle involved. Do you remember counting lattice points from the sum $\sum [px/q]$ from the proof of quadratic reciprocity? You can do the same here although it's again faster to reside back to the slope argument: pick $(p,q)$ primes both larger than $n$, then the edge would not coincide multiple lattice points at a time (in a single quadrant) before we obtain a square containing exactly $4n+1$ lattice points. An irrational slope is just like the ratio of two infinitely large primes that does the job for arbitrary $n$.

C2. I am also aware that $f$ is increasing hence the fix point approach, but that didn't come to my mind when I typed the my impressions on C1-C4 in 30 minutes. 

I know it doesn't make sense to factorize a degree 9 polynomial, even with intuition, but I believe my second approach is sensible enough, especially when you realize that $f(f(r))-r = rg(r^2)$ for some $g \in \mathbb{Z}[r]$.

Nothing much to talk about C3. And for C4 the average score is higher than A4 and B4, and my bold guess is that a group of schools knows precisely they will get generating functions, trained well and get rewarded. 

***

And that's it!

It's been 3 months since the tournament and 2 months since I posted my first impression on paper A and B, making it very difficult for me to give a general comment.

The scope has not been changing much. We still get lots of analysis, some linear algebra (this time well-hidden like in B4), probability and game theory. I miss the calculus/numerical questions sometimes. And when are we getting true combinatorics or graph theory questions? How about geometry?

Difficulty has always been a complaint but I like the questions this year actually, B3 and C3 in particular. I really wish they put more questions like this because more often than not this is the question that separates the elites from the 'middle class', which is essential in tournaments like this.

Alas, we will see again in 9 months of time when Simon Marais 2025 arrives!