Why my rating decreased?

i got rank 26 in long challange 2 april . which is very good rank than eariler rank still my rating decreased by -32 .

Codechef rating system sucks big time, I have a friend in 3rd div he does the equivalent amount of questions as me (sometime i do more) be it starters or long, still my rating either drops or increased less in comparison to him