結果
| 問題 |
No.583 鉄道同好会
|
| コンテスト | |
| ユーザー |
fiord
|
| 提出日時 | 2017-10-27 23:26:48 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| コンパイル時間 | 735 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-11-21 23:19:56 |
| 合計ジャッジ時間 | 3,646 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 1 |
コンパイルメッセージ
Syntax OK
ソースコード
n,m=gets.split(" ").map(&:to_i)
cnt=Array.new(n,0)
m.times{
a,b=gets.split(" ").map(&:to_i)
cnt[a]^=1
cnt[b]^=1
}
if [0,2].include?(cnt.count(1)) then
puts "YES"
else
puts "NO"
end
fiord