Kalorona

· Computer Science

Programming on the RISC-V Platform (Part 1)

The authors of RISC-V aim to provide several CPU designs that can be used freely under the BSD license; the license allows derivative works such as RISC-V chip designs to be open and freely distributed like RISC-V itself, or to be closed-source or proprietary.

RISC-V - Wikipedia

Over the past few decades of the open-source software movement, a whole series of open-source software, represented by GNU/Linux and others, has become indispensable infrastructure in the tech industry, benefiting every individual and group that uses open-source software equally. Beyond open-source operating systems, the open-source movement has never stopped in other areas either. All kinds of software development frameworks and system software are embracing open source (for example, Microsoft, which once called Linux a “cancer”, is now also actively contributing to the open-source community).

Continue reading →Chinese original · English translation by Claude Opus 5.5

· Things

Memoirs of Competitive Programming

It is now the early hours of July 28, 2022, and I have just finished CCPC Final 2021. Taking home an iron medal was never in doubt, and we only went to the Final for a laugh anyway, but this contest was, I guess, extremely important to my competitive programming journey.

It marks the end of my four-year competitive programming career. Thinking back on the contest a few hours ago, I remember I was still discussing SG functions, meet-in-middle, linear bases and Gaussian elimination with my teammates. “How is it actually implemented? And how did this idea come about?” Even though I had decided weeks ago that I would retire once this season was over, in the last contest before I retired, knowing full well I might never think about these things again, I still kept on thinking. Now, sitting alone on my bed typing, I think it over carefully and finally understand: I have been in competitive programming for too long, and this kind of thinking has become an everyday habit of mine.

Continue reading →Chinese original · English translation by Claude Opus 5.5

· Things

First Undergraduate Semester Summary

I'm in university now, and a lot of things have become quite different. As is customary, I'll write a semester summary to talk about how I've been this semester and what I've been thinking.

Continue reading →Chinese original · English translation by Claude Opus 5.5

· Olympiad in Informatics

[2021 CCPC Guilin] J - Suffix Automaton

Given a string \(S\). Define an ordering on the distinct substrings of this string:

  • When the lengths differ, the shorter one goes in the lower position.
  • When the lengths are equal, sort lexicographically.

Simply put, length is the first key and lexicographic order is the second key. Now you are given \(Q\) queries; each query asks for the first occurrence position of the substring ranked \(k\) under this ordering.

Continue reading →Chinese original · English translation by Claude Opus 5.5

· Olympiad in Informatics

Codeforces Round #747 (Div. 2) - Problem-Solving Report

A brain-dead problem, nothing much to say.

Continue reading →Chinese original · English translation by Claude Opus 5.5

· Computer Science

Configuring the C/C++ Extension in VSCode (macOS)

After the college entrance exam ended, some classmates around me who are headed for computer science departments were getting ready to start grinding away at C/C++, and they ran into configuration problems while using VSCode on macOS. I'm writing a short article here to record the process.

Continue reading →Chinese original · English translation by Claude Opus 5.5

· Things

Written Before the College Entrance Exam

“Do good, and ask not about what lies ahead.” After bombing horribly at the national contest, whenever I got restless and anxious over silly mistakes in exams and less-than-ideal academic grades, I would consciously take a deep breath and then silently repeat this line. You could say this was my senior year.

Continue reading →Chinese original · English translation by Claude Opus 5.5

· Things

AFO

Retired with nothing at all.

Continue reading →Chinese original · English translation by Claude Opus 5.5

· Olympiad in Informatics

[GDOI2020 Mock 02.05] Spanning Tree - Solution

Interesting. I once did a problem that used Matrix-Tree + Gaussian-elimination interpolation to solve the one-dimensional case of this problem, and I planned to keep doing it that way, but later found that Lagrange interpolation can get it done in \(\Theta(n^5)\), so I learned a little something new.

First, realize that once you run the Matrix-Tree Theorem on this problem, what comes out is a bivariate polynomial:

\[\sum_{i = 0}^{n - 1} \sum_{j = 0}^{n - 1} a_{i, j} x^i y^j\]

Continue reading →Chinese original · English translation by Claude Opus 5.5

· Olympiad in Informatics

AtCoder Grand Contest 032 - Problem-Solving Report

Here \(n \leq 100\), so consider the last insertion, and then just restore everything from there.

Continue reading →Chinese original · English translation by Claude Opus 5.5