結果

問題 No.21 平均の差
ユーザー tanukidontanukidon
提出日時 2018-04-04 15:59:56
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 79 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,220 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-09-08 15:50:03
合計ジャッジ時間 1,511 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,104 KB
testcase_01 AC 78 ms
14,976 KB
testcase_02 AC 78 ms
15,248 KB
testcase_03 AC 78 ms
15,116 KB
testcase_04 AC 77 ms
15,068 KB
testcase_05 AC 78 ms
15,264 KB
testcase_06 AC 81 ms
15,252 KB
testcase_07 AC 78 ms
15,300 KB
testcase_08 AC 78 ms
15,072 KB
testcase_09 AC 77 ms
15,088 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
_ = gets
a = []
n.times do
    a << gets.to_i
end
p a.max - a.min
0