Teamscode Summer 2025 Contest Official Editorial

Revision en11, by jay_jayjay, 2025-08-24 18:55:33

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en11 English jay_jayjay 2025-08-24 18:55:33 133 (published)
en10 English jay_jayjay 2025-08-24 18:54:19 23 (saved to drafts)
en9 English jay_jayjay 2025-08-20 04:44:29 1 (published)
en8 English jay_jayjay 2025-08-20 04:41:51 12
en7 English jay_jayjay 2025-08-20 04:40:35 7678
en6 English jay_jayjay 2025-08-20 04:34:12 1
en5 English jay_jayjay 2025-08-20 04:33:56 57129
en4 English jay_jayjay 2025-08-20 04:19:20 102
en3 English jay_jayjay 2025-08-20 04:18:27 391
en2 English jay_jayjay 2025-08-20 04:14:10 70
en1 English jay_jayjay 2025-08-20 04:09:33 8966 Initial revision (saved to drafts)