結果
問題 | No.21 平均の差 |
ユーザー | haccha |
提出日時 | 2023-06-25 15:21:59 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 82 ms / 5,000 ms |
コード長 | 135 bytes |
コンパイル時間 | 51 ms |
コンパイル使用メモリ | 11,208 KB |
実行使用メモリ | 15,316 KB |
最終ジャッジ日時 | 2023-09-15 09:24:07 |
合計ジャッジ時間 | 1,579 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 78 ms
15,084 KB |
testcase_01 | AC | 79 ms
15,144 KB |
testcase_02 | AC | 79 ms
15,232 KB |
testcase_03 | AC | 80 ms
15,012 KB |
testcase_04 | AC | 78 ms
15,268 KB |
testcase_05 | AC | 81 ms
15,104 KB |
testcase_06 | AC | 79 ms
15,316 KB |
testcase_07 | AC | 82 ms
15,088 KB |
testcase_08 | AC | 79 ms
15,272 KB |
testcase_09 | AC | 81 ms
15,080 KB |
コンパイルメッセージ
Syntax OK
ソースコード
N = gets.to_i K = gets.to_i min = 1000 max = 0 N.times do n = gets.to_i min = n if n < min max = n if n > max end puts max - min