Submission #3739819


Source Code Expand

Copy
N = gets.to_i
ps = N.times.map{gets.to_i}.sort
ps[-1] /= 2
puts ps.inject(:+)

Submission Info

Submission Time
Task B - Christmas Eve Eve
User betrue12
Language Ruby (2.3.3)
Score 200
Code Size 80 Byte
Status
Exec Time 7 ms
Memory 1788 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 a01, a02
All 200 / 200 a01, a02, b03, b04, b05, b06, b07, b08, b09, b10
Case Name Status Exec Time Memory
a01 7 ms 1788 KB
a02 7 ms 1788 KB
b03 7 ms 1788 KB
b04 6 ms 1788 KB
b05 6 ms 1788 KB
b06 6 ms 1788 KB
b07 7 ms 1788 KB
b08 7 ms 1788 KB
b09 7 ms 1788 KB
b10 7 ms 1788 KB