結果

問題 No.135 とりあえず1次元の問題
ユーザー Takuya NoguchiTakuya Noguchi
提出日時 2018-03-04 10:14:21
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 97 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 11,244 KB
実行使用メモリ 25,612 KB
最終ジャッジ日時 2023-09-20 20:27:38
合計ジャッジ時間 4,031 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 162 ms
25,556 KB
testcase_01 AC 77 ms
15,188 KB
testcase_02 AC 77 ms
15,296 KB
testcase_03 WA -
testcase_04 AC 78 ms
15,196 KB
testcase_05 AC 78 ms
15,284 KB
testcase_06 AC 79 ms
15,244 KB
testcase_07 AC 80 ms
15,240 KB
testcase_08 AC 79 ms
15,244 KB
testcase_09 AC 78 ms
15,244 KB
testcase_10 AC 79 ms
15,052 KB
testcase_11 AC 79 ms
15,184 KB
testcase_12 AC 79 ms
15,168 KB
testcase_13 AC 78 ms
15,120 KB
testcase_14 AC 78 ms
15,044 KB
testcase_15 AC 78 ms
15,312 KB
testcase_16 AC 79 ms
15,316 KB
testcase_17 AC 78 ms
15,040 KB
testcase_18 AC 78 ms
15,152 KB
testcase_19 AC 78 ms
15,096 KB
testcase_20 AC 78 ms
15,048 KB
testcase_21 AC 122 ms
22,872 KB
testcase_22 AC 160 ms
25,612 KB
evil01.txt AC 155 ms
25,656 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
x = gets.split.map(&:to_i).uniq.sort

puts x.each_cons(2).map { |xi, xj| (xi - xj).abs }.min
0