結果

問題 No.394 ハーフパイプ(1)
ユーザー basie23basie23
提出日時 2016-11-25 01:03:27
言語 Ruby
(3.3.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 11,476 KB
実行使用メモリ 15,332 KB
最終ジャッジ日時 2023-08-18 07:13:31
合計ジャッジ時間 1,766 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,080 KB
testcase_01 AC 84 ms
15,080 KB
testcase_02 AC 82 ms
15,076 KB
testcase_03 AC 82 ms
15,228 KB
testcase_04 AC 82 ms
15,064 KB
testcase_05 AC 86 ms
15,332 KB
testcase_06 AC 83 ms
15,124 KB
testcase_07 AC 82 ms
14,992 KB
testcase_08 AC 80 ms
15,248 KB
testcase_09 AC 82 ms
15,040 KB
testcase_10 AC 84 ms
15,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp.split(" ").map(&:to_i)
s = s.sort
score = (s[1] + s[2] + s[3] + s[4]) / 4.0

puts sprintf("%.2f", score)
0