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

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

Hola Codeforces!

The 2023 Argentinian Programming Tournament (TAP) was held last weekend. This is a 2023-2024 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, pablobce and me (MateoCV)

I would like to thank MarcosK for solving and reviewing the problems and providing valuable feedback.

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

Happy coding!

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

»
7 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Can someone give me any hints on how to do A?

  • »
    »
    7 месяцев назад, # ^ |
    Rev. 3   Проголосовать: нравится +9 Проголосовать: не нравится

    If we do exactly what the statement says: "for each trip go through all offices giving alfajores away and see how many are left at the end", then we end up with a $$$O(N \cdot M)$$$ solution, which is too slow. But we can improve it:

    Hint 1
    Hint 2
    Hint 3
    Solution
»
7 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Can someone give me any hints on how to do E?

  • »
    »
    7 месяцев назад, # ^ |
    Rev. 3   Проголосовать: нравится +9 Проголосовать: не нравится

    The name of the variables used below are the same as in the problem statement

    Hint 1
    Hint 2
    Hint 3
    Solution
»
7 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can someone explain to me why my idea for problem G is wrong?

Spoiler
  • »
    »
    7 месяцев назад, # ^ |
      Проголосовать: нравится +11 Проголосовать: не нравится

    The idea was correct, it was an implementation error, but I leave the comment in case anyone wants a hint of the solution.

»
6 месяцев назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится
Can somebody check what is wrong with my solution in problem n.
It seems like I am correct , but don't know if there is some mistake.
https://pastebin.com/h0WrBATx
//idea is like 1 4 , 2 3 , 1 1 1 2 , 1 1 3 , 1 1 1 1 1 , 0   (modules)
//  fix {1 , 4} with bs on {2 , 3}
»
3 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can someone give me any hints on how to do H?

»
7 недель назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can someone give me any hints on how to do N? Please