If I now recall my answers I realize how crisp and less time complex they are due to simplicity which is attained through mathematical and logic manipulations. So mostly is was AdHoc not much of data structures were used. Reading all questions and spending time on pen paper rather than on the Code Editor helped me more personally. Obviously I am not the best in finding solutions yet and I took a lot of time and submitted minutes before the contest was going to over, but I am satisfied. Will look into editorials and try learning from them. Whoever is reading this...Have a nice day !