In the circuit shown in figure, the battery is an ideal one with emf V. The capacitor is initially uncharged. Switch S is closed at time t=0. The final charge Q on the capacitor is :