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

Автор Arpa, история, 5 часов назад, По-английски

Hey there!

Thank you for being part of the ICPC India Prelims 2024! 🚀

I've put together hints and solutions for the problems to help you reflect on the challenges. As the contest admin, I even recorded myself solving the problems live — it's a mix of strategy, insights, and a behind-the-scenes look at my thought process.

🎥 Watch the video here: https://youtu.be/NsIj7CgDPY8

Let me know what you think, and feel free to share your thoughts or questions! 😊

The problems are ordered from easy to hard.

Unsatisfying Array

Hint
Solution

AND Quest

Hint
Solution

Small Indices

Hint
Solution

Yet Another GCD Problem

Hint
Solution

Equations

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

»
5 часов назад, # |
  Проголосовать: нравится +21 Проголосовать: не нравится

Thanks for the fast editorial.

Spoiler
»
5 часов назад, # |
  Проголосовать: нравится +22 Проголосовать: не нравится

Why was there a test case with K=0 in problem Yet Another GCD Problem? The constraint mentioned in the problem states that 1<=K<=1e9

»
4 часа назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

umm , we came 2nd in our college and in top 100 overall, the first place team from our college had chosen amritapuri and one more region and we had only chosen amritapuri , so is there much chance of us getting selected or no? ;-;

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

How can we run backtrack for n=3000??

»
4 часа назад, # |
Rev. 2   Проголосовать: нравится +15 Проголосовать: не нравится

What is the proof for Small Indices problem that the proposed backtracking solution works in O(n^2). Also could you share the dynamic programming solution of the same?

Update:

The proof is as follows:

b[i] > level (b[i] > sum of 2 previous max numbers) can only occur about O(logn) times.

So at O(logn) times we have 2 choices to explore and hence works in the given time complexity

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

    Damn, wild to think brute force works. If someone would have just tried brute force, would work. I did think that it was possible to do so, but I couldn't prove that time complexity would be n**2.

    I think someone randomly used GPT and it got accepted. That's why we might have as many solves as we did

»
4 часа назад, # |
Rev. 2   Проголосовать: нравится +8 Проголосовать: не нравится

In small indices, if the array size is n then elements of array are <= 2*n and not <= 6000. right? Arpa Enigma27