---
id: 2496
lang: en
translation_of: index.md
source_sha256: 33a57e8e0d3b79a50606dffcb7cf818704fcc02d155715cac8b9d69ad8464f55
title: "JXOI 2020 Diary"
description: "As for a person's fate, of course it depends on one's own struggle, but one must also take into account the journey of history."
tags: ["OI","Travel Diary","JXOI"]
translated: 2026-11-27
translator: Claude Opus 5.5
translator_model: claude-opus-5-5
translation_notes:
  - "The epigraph itself was translated literally and not chipped; only the attribution 长者 got a chip."
  - "历史的行程 rendered as “the journey of history”; the two emphasised words keep their emphasis in English word order."
  - "结论题 rendered as “observation problems”, with a chip."
  - "In jxsdfzbjnmsl and CCFnmsl only the curse nmsl was translated; the initials jxsdfzbj were kept as written, like the author's other initialisms, since their exact expansion is uncertain."
  - "CSL rendered as “Cities: Skylines”, the game Chinese players abbreviate as CSL."
  - "绿地 rendered as “Greenland” (the Greenland development in Nanchang), not explained further."
  - "江科 kept as pinyin “Jiangke”, since the school's full name is not certain."
  - "龚老师 and 胡老师 rendered as “Teacher Gong” and “Teacher Hu” to avoid guessing gender."
  - "“28 才坐下来开机” rendered literally as “28 past” (of 8 o'clock)."
  - "在到今天的 JXOI 2020 read as 再到 (a typo) and rendered “and on to”."
  - "rk3 rendered as “rank 3”."
---

> As for a person's fate, of course it depends on one's own struggle, but one must also take into account the *journey* of *history*.
>
> <cite><span class="slang" data-zh="长者" data-gloss="zhǎngzhě, “the elder”. An internet nickname for former Chinese leader Jiang Zemin, to whom the quote above is attributed.">The Elder</span></cite>

<!--more-->

## Day < 0

Before the provincial team selection I did some Yali training camp problems and some sets lcx put together himself, ~~and felt there was no team left for me to get into~~. Especially with the Yali camp sets: the moment I saw the <span class="slang" data-zh="结论题" data-gloss="jiélùn tí, “conclusion problem”. A problem whose solution hinges on spotting, or guessing, one key property.">observation problems</span> and sqrt-decomposition problems I <span class="slang" data-zh="心态爆炸" data-gloss="xīntài bàozhà, “mindset explodes”. Losing one's composure completely, e.g. when a contest goes badly.">had a total meltdown</span> on the spot and felt there was no saving me.

I opened an alt account on Luogu, prepared some <span class="slang" data-zh="板子" data-gloss="bǎnzi, “board”. A prepared template implementation of a standard algorithm.">template code</span>, took a few notes on math problems, and did nothing beyond that, quietly waiting for fate to arrive.

## Practice Day

In the morning I typed out some templates in the Qingshanhu computer lab, ~~then watched simulated annealing with lal~~. It was everyone's first joint provincial selection, and nobody knew what the problems would actually look like, so the morning was still pretty happy.

In the afternoon I got a ride in zzr's family's car to JXNU. We walked for a long time before reaching the Xianxiao Building, and found the lab environment very nice; we also learned that data safety was guaranteed, which put me at ease. Afterwards, on the platform at Olympic Sports Center station, I ran into the <span class="slang" data-zh="神仙" data-gloss="shénxiān, “immortal”. Someone, or a problem or idea, so brilliant it seems superhuman.">godlike</span> chj, and somehow felt really happy: yet another <span class="slang" data-zh="神仙" data-gloss="shénxiān, “immortal”. Someone, or a problem or idea, so brilliant it seems superhuman.">god</span> who loves OI had returned to the arena that belongs to him.

Then I took the metro home. After I got home some bad things happened, and my mentality was <span class="slang" data-zh="崩" data-gloss="bēng, “collapse”. Said of one's mindset (心态): breaking down mentally, losing all composure.">wrecked</span> beyond belief the whole evening. (jxsdfzbj, <span class="slang" data-zh="nmsl" data-gloss="Pinyin initials of 你妈死了 (nǐ mā sǐ le), “your mom is dead”. A harsh vulgar curse.">go to hell</span>)

