結果

問題 No.716 距離
ユーザー 👑 yumechiyumechi
提出日時 2019-12-04 22:25:33
言語 Ruby
(3.3.0)
結果
AC  
実行時間 691 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,500 KB
実行使用メモリ 38,768 KB
最終ジャッジ日時 2023-08-21 04:15:14
合計ジャッジ時間 15,863 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 687 ms
38,616 KB
testcase_01 AC 691 ms
38,688 KB
testcase_02 AC 688 ms
38,704 KB
testcase_03 AC 689 ms
38,768 KB
testcase_04 AC 690 ms
38,616 KB
testcase_05 AC 690 ms
38,700 KB
testcase_06 AC 691 ms
38,660 KB
testcase_07 AC 78 ms
15,144 KB
testcase_08 AC 79 ms
15,240 KB
testcase_09 AC 79 ms
15,216 KB
testcase_10 AC 496 ms
31,084 KB
testcase_11 AC 196 ms
19,700 KB
testcase_12 AC 632 ms
36,796 KB
testcase_13 AC 443 ms
29,472 KB
testcase_14 AC 80 ms
15,244 KB
testcase_15 AC 572 ms
34,420 KB
testcase_16 AC 278 ms
23,180 KB
testcase_17 AC 619 ms
35,988 KB
testcase_18 AC 91 ms
15,492 KB
testcase_19 AC 223 ms
20,888 KB
testcase_20 AC 79 ms
15,076 KB
testcase_21 AC 89 ms
15,420 KB
testcase_22 AC 137 ms
17,548 KB
testcase_23 AC 86 ms
15,420 KB
testcase_24 AC 492 ms
31,188 KB
testcase_25 AC 199 ms
19,860 KB
testcase_26 AC 317 ms
24,804 KB
testcase_27 AC 390 ms
27,312 KB
testcase_28 AC 85 ms
15,332 KB
testcase_29 AC 331 ms
25,200 KB
testcase_30 AC 319 ms
24,764 KB
testcase_31 AC 454 ms
29,632 KB
testcase_32 AC 384 ms
26,936 KB
testcase_33 AC 352 ms
25,732 KB
testcase_34 AC 271 ms
22,712 KB
testcase_35 AC 82 ms
15,212 KB
testcase_36 AC 118 ms
16,844 KB
testcase_37 AC 82 ms
15,076 KB
testcase_38 AC 172 ms
18,860 KB
testcase_39 AC 341 ms
25,324 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

_=gets.to_i
a=gets.split.map(&:to_i)
x,y=a.map.with_index{|m,i|a.map.with_index{|n,j|i==j ? nil : (n-m).abs}}.flatten.select{|n|n!=nil}.minmax
p x
p y
0