MateoCV's blog

By MateoCV, 20 months 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?
»
20 months ago, hide # |
 
Vote: I like it +13 Vote: I do not like it

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

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

Hint J,K?

  • »
    »
    20 months 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.
  • »
    »
    20 months 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.

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

      I did this but it still gives me wrong on test 7?!

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

        What about numbers that are contiguous and add up to X, just think about all the edge cases.

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

      Isn't it simply a question of calculating x combinations and seeing if there are enough elements (x-1) to intercede between them?

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

hint B?

  • »
    »
    20 months 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?

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

where can I find the editorial?

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

Hit C? Plaese

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

      Another hint?

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

        Sure

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

Can someone give me a hint for E please?

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

hint for I pls ><

»
11 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.

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

      How can you treat the order as fixed? Doesn’t it change for different values of x? I can't see how to either not use two states (one for x and for the weapon) or bit mask or passing through all weapons