SRM 736, D2, 250-Pointer (A0Paper)
James S. Plank
Wed Nov 7 22:48:34 EST 2018
It helps to think about this precisely -- if you have n sheets of
A[i] paper, then you can make n/2 (integer division) sheets
of A[i-1] paper.
So, traverse the vector from element A.size()-1 down to element 1, and for
each A[i], add
A[i]/2 to
A[i-1]. For your final result, simply look at A[0].