SRM 529 Div2 Easy PairingPawns

簡単すぎるので説明略

class PairingPawns
{
public:
  int savedPawnCount(vector <int> start)
    {
      int n = start.size();
      int i;
      for(i = n-1; i > 0; i--){
        start[i-1] += start[i] / 2;
      }
      return start[0];
    }
};