結果

問題 No.806 木を道に
ユーザー cielciel
提出日時 2019-03-25 01:52:05
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 103 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 18,688 KB
最終ジャッジ日時 2024-04-15 10:35:10
合計ジャッジ時間 5,908 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 89 ms
12,160 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 WA -
testcase_05 WA -
testcase_06 RE -
testcase_07 RE -
testcase_08 WA -
testcase_09 RE -
testcase_10 WA -
testcase_11 RE -
testcase_12 WA -
testcase_13 RE -
testcase_14 WA -
testcase_15 WA -
testcase_16 RE -
testcase_17 WA -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 AC 146 ms
15,232 KB
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

h=Hash.new r=0
gets
$<.map{|e|a,b=gets.split.map &:to_i;h[a]+=1;h[b]+=1}
h.values{|e|r+=e-2 if e>2}
p r
0