結果

問題 No.716 距離
ユーザー nononaganononaga
提出日時 2020-09-24 22:05:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 206 ms / 2,000 ms
コード長 125 bytes
コンパイル時間 479 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 19,372 KB
最終ジャッジ日時 2023-09-10 13:59:18
合計ジャッジ時間 8,644 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 202 ms
19,352 KB
testcase_01 AC 200 ms
19,372 KB
testcase_02 AC 204 ms
19,304 KB
testcase_03 AC 206 ms
19,264 KB
testcase_04 AC 202 ms
19,356 KB
testcase_05 AC 202 ms
19,372 KB
testcase_06 AC 204 ms
19,368 KB
testcase_07 AC 79 ms
15,080 KB
testcase_08 AC 83 ms
15,132 KB
testcase_09 AC 81 ms
15,264 KB
testcase_10 AC 164 ms
18,212 KB
testcase_11 AC 105 ms
16,348 KB
testcase_12 AC 192 ms
18,860 KB
testcase_13 AC 154 ms
17,752 KB
testcase_14 AC 84 ms
15,232 KB
testcase_15 AC 182 ms
18,508 KB
testcase_16 AC 123 ms
16,696 KB
testcase_17 AC 187 ms
18,876 KB
testcase_18 AC 84 ms
15,260 KB
testcase_19 AC 111 ms
16,232 KB
testcase_20 AC 81 ms
15,128 KB
testcase_21 AC 84 ms
15,096 KB
testcase_22 AC 95 ms
15,736 KB
testcase_23 AC 84 ms
15,148 KB
testcase_24 AC 165 ms
18,196 KB
testcase_25 AC 106 ms
16,132 KB
testcase_26 AC 131 ms
16,948 KB
testcase_27 AC 144 ms
17,460 KB
testcase_28 AC 83 ms
15,128 KB
testcase_29 AC 133 ms
17,032 KB
testcase_30 AC 132 ms
16,988 KB
testcase_31 AC 156 ms
17,776 KB
testcase_32 AC 141 ms
17,224 KB
testcase_33 AC 136 ms
17,016 KB
testcase_34 AC 119 ms
16,760 KB
testcase_35 AC 81 ms
15,132 KB
testcase_36 AC 89 ms
15,560 KB
testcase_37 AC 83 ms
15,040 KB
testcase_38 AC 103 ms
16,080 KB
testcase_39 AC 136 ms
16,960 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

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
0