## Contest Day - Day 1

I got up at 6:20 in the morning to have breakfast and head to Yaohu. Actually, I later found this was way too early: Honggu Tunnel + the Riverside Expressway gets you there in 40 minutes. The Riverside Expressway in the old town really is built nicely; after the college entrance exam I might recreate it in Cities: Skylines.

Sure enough, we got there at 7:30, which was a bit early. I read my notes in the car for a while and slept a bit, and only walked in through the Qinglan Gate at 8:05. Along the way I ran into Teacher Gong from Jiujiang and lcx, said hi, and went upstairs into the lab. It was 28 past before I sat down and booted up, opened the statements, quickly read through all three problems, and got ready to start. After looking at the first problem for a while, ~~I remembered <span class="slang" data-zh="合并果子" data-gloss="hébìng guǒzi, “merging fruit”. A classic NOIP 2004 problem, solved greedily with a priority queue.">Merging Fruit</span> and even wanted to write a greedy~~, then came up with a <span class="slang" data-zh="思博" data-gloss="sībó, a homophone of SB, i.e. 傻逼 (shǎbī), “idiot”. Here: dead simple, dumb.">brain-dead</span> DP, figured its correctness couldn't be wrong, and finished typing it in 5min. ~~(Holy shit, it's that <span class="slang" data-zh="SB" data-gloss="Initials of 傻逼 (shǎbī). A vulgar insult, roughly “idiot” or “stupid”.">stupid</span>?)~~

Looking at the second problem, I saw there were 60 points of brute force and typed it up, but on the rerooting-DP subtask I fucking got the array bound wrong again, and the answer came out negative and I somehow didn't notice??? In the end it <span class="slang" data-zh="挂" data-gloss="guà, “hang”. OI slang for a solution failing or losing points, usually because of a bug.">blew up</span> and only 30 was left.

Then I went to look at the third problem. It was only 9:45, and I had even stalled for time on purpose. After a while I saw it was just a data-structure lookup problem; seeing the hint that the total doesn't exceed $2 \times 10^9$, I thought of binary search, and found that binary search + segment tree could pass at least $2 \times 10^5$. I didn't pay much attention to the remaining 40 points, and didn't want to <span class="slang" data-zh="卡常" data-gloss="kǎ cháng, “stuck on constants”. Micro-optimising a correct solution just to fit the time limit.">squeeze the constant factor</span> either.

