Unofficial Easy editorial for SEAVOTE(JAN15 long challenge) for beginnners

SEAVOTE: after observing the question,

            B1-1<A1<=B1
            B2-1<A2<=B2
            B3-1<A3<=B3
            ........
            ........
            Bn-1<An<=Bn
            n=>Total number of elements.
            Summing(As we do in 10th standard :) :)  )
            I think there is no need of writting pseudo-code for sum=B1+B2+...+Bn :)
            sum-n<100(given)<=sum
            -n<100-sum<=0
            This condition is equivalent to ( 100+n>sum) && (sum>=100) ............(1)
            Now=>so called PITFALL for this question :(
            Bi can be zero But Ai can't be negative :) (e.g. A1=-0.01 not possible.)
            therefore don't include elements having zero value.
            Elements having zero value will not be resposible for n.
            I mean if B is=>{34,34,0,0,34} Then n=3 and sum=102.
            APPLY EQUATION (1), YOU WILL GET THE ANSWER.
            I think this much explanation is CRYSTAL CLEAR!!

            MY SOLUTION=>http://www.codechef.com/viewsolution/5699787
2 Likes

Really Good Explanation…Very Understandable…:slight_smile:

1 Like

There is no need to create new thread for that - something similar is mentioned twice in official editorial page.

Thankyou for the solution. I was stuck up on this problem from long time:)