結果

問題 No.135 とりあえず1次元の問題
ユーザー cielciel
提出日時 2015-01-25 23:23:41
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 160 ms / 5,000 ms
コード長 83 bytes
コンパイル時間 116 ms
使用メモリ 22,908 KB
最終ジャッジ日時 2023-01-17 22:56:19
合計ジャッジ時間 3,863 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 160 ms
22,720 KB
evil01.txt AC 150 ms
22,620 KB
testcase_02 AC 74 ms
13,884 KB
testcase_03 AC 73 ms
13,756 KB
testcase_04 AC 73 ms
13,760 KB
testcase_05 AC 73 ms
13,936 KB
testcase_06 AC 73 ms
13,872 KB
testcase_07 AC 73 ms
13,836 KB
testcase_08 AC 73 ms
13,776 KB
testcase_09 AC 73 ms
13,760 KB
testcase_10 AC 74 ms
13,888 KB
testcase_11 AC 73 ms
13,712 KB
testcase_12 AC 73 ms
13,800 KB
testcase_13 AC 74 ms
13,972 KB
testcase_14 AC 74 ms
13,956 KB
testcase_15 AC 74 ms
13,784 KB
testcase_16 AC 73 ms
13,748 KB
testcase_17 AC 74 ms
13,780 KB
testcase_18 AC 74 ms
13,772 KB
testcase_19 AC 72 ms
13,712 KB
testcase_20 AC 73 ms
13,932 KB
testcase_21 AC 75 ms
13,664 KB
testcase_22 AC 142 ms
22,908 KB
testcase_23 AC 157 ms
22,796 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
p gets.split.map(&:to_i).sort.each_cons(2).map{|x,y|y-x}.select{|e|e>0}.min||0
0