結果
| 問題 |
No.21 平均の差
|
| ユーザー |
|
| 提出日時 | 2016-01-01 23:39:10 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 5,000 ms |
| コード長 | 103 bytes |
| コンパイル時間 | 40 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-09-19 09:35:33 |
| 合計ジャッジ時間 | 1,381 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - k Syntax OK
ソースコード
n = gets.to_i k = gets.to_i ns = [] n.times do ns << gets.to_i end ns.sort! puts ns.last - ns.first