Contest Leaderboard

  • + 0 comments

    My Code:

    select h.hacker_id,h.name,sum(s.max_score) as total_score from hackers h join (select ss.hacker_id,ss.challenge_id,max(score) as max_score from submissions ss group by ss.hacker_id,ss.challenge_id ) as s on h.hacker_id=s.hacker_id group by h.hacker_id,h.name having total_score>0 order by total_score DESC,h.hacker_id ASC