the fact that inspite of not having confirmed ticket you are permitted to board a train justifies railways charging RAC passengers full fare .
further first preference is given to RAC passengers and generally birth is allotted to them during the journey . you dont have a case to ask for refund . but if you so desire you can file writ petition in the HC challenging decision of Railways in charging you full fare even if tickets are not confirmed