We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Select hacker_id, name, sum(t) as total_score
from
(Select submissions.hacker_id, Hackers.name, max(Submissions.score) as t, submissions.challenge_id
from Submissions
inner Join Hackers
on Submissions.hacker_id=Hackers.hacker_id
group by Submissions.hacker_id, Hackers.name, submissions.challenge_id) as bm
group by hacker_id, name
HAVING total_score >0
order by total_score desc, hacker_id asc;
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Contest Leaderboard
You are viewing a single comment's thread. Return to all comments →
Select hacker_id, name, sum(t) as total_score from (Select submissions.hacker_id, Hackers.name, max(Submissions.score) as t, submissions.challenge_id from Submissions inner Join Hackers on Submissions.hacker_id=Hackers.hacker_id group by Submissions.hacker_id, Hackers.name, submissions.challenge_id) as bm group by hacker_id, name HAVING total_score >0 order by total_score desc, hacker_id asc;