結果
問題 | No.716 距離 |
ユーザー |
![]() |
提出日時 | 2020-09-24 22:05:48 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 214 ms / 2,000 ms |
コード長 | 125 bytes |
コンパイル時間 | 137 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 18,688 KB |
最終ジャッジ日時 | 2024-06-28 05:26:30 |
合計ジャッジ時間 | 7,332 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 40 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n=gets.to_i aNs=gets.split.map(&:to_i).sort result = aNs.combination(2).map{|a|a.max - a.min} puts result.min puts result.max