結果

問題 No.583 鉄道同好会
ユーザー letrangerjpletrangerjp
提出日時 2017-10-27 23:11:58
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 116 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 25,600 KB
最終ジャッジ日時 2024-05-01 17:37:21
合計ジャッジ時間 3,592 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
12,160 KB
testcase_01 AC 88 ms
12,288 KB
testcase_02 AC 93 ms
12,288 KB
testcase_03 AC 88 ms
12,160 KB
testcase_04 WA -
testcase_05 AC 89 ms
12,288 KB
testcase_06 AC 88 ms
12,288 KB
testcase_07 AC 89 ms
12,160 KB
testcase_08 AC 90 ms
12,288 KB
testcase_09 AC 88 ms
12,160 KB
testcase_10 AC 89 ms
12,160 KB
testcase_11 AC 124 ms
16,000 KB
testcase_12 AC 135 ms
17,152 KB
testcase_13 AC 134 ms
17,280 KB
testcase_14 AC 136 ms
17,152 KB
testcase_15 AC 149 ms
18,304 KB
testcase_16 AC 197 ms
25,472 KB
testcase_17 AC 212 ms
25,600 KB
testcase_18 AC 212 ms
25,600 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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