I had a question in mind for class 11th and 12th students. We live in India and usually every student who takes up PCM for 11th and 12th is bound to goto JEE preparation.
So my question is how do you guys manage your studies and competitive programming? Do your parents/friends/relatives etc encourage you for doing competitive programming?
P.S I am a class 11th student stuck in this rat race.
Zonal Computing Olympiad is round 1 out of 3 (i.e. beginner) for selection into Indian IOI team.
N knights are sitting in a circle. Making a dessert ...
Can you please explain why are we considering in the last hint only the first knight and the last knight?