結果

問題 No.92 逃走経路
ユーザー letrangerjpletrangerjp
提出日時 2017-11-03 00:33:56
言語 Ruby
(3.3.0)
結果
AC  
実行時間 747 ms / 5,000 ms
コード長 149 bytes
コンパイル時間 453 ms
コンパイル使用メモリ 11,212 KB
実行使用メモリ 43,408 KB
最終ジャッジ日時 2023-08-14 15:55:21
合計ジャッジ時間 6,311 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 211 ms
24,736 KB
testcase_01 AC 79 ms
15,056 KB
testcase_02 AC 78 ms
15,132 KB
testcase_03 AC 79 ms
15,328 KB
testcase_04 AC 80 ms
15,124 KB
testcase_05 AC 386 ms
42,584 KB
testcase_06 AC 171 ms
23,180 KB
testcase_07 AC 171 ms
23,152 KB
testcase_08 AC 80 ms
15,032 KB
testcase_09 AC 136 ms
18,632 KB
testcase_10 AC 727 ms
36,956 KB
testcase_11 AC 747 ms
34,572 KB
testcase_12 AC 722 ms
43,408 KB
testcase_13 AC 101 ms
17,464 KB
testcase_14 AC 132 ms
17,980 KB
testcase_15 AC 164 ms
20,468 KB
testcase_16 AC 166 ms
20,484 KB
testcase_17 AC 209 ms
24,288 KB
testcase_18 AC 179 ms
23,348 KB
testcase_19 AC 174 ms
22,688 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

_,*A,D=$<.map{|s|s.split.map &:to_i}
n=*1..101
D.map{|d|m=[]
A.map{|a,b,c|c==d&&(n.index(a)&&m<<b;n.index(b)&&m<<a)}
n=m.uniq}
puts n.size,n.sort*" "
0