結果

問題 No.583 鉄道同好会
ユーザー mbanmban
提出日時 2017-11-01 14:22:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-02 04:08:54
合計ジャッジ時間 3,432 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,624 KB
testcase_01 AC 26 ms
10,752 KB
testcase_02 AC 24 ms
10,624 KB
testcase_03 AC 25 ms
10,624 KB
testcase_04 WA -
testcase_05 AC 26 ms
10,624 KB
testcase_06 AC 27 ms
10,752 KB
testcase_07 AC 26 ms
10,752 KB
testcase_08 AC 27 ms
10,752 KB
testcase_09 AC 28 ms
10,624 KB
testcase_10 AC 27 ms
10,624 KB
testcase_11 AC 109 ms
10,880 KB
testcase_12 AC 146 ms
10,624 KB
testcase_13 AC 143 ms
10,752 KB
testcase_14 AC 140 ms
10,752 KB
testcase_15 AC 173 ms
10,752 KB
testcase_16 AC 311 ms
10,752 KB
testcase_17 AC 379 ms
10,752 KB
testcase_18 AC 363 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

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