Contest Leaderboard

  • + 0 comments

    This is my solution

    select hacker_id,name,sum(score) as total from ( select s.hacker_id,s.challenge_id,h.name, max(s.score) as score from hackers h inner join submissions s on h.hacker_id=s.hacker_id group by s.hacker_id,s.challenge_id,h.name ) as A group by hacker_id,name having sum(score) > 0 order by total desc,hacker_id asc