結果

問題 No.583 鉄道同好会
ユーザー mban
提出日時 2017-11-01 14:22:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-22 14:32:52
合計ジャッジ時間 3,862 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

def l():
    return map(int,input().split())

n,m=l()
ar=[0 for i in range(n)]

for i in range(m):
    sa,sb=l()
    ar[sa]+=1
    ar[sb]+=1

cnt=0

for i in ar:
    if i%2==1:
        cnt+=1
        
print('YES' if (cnt==0)or(cnt==2) else'NO')
0