Sunday, August 24, 2014

COJ 1839. A Funny Task

This task may sound a little weird, because even if we have even number of oranges, after passing the first guard we will be down to odd number and we might have a little confusion when giving the half and 3 more, but you just skip this and write the answer as it should be ,   (((N+3)*2+3)*2+3)*2 . 


       FULL SOURCE CODE

1 comment:

  1. OMG! I get it thanks for the explanation!! That math of mine~

    ReplyDelete