ACM ICPC online round solution ?

Where can we get ACM ICPC online round solution . ?

Can anyone share solution/approach for https://www.codechef.com/ACMKOL15/problems/KOL15C .?? .

requesting one of the top teams who solved it to share their approach

Refer to this link and the answers posted.

https://www.quora.com/What-is-the-approach-to-solve-the-problem-Just-Update-and-Print-the-array-from-the-ACM-ICPC-Kolkata-online-contest-Link-Contest-Page-CodeChef