結果

問題 No.583 鉄道同好会
ユーザー letrangerjpletrangerjp
提出日時 2017-10-27 23:47:23
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 121 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 25,600 KB
最終ジャッジ日時 2024-05-01 18:00:40
合計ジャッジ時間 2,801 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
12,288 KB
testcase_01 AC 81 ms
12,288 KB
testcase_02 AC 76 ms
12,416 KB
testcase_03 AC 76 ms
12,160 KB
testcase_04 AC 81 ms
12,160 KB
testcase_05 AC 81 ms
12,160 KB
testcase_06 WA -
testcase_07 AC 75 ms
12,288 KB
testcase_08 AC 78 ms
12,416 KB
testcase_09 AC 74 ms
12,288 KB
testcase_10 AC 75 ms
12,160 KB
testcase_11 AC 108 ms
15,872 KB
testcase_12 AC 116 ms
17,152 KB
testcase_13 AC 117 ms
17,024 KB
testcase_14 AC 120 ms
17,024 KB
testcase_15 AC 130 ms
18,176 KB
testcase_16 AC 179 ms
25,216 KB
testcase_17 AC 190 ms
25,600 KB
testcase_18 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N, M = gets.split.map &:to_i
h = Hash.new 0
gets(p).split.each{|s|
  h[s.to_i] ^= 1
}
puts h.values.sum == 2 ? :YES : :NO
0