Koo_Pung-Kei's blog

By Koo_Pung-Kei, 11 months ago, In English

Read before:

This blog should be just taken as a witness of my progressions as well as ideas to inspire readers and will inevitably feature bad-looking code styles or non-best solutions. Better solutions to problems mentioned in the blog are welcome in your readers' comments.

All codes in this blog can be compiled in C++.

Hello, Codeforces!

The 4-year-struggle eventually got paid off when Codeforces Round 1028 (Div. 2) on May/31/2025 17:35 (Moscow time) had made me a pupil — firmly hope that the newbie age won't return later on!

The blog is a self-made editorial on ideas and codes for the round's first 3 problems. I do hope that this can inspire you as readers.

Jesus I publish this blog minutes later than the official one

2116A - Gellyfish and Tricolor Pansy

Ideas
Solution

2116B - Gellyfish and Baby's Breath

Ideas
Modulo Calculation with Exponential Operations
Solution

2116C - Gellyfish and Flaming Peony

Ideas
Solution

Again, the solution codes above may not be the best but it does work for the problems — you can reach to official editorial for details. I may be not as active as present later on because I've got a job as well as a upgrade already — I do hope the amateur editorial may inspire readers on similar problems later on and wish all readers have a pleasant coding experience.

  • Vote: I like it
  • +6
  • Vote: I do not like it

»
11 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

Gellyfish and Flaming Peony Such a great tutorial! I had been thinking about doing something similar, but I struggled with implementing BFS. Even now, I'm having trouble figuring out how to get the depth correctly. Could you please help me with that? Any related resources or links would also be really appreciated!

  • »
    »
    11 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Hmmm maybe I didn’t get it — BFS seems to be a data structure technique; you may take Data Structure from Tsinghua University Publishing House if you have a quite good command of Chinese.