Questions about the Leaderboard Score

Hi,
I am new to this competition platform. I have one question about the shown leaderboard score. Is it the score based on the whole test data set or based on the part of the test data set, for example, 20% of the test data set? How does the competition determine the final score?
Thanks!