結果
問題 | No.92 逃走経路 |
ユーザー | gigurururu |
提出日時 | 2014-12-07 21:32:37 |
言語 | Ruby (3.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 488 ms |
コンパイル使用メモリ | 11,440 KB |
実行使用メモリ | 48,112 KB |
最終ジャッジ日時 | 2023-09-02 10:42:27 |
合計ジャッジ時間 | 5,633 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | AC | 79 ms
15,100 KB |
testcase_02 | AC | 78 ms
15,056 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | RE | - |
testcase_06 | AC | 85 ms
15,436 KB |
testcase_07 | AC | 86 ms
15,516 KB |
testcase_08 | AC | 81 ms
15,216 KB |
testcase_09 | AC | 109 ms
16,412 KB |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | RE | - |
コンパイルメッセージ
Syntax OK
ソースコード
def g;gets.split.map(&:to_i)end n,m=g l=Hash.new{|h,k|h[k]=Hash.new{[]}} m.times{ a,b,c=g l[c][a]+=[b] l[c][b]+=[a] } now=*1..n g.each{|c|now=l[c].values_at(*now).flatten} puts now.size,now*" "