After writing it I made some data and timed a few of the problems, and thought there was nothing wrong (<span class="slang" data-zh="mmp" data-gloss="Pinyin initials of 妈卖批 (mā mài pī), a vulgar curse. Roughly “damn it” or “f***”.">FFS</span>, why didn't I go check B, it pisses the hell out of me), and in the end handed in my code at 13:00.

In the afternoon I went to Greenland and had Pizza Hut, then went home and started <span class="slang" data-zh="颓废" data-gloss="tuífèi, “decadent”. Procrastinating, demotivated, wasting time.">slacking off</span>. In the evening I talked to ssm to get my head back together, and my mood got better right away.

## Contest Day - Day 2

This morning I got up a bit later. When I reached the Qinglan Gate I happened to run into $zzr \times 2$, and we chatted all the way to the Xianxiao Building; along the way we ran into a <span class="slang" data-zh="神仙" data-gloss="shénxiān, “immortal”. Someone, or a problem or idea, so brilliant it seems superhuman.">godlike</span> contestant from zyx's alma mater.

In the lab, $zzr \times 2$ very naturally opened Physics 3-5 and started reading. lcx walked over, saw this, and <span class="slang" data-zh="心态爆炸" data-gloss="xīntài bàozhà, “mindset explodes”. Losing one's composure completely, e.g. when a contest goes badly.">had a total meltdown</span> on the spot. ~~lal and I watched simulated annealing on the side~~.

The contest started and I read the problems, getting ready to think seriously about T1, but that process didn't even last 30s before I just <span class="slang" data-zh="秒" data-gloss="miǎo, “second” (the unit of time). To solve a problem instantly, almost without thinking.">insta-solved</span> it. Spent 10 min casually writing it, and it passed the large sample.

Then I looked at T2, wrote out a summation, and found it was enough to handle the two conditions separately, and that 60 points were doable. Spent 15 min casually writing it and it passed the large sample. Later I found that adding a register to the loop's $i, j$ could squeeze it to 70 points. (Setting a <span class="slang" data-zh="卡常" data-gloss="kǎ cháng, “stuck on constants”. Micro-optimising a correct solution just to fit the time limit.">constant-squeezing</span> problem, CCF, <span class="slang" data-zh="nmsl" data-gloss="Pinyin initials of 你妈死了 (nǐ mā sǐ le), “your mom is dead”. A harsh vulgar curse.">go to hell</span>)

By then it was about 9:40 (doesn't seem to separate people much, huh)

I took a look at T3 and thought there might be some magical conclusion about tournament graphs, then thought it looked a lot like some problem from the 2018 Nowcoder NOIP training camp, something like cycle canceling. In the end I took 50 points of brute force and went home.

In the last half hour I checked and found two very serious bugs in T1, spent five minutes writing the patch with shaking hands, made a few tricky test cases myself, felt it was rock-solid, and submitted.

Leaving the lab I felt like a weight had been lifted. We had Teacher Hu from Jiangke take a group photo of us, and then everyone went home.

In the afternoon I grabbed something to eat at Greenland, got a haircut in the evening, then packed up my books for <span class="slang" data-zh="文化课" data-gloss="wénhuàkè, “culture classes”. Ordinary school subjects, as opposed to competition training.">regular classes</span> and went to sleep.

## After the Contest

While doing parametric equations it suddenly hit me that the array size on my D1T2 had <span class="slang" data-zh="挂" data-gloss="guà, “hang”. OI slang for a solution failing or losing points, usually because of a bug.">blown up</span>, and when I looked at the code they sent back, it really had <span class="slang" data-zh="挂" data-gloss="guà, “hang”. OI slang for a solution failing or losing points, usually because of a bug.">blown up</span>, and my mentality <span class="slang" data-zh="崩" data-gloss="bēng, “collapse”. Said of one's mindset (心态): breaking down mentally, losing all composure.">collapsed</span> sky-high. Meanwhile lcx went home to get his code, which only further confirmed the reality that I'd been <span class="slang" data-zh="吊打" data-gloss="diàodǎ, “hang and beat”. To beat someone (or be beaten) completely.">crushed</span>. Thinking that I'd soon have to go back for the college entrance exam, I really couldn't accept it.

The next morning I had just started calmly studying math in the lab when lcx suddenly said the scores were out. I was completely stunned. Luckily nothing apart from the rerooting DP had <span class="slang" data-zh="挂分" data-gloss="guà fēn, “hang points”. Losing points one should have had, usually to a bug.">lost points</span>; then I worked out the weighted score from CSP and the provincial selection, and I could actually be rank 3? A bit unbelievable. Then I found that lal had made the provincial team right on the cutoff line, and all of Qingshanhu was filled with happiness. In the evening I bought a bowl of instant noodles to treat myself (~~lcx abandoned us and went out to eat~~).

## Summary

As a contestant who started informatics competitions in the first year of high school, from the very start of that year, with a bottom-of-the-list provincial third prize and my season over right then, to last semester's ICPC and CSP-S 2019, and on to today's JXOI 2020, although my career so far has been just a short two years, the things I've learned, the moments that moved me, and the people I've met along the way are countless. As the contestant with the lowest IQ in FZOI history, the only one of FZOI 2018 left who made it to today, I think luck and shameless persistence are the main things that kept me going.

I never imagined I could represent FZOI on the Jiangxi provincial team; at least, the little boy in that hotel in Changsha two years ago, in utter misery, certainly never imagined it.

At last, it's my turn too.
