Posts

Showing posts from March, 2018

March long challenge(Div2)

This month's  long challenge  was special because of codechef's 9th birthday. So they introduced divisions in the challenge.Which can be seen  here .  I started This challenge on 10 March and able to do first 3 easy problems and 4th and 6th problem partially.I tried 6 problem's out of 8. 1. Chef and Glove     Prerequisite:- none     This was easies problem challenge.     case:-1 check chef's finger[i] with glove's sheath[i]. If finger[i]<=sheath[i], then chef can wear that glove from front side.         case:-2 check chef's finger[i] with glove's sheath[n-1-i]. If finger[i]<=sheath[n-1-i], then chef can wear that glove from back side. solution 2. A Big Sale           prerequisite:- none         Original price = p    increased x% price of p= p*(x/100)    loss in reciepe p=(p+p*(x/100))*(x/100) -  p*(x/100...