Description:
forgot to add file
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r426:9d578f2b23e2 - - 2 files changed: 70 inserted, 0 deleted

@@ -0,0 +1,8
1 + %h2 Paid in Full
2 + User with highest number of problem solved
3 +
4 + %h2 Polymaths
5 + User with highest number of problems each solved by more than 1 languages.
6 +
7 + %h2 Icebreakers
8 + If you solve the problem before 95% of your friends, you are an icebreaker.
@@ -0,0 +1,62
1 + :css
2 + .hof_user { color: orangered; font-style: italic; }
3 + .hof_language { color: green; font-style: italic; }
4 + .hof_value { color: deeppink;font-style: italic; }
5 +
6 + %h2 Overall
7 +
8 + - if @best
9 + %b Best Runtime:
10 + by <span class="hof_user">#{@best[:runtime][:user]}</span> using <span class="hof_language">#{@best[:runtime][:lang]}</span> with <span class="hof_value">#{@best[:runtime][:value] * 1000} milliseconds</span> at submission
11 + = link_to("#" + @best[:runtime][:sub_id].to_s, controller: 'graders', action: 'submission', id:@best[:runtime][:sub_id])
12 + %br/
13 +
14 + %b Best Memory Usage:
15 + by <span class="hof_user">#{@best[:memory][:user]}</span> using <span class="hof_language">#{@best[:memory][:lang]}</span> with <span class="hof_value">#{@best[:memory][:value]} kbytes </span> at submission
16 + = link_to("#" + @best[:memory][:sub_id].to_s, controller: 'graders' , action: 'submission', id:@best[:memory][:sub_id])
17 + %br/
18 +
19 + %b Shortest Code:
20 + by <span class="hof_user">#{@best[:length][:user]}</span> using <span class="hof_language">#{@best[:length][:lang]}</span> with <span class="hof_value">#{@best[:length][:value]} bytes</span> at submission
21 + = link_to("#" + @best[:length][:sub_id].to_s, controller: 'graders' , action: 'submission', id: @best[:length][:sub_id])
22 + %br/
23 +
24 + %b First solver:
25 + <span class="hof_user">#{@best[:first][:user]}</span> is the first solver using <span class="hof_language">#{@best[:first][:lang]}</span> on <span class="hof_value">#{@best[:first][:value]}</span> at submission
26 + = link_to("#" + @best[:first][:sub_id].to_s, controller: 'graders' , action: 'submission', id: @best[:first][:sub_id])
27 + %br/
28 +
29 +
30 + %p
31 + This counts only for submission with 100% score <br/>
32 + Right now, java is excluded from memory usage competition. (Because it always uses 2GB memory...)
33 +
34 + %h2 By language
35 +
36 + %table.info
37 + %thead
38 + %tr.info-head
39 + %th Language
40 + %th Best runtime (ms)
41 + %th Best memory (kbytes)
42 + %th Shortest Code (bytes)
43 + %th First solver
44 + %tbody
45 + - @by_lang.each do |lang,value|
46 + %tr{class: cycle('info-even','info-odd')}
47 + %td= lang
48 + %td
49 + = "#{value[:runtime][:user]} (#{(value[:runtime][:value] * 1000).to_i} @"
50 + = "#{link_to("#" + value[:runtime][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:runtime][:sub_id])} )".html_safe
51 + %td
52 + = "#{value[:memory][:user]} (#{value[:memory][:value]} @"
53 + = "#{link_to("#" + value[:memory][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:memory][:sub_id])} )".html_safe
54 + %td
55 + = "#{value[:length][:user]} (#{value[:length][:value]} @"
56 + = "#{link_to("#" + value[:length][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:length][:sub_id])} )".html_safe
57 + %td
58 + = "#{value[:first][:user]} (#{value[:first][:value]} @"
59 + = "#{link_to("#" + value[:first][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:first][:sub_id])} )".html_safe
60 +
61 + - else
62 + %h3 No submissions
You need to be logged in to leave comments. Login now