Skip to content

Commit 01098a6

Browse files
committed
Add 1147_ruby
1 parent 72ee166 commit 01098a6

File tree

1 file changed

+4
-0
lines changed
  • AizuOnlineJudge/ProblemSets11/1147_ICPC_Score_Totalizer_Software

1 file changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
until (n = gets.to_i).zero?
2+
array = n.times.map {gets.to_i}
3+
puts (array.reduce {|sum, n| sum + n} - array.max - array.min) / (n - 2)
4+
end

0 commit comments

Comments
 (0)