Блог пользователя jay_jayjay

Автор jay_jayjay, история, 6 недель назад, По-английски

Hello Codeforces! TeamsCode is excited to announce the TeamsCode Summer 2026 Virtual Programming Contest! It will take place on Sunday, August 23rd from 11:30 AM to 5:30 PM Pacific Time / 2:30 PM to 8:30 PM Eastern Time.

Teams of up to 4 members will have 3 hours to solve 12 problems. There are two divisions: Novice and Advanced, so no matter what skill level you are, there is a place for you.

The schedule is shown below:

Spoiler

Our prize pool for winners of the Novice and Advanced divisions is over $1,000! Only pre-college participants are eligible for placement prizes; however, anyone may participate in the contest. The prizes include Amazon gift cards, Discord Nitro, and more! Placement prizes are given to each team member (e.g., everyone on the 1st place Advanced team will receive $100).

The prize list is shown below. Note that every participant on a winning team will receive the prizes below.

Spoiler

Please visit https://www.teamscode.org/contests/summer-2026 for registration and more information, and join our Discord server for contest day communication!

On behalf of the entire TeamsCode team, we are excited about this competition and hope to see you there!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +95
  • Проголосовать: не нравится

Автор jay_jayjay, история, 6 недель назад, По-английски

Sorry that this is really late.... Thanks for participating in TeamsCode, and I hope you enjoyed the problems!

All problems were written and prepared by culver0412, justin_g_20, jay_jayjay, TheYashB, buzzy2, Bryan Zhu, alexlikemath007, n685, NaturalSelection, AksLolCoding, eysbutno, pilliamw, dutin, willy108, gg_gong, and HaccerKat. Also thanks to our testers for valuable feedback, and the Teamscode web and logistics teams for making this contest possible!

Novice A/Advanced A: Digits

justin_g_20 is still writing the editorial, for now the solution code is below:

Python Code

Novice B: Flower Ring

culver0412 is still writing the editorial, for now the solution code is below:

C++ Code

Novice C: Combat on Tree

TheYashB is still writing the editorial, for now the solution code is below:

C++ Code

Novice D: Convex

Hint 1
Solution
C++ Code

Novice E: Evil Problemsetters 2

Hint 1
Solution
Code

Novice F/Advanced B: Turtles

Hint 1
Solution
C++ Code

Novice G/Advanced C: Xor Tree

Hint 1
Hint 2
Solution
C++ Code

Novice H/Advanced D: Yet Another Maximize GCD Problem

NaturalSelection is still writing the editorial, for now the solution code is below:

C++ Code

Novice I/Advanced E: Geometry Dash

AksLolCoding is still writing the editorial, for now the solution code is below:

C++ Code

Novice J/Advanced F: Crazy Cattle 2D

Hint 1
Hint 2
Hint 3
Explanation
C++ Code
Python Code

Advanced G: Tree Counting

NaturalSelection is still writing the editorial, for now the solution code is below:

C++ Code

Novice K/Advanced H: Increments

culver0412 is still writing the editorial, for now the solution code is below:

C++ Code

Novice L/Advanced I: Sculk Sensors

N, M <= 200
Full Credit
C++ Code (Full Credit)

Advanced J: Paths

Hint 1
Hint 2
Explanation
C++ Code
Python Code

Advanced K: Not JOI again

Hint 1
Explanation
C++ Code

Advanced L: Towers

culver0412 is still writing the editorial, for now the solution code is below:

C++ Code

Advanced M: Counting Grids Again

Hint 1
Hint 2
Hint 3
Solution
Code

Sorry that not all the editorials were written (I don't think they'll ever be written...). If you do have any questions feel free to tag the author of the problem.

Полный текст и комментарии »

Разбор задач TeamsCode 2026 Spring Contest
  • Проголосовать: нравится
  • +21
  • Проголосовать: не нравится

Автор jay_jayjay, история, 2 месяца назад, По-английски

I haven't done any competitive programming in almost half a year, and it doesn't look like this is going to change anytime in the future. But for so long I've been part of the competitive programming community, so I wanted to say goodbye.

Before that, I'd like to say some last words. When I first discovered competitive programming, the community is what motivated me to start and to grind. I think the community is really great and encouraging, and without it I would not be where I am today. Hopefully, this community will continue to be what I remember it as. Especially in the age of AI where LLMs can solve almost all of the problems, I believe the true value of competitive programming lies in the community rather than the problems themselves.

That being said, I'm going to collect a list of some of my problems here. Most of them are from TeamsCode, so if you enjoy these, please sign up! In the future, although I probably will not compete, I might still set problems...

Sorted by how much I recommend the problem.

Pennant Hanging. My favorite problem, because it's so natural. If you try one problem, please, try this one. Inspired by my teacher Mr. G.

Legos. A cute problem, inspired by my math teacher Mr. F.

Waymo orzorzorz. A tribute to willy108's last teamscode contest. Inspired by doing this in real life.

Digit Removal. Inspired by a markov chain generator for problem ideas.

Castlefall. Inspired by the game Castlefall (which I played at USACO Camp).

Snowing. On the easier side. Inspired by, well, snow. Too bad this had to be pushed to the summer contest.

Combat on Tree. Inspired by a similarly-named problem.

Alternet is Cheating. A cute easy problem, inspired by the problem happening in real life. Too bad the statement is kind of long.

QFT Airplane. Kind of standard problem, unfortunately. Inspired by my physics olympiad friends.

Before I leave, I'd also like to thank smax, willy108, and the entire USACO community for helping me in my competitive programming journey.

