From BTech days there was always an obsession with CP.
Before journaling things, this is the registration link. Please participate if you are interested: https://bit.ly/3advhtR
Now I have a 3 star rating at codechef. Mainly because it is easier to implement in C++, the short stubs of code like sort,gcd which makes your work easier. In addition to that, learning STL totally changes the way you see the problem. You will have many weapons in your arsenal to deal with problems.
Today I have given first contest with 3 rating, didnot even solved a single problem. But that means I am upping my skills I am in the correct path to excel myself.
Tried the division and nice pairs, was able to understand and solve the problem but not optimally. Nice pairs almost got an idea but unable to implement(at least what I thought.. :p) division i am getting wrong answer mostly because of some logic failure since I have made it complicated to code.
Now I will see the editorial and try again. Lets UpSolve.....
As thought, nice pairs' main point is missed by me. difference will range between 0-9 hence checking the next 9 indexes is sufficient to get the solution. Observation/Analytical skill was missing here.
Coming to Division, still unable to find the root cause for WA. Still looking for it! OK. Posted in discuss. Lets see tomorrow..