結果
問題 |
No.394 ハーフパイプ(1)
|
ユーザー |
![]() |
提出日時 | 2016-07-15 22:40:05 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 137 bytes |
コンパイル時間 | 470 ms |
コンパイル使用メモリ | 7,168 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-15 04:32:32 |
合計ジャッジ時間 | 1,613 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
x = gets.chomp.split(' ').map{|i| i.to_i(10)}.sort x.pop ; x.shift score = x.reduce {|sum, n| sum + n }.to_f score /= 4.0 puts score