Rating related question

Will my rating get decreased if i submit a code and get wrong answer , though i got that problem partially solved before?? Will this effect my rating and ranking on that contest?