General question

Can anyone tell that if I have submitted multiple solution for a question in a contest then which solution will be taken for ranking in the contest

If it is long then it does not matter. If any other then according to me, the first accepted solution will be taken. But on some other platforms there is penalty for new submission.

yeah i am talking about long challenge

So, it does not matter. Solution with highest score will be considered.

if solution has same score then

@anon97720919 the solution with the highest score and if the score is same then the most recent one!!

For ranking score matters not the code. If you are asking about plagiarism then all accepted solution are checked

no i am asking if by multiple submissions ranking decreases as if i am updating the code

In long challenge no of submissions do not matter. So, your ranking will not decrease because of multiple submissions.