Erikasa's blog

By Erikasa, history, 6 months ago, In English

I tried Solving ICPC India Online prelims Question D but I am not to find the correct logic

https://www.codechef.com/ICPCOL2025/problems/ICPC25P4TMP

I Would like to hear what was the logic from the people who solved this

screenshot

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

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

Auto comment: topic has been updated by Erikasa (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Erikasa (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Erikasa (previous revision, new revision, compare).

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

cry burger

»
6 months ago, hide # |
Rev. 2  
Vote: I like it +1 Vote: I do not like it

Hint: try to solve it in exactly 2 operations.

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

ans <= 2 is always possible