結果

問題 No.135 とりあえず1次元の問題
ユーザー gigurururugigurururu
提出日時 2015-01-25 23:25:06
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 83 bytes
コンパイル時間 35 ms
使用メモリ 24,556 KB
最終ジャッジ日時 2023-01-17 22:57:48
合計ジャッジ時間 3,312 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 131 ms
24,556 KB
evil01.txt AC 121 ms
24,676 KB
testcase_02 AC 59 ms
13,912 KB
testcase_03 AC 58 ms
13,820 KB
testcase_04 AC 58 ms
13,720 KB
testcase_05 AC 59 ms
13,776 KB
testcase_06 AC 58 ms
13,800 KB
testcase_07 AC 58 ms
13,728 KB
testcase_08 AC 58 ms
14,028 KB
testcase_09 AC 58 ms
13,712 KB
testcase_10 AC 58 ms
13,920 KB
testcase_11 AC 59 ms
13,904 KB
testcase_12 AC 58 ms
13,704 KB
testcase_13 AC 58 ms
13,724 KB
testcase_14 AC 59 ms
13,832 KB
testcase_15 AC 59 ms
13,736 KB
testcase_16 AC 59 ms
13,868 KB
testcase_17 AC 59 ms
13,812 KB
testcase_18 AC 58 ms
13,864 KB
testcase_19 AC 58 ms
13,964 KB
testcase_20 AC 58 ms
13,840 KB
testcase_21 AC 58 ms
13,848 KB
testcase_22 AC 93 ms
21,356 KB
testcase_23 AC 125 ms
24,520 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
x=gets.split.map(&:to_i)
p x.uniq.sort.each_cons(2).map{|i,j|(i-j).abs}.min||0
0