We have all been there. You are doing a Div 2 contest, you open Problem A, and you see a wall of text. You start simulating the game, maybe brute-forcing possible values of X and Y, or looking for complex divisibility rules. Then you look at the sample cases and notice a pattern and on the back of the mind u notice of the pattern but your mind tells not this can be true , but sometimes its is.
Today when i was practicing a div2 content i got humbled by this problem Problem Link There is a pattern,The answer is always the last character of the string.
Two things i learnt from this problem :
1) Dont overthink on First problems Problem A is almost always about observation, not implementation. 2) Trust your pattern recognition and try to justify if it can be the right ans.







