When the capacitor is initially charged, its energy is 1/2*c*v2= (q)2/2c
After it is connected to a capacitor of same capacitance, the charge gets equally distributed on both the plates,
energy becomes= (q/2)2/2c
and for the two capacitor it becomes = 2* (q/2)2/2c = q2/4c
So the ratio comes out to be 1:2.