MateoCV's blog

By MateoCV, 2 years ago, In English

Hola Codeforces!

The 2024 Argentinian Programming Tournament (TAP) was held last weekend. This is a 2024-2025 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 elsantodel90, fredy10, Guty, lsantire, MarcosK, pablobce, reedef and me (MateoCV)

I would like to thank CodigoL, FedeNQ, Aristides, Marckess, MrNachoX 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
  • +103
  • Vote: I do not like it

| Write comment?
»
2 years ago, hide # |
 
Vote: I like it +13 Vote: I do not like it

Thanks to the authors for producing such a great GYM!!

»
2 years ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

Hint J,K?

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it +8 Vote: I do not like it
    • K: pensá únicamente en la última columna con caracteres ocupados.
    • J: No intentes cosas muy sofisticadas.
  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it +8 Vote: I do not like it

    For J

    Hint 1
    Hint 2

    There is more to it than these hints, but IMO the problem is mostly annoying to implement rather than difficult to get to the answer.

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

hint B?

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it +8 Vote: I do not like it

    First of all, it is clear that the usefull segments can be like $$$(1, d)$$$ where $$$d$$$ is a divisor of the number $$$K$$$. Think in cases with a lot of divisors like $$$K = 12$$$, can $$$(1, 2)$$$ or $$$(1, 3)$$$ be minimal or there is another segment that makes them unncesary?

»
2 years ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

where can I find the editorial?

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

Hit C? Plaese

Spoiler
  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it +3 Vote: I do not like it
    That's not enough
    Hint
    • »
      »
      »
      2 years ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      Another hint?

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

        Sure

        Hint 2
        Hint 3
        Hint 4
»
2 years ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

Can someone give me a hint for E please?

»
2 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

hint for I pls ><

»
16 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Someone help me in problem E? I don't understand how sort the weapons.

  • »
    »
    16 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it
    Step 1
    Step 2
    Step 3
»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Could someone please give me another hint for K?

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

    Try to make a greedy in some order (if I currently spot a letter, remove it and add one to the counter), see if there exists an observation that makes your greedy correct.