Maybe I will still read some codeforces blogs from time to time. But for now, goodbye, codeforces.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +159
  • Проголосовать: не нравится

Автор jay_jayjay, история, 5 месяцев назад, По-английски

Hello Codeforces! TeamsCode is excited to announce the TeamsCode Spring 2026 Virtual Programming Contest! It will take place on Sunday, April 26 from 11:30 AM to 5:30 PM Pacific Time / 2:30 PM to 8:30 PM Eastern Time.

Teams of up to 4 members will have 3 hours to solve ~12 problems. There are two divisions: Novice and Advanced, so no matter what skill level you are, there is a place for you.

The schedule is shown below:

Schedule

Our prize pool for winners of the Novice and Advanced divisions is over $1,000! Only pre-college participants are eligible for placement prizes; however, anyone may participate in the contest. The prizes include Amazon gift cards, Discord Nitro, and more! Placement prizes are given to each team member (e.g. everyone on the 1st place Advanced team will receive $100).

The prize list is shown below. Note that every participant on a winning team will receive the below prizes.

Prize List

Please visit https://www.teamscode.org/contests/spring-2026/ for registration and more information, and join our discord server for contest day communication!

On behalf of the entire TeamsCode team, we are excited about this competition and hope to see you there!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +70
  • Проголосовать: не нравится

Автор jay_jayjay, история, 13 месяцев назад, По-английски

Thanks for participating in TeamsCode, and I hope you enjoyed the problems!

All problems were written and prepared by hyforces, Yam, culver0412, alexlikemath007, Jasonwei08, n685, HaccerKat, jay_jayjay, feining_for_gm, Mustela_Erminea, eysbutno, Furyna, iframe_, nyctivoe, TheYashB, gg_gong, training4usaco, ThatRowletOwlet, and superhelen. Also thanks to our testers for valuable feedback, and the Teamscode web and logistics teams for making this contest possible!

Also thanks to omeganot for writing an unofficial editorial here.

Novice A/Advanced A: Squares

Hint 1
Hint 2
Solution
Implementation (Py)

Novice B: Bocchi the Neural Network

Hint 1
Hint 2
Solution
Code 1 (C++)
Code 2 (C++)

Novice C: Snowing

Hint 1
Hint 2
Solution
Code (C++)

Novice D: Sum and Or

Hint
Solution
Code

Novice E: Trolley Problem

Hint 1
Hint 2
Solution
Implementation (C++)

Novice F: 345

Hint 1
Hint 2
Solution
Code (c++)

Novice G/Advanced B: Max Binary Tree Width

Hint 1
Hint 2
Solution
Code (C++)

Novice H/Advanced C: Trivial Problem

Hint 1
Hint 2
Solution
Code (C++)

Novice I/Advanced D: Pennant Hanging

Hint 1
Answer to Hint 1
Solution
Code

Novice J/Advanced E: Castlefall

Hint 1
Hint 2
Answer to Hint 2
Hint 3
Solution
Code

Novice K/Advanced F: Graph Problem

Hint 1
Solution
Edge Case
Code

Advanced G: QFT Airplane

Hint 1
Solution
Code

Novice L/Advanced H: Self Destructing Sokoban Swarm

Hint 1
Hint 2
Solution
Code

Advanced I: Permutations

omeganot has a simpler solution with lazy segtree (but less thinking) here.

Hint 1
Hint 2
Solution
Code

Advanced J: Stones

Hint
Solution
Code

Advanced K: Entrance Exam

culver0412 is still writing the editorial, for now the solution code is below:

Code

Advanced L: Cool Problem

culver0412 is still writing the editorial, for now the solution code is below:

Code

Полный текст и комментарии »

Разбор задач Teamscode Summer 2025 Novice Division
Разбор задач Teamscode Summer 2025 Advanced Division
  • Проголосовать: нравится
  • +27
  • Проголосовать: не нравится

Автор jay_jayjay, история, 13 месяцев назад, По-английски

Every time I make a blog, whenever I try to save, I get some cloudflare screen, and then all my blog contents are deleted and its not possible to recover them. Perhaps it is my skill issue (this is like the third time and I keep forgetting to copy my blog contents), but it's just so annoying, I've had to rewrite like 2 editorials already. Could someone (maybe MikeMirzayanov) please look at this issue?

Полный текст и комментарии »

  • Проголосовать: нравится
  • +40
  • Проголосовать: не нравится

Автор jay_jayjay, история, 21 месяц назад, По-английски

Hello, codeforces! Could someone try to pass my solution in 299702131? The idea is to iterate over n, then k, then run Dial's algorithm (for widest path) over the graph, then skip an edge to make the initial distances for k+1.

I'm reasonably sure the approach is O(n^2m) (confirmed by a friend). The code runs in 600ms on a random case on my laptop. Can someone constant optimize it for me, or tell me why it doesn't pass? Thanks!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +14
  • Проголосовать: не нравится

Автор jay_jayjay, история, 3 года назад, По-английски

As the official editorial is promised to come out later, I will write an unofficial editorial for now. Some of the solutions are from my teammate tcmmichaelb139 orz. Contest: https://www.hackerrank.com/indigo-coding-competition

Easy

These problems are quite trivial, so I will only provide solutions:

P1
P2
P3
P4

Medium

P5
Code
P6
Code
P7
Code
P8
Code

Hard

P9
Code
P10
Code

Полный текст и комментарии »

  • Проголосовать: нравится
  • +25
  • Проголосовать: не нравится