MateoCV's blog

By MateoCV, history, 8 months ago, In English

Hola Codeforces!

The 2025 Argentinian Programming Tournament (TAP) was held last weekend. This is a 2025-2026 ICPC subregional contest for teams from Argentina to qualify to the South America/South Regional contest. You can send your solutions or do a virtual participation in the Codeforces gym. I invite you all to solve the problems.

The problems were written and prepared by Alejandro Strejilevich de Loma, elsantodel90, FedeNQ, fredy10, lsantire, MarcosK, Monazo1997, pablobce, and me (MateoCV)

I would like to thank Agua_Podrida, Aristides, CodigoL, Heibor, IvanRenison, Klaus26, MrNachoX, Tainel, kovaxis, and visho33 for solving and reviewing the problems and providing valuable feedback.

Feel free to use this blog to discuss about the problems :)

Happy coding!

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

»
8 months ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

Nice problems. What is the intended solution for problem D? I have a simulation sped up with linear memory binary lifting but I feel there is a simpler solution.

Also curious about problem K. Couldn't come up with a better approach than splitting colors by number of appearances and doing $$$O\left(\frac{N^2}{B} + \left(\frac{N}{B}\right)^2 \cdot \log N\right)$$$. Did not implement this.

Also, is there any editorial for problem F? Did not even consider solving it but I was curious how hard it actually is.

  • »
    »
    8 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it +20 Vote: I do not like it

    For D:

  • »
    »
    8 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it +17 Vote: I do not like it

    For K, from the time complexity you mentioned, you seem to have a correct or close to correct idea (might be a bit too slow, more details below).

    Part 1
    Part 2
    Part 3
  • »
    »
    8 months ago, hide # ^ |
     
    Vote: I like it +8 Vote: I do not like it

    For F:

    I don't think the idea is very complicated, but I do think it is difficult to code as there can be a lot of edge cases.

    My solution
»
8 months ago, hide # |
 
Vote: I like it +19 Vote: I do not like it

Thanks everyone who helped with TAP 2025, especially Mateo for authoring so many of the problems.

Also, since I have already received a few codeforces private messages asking me about solutions, (shameless self-plug next) I might as well share here a couple of live streams (in Spanish) I made explaining (most of) the problems' solutions in detail, and coding them in Python:

https://www.youtube.com/watch?v=tsA3ySwurqs

https://www.youtube.com/watch?v=BCaP5uEdFwk

Hope somebody finds them useful :)

»
12 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Someone have wa30 in H problem? Pls hint