結果

問題 No.583 鉄道同好会
ユーザー 👑 KazunKazun
提出日時 2021-03-02 19:01:27
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 444 ms
コンパイル使用メモリ 86,844 KB
実行使用メモリ 77,380 KB
最終ジャッジ日時 2023-07-26 14:51:32
合計ジャッジ時間 3,841 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,316 KB
testcase_01 AC 74 ms
71,356 KB
testcase_02 AC 76 ms
71,092 KB
testcase_03 AC 73 ms
71,232 KB
testcase_04 WA -
testcase_05 AC 74 ms
71,220 KB
testcase_06 AC 73 ms
71,196 KB
testcase_07 AC 76 ms
71,240 KB
testcase_08 AC 73 ms
71,128 KB
testcase_09 AC 73 ms
71,356 KB
testcase_10 AC 76 ms
71,240 KB
testcase_11 AC 108 ms
77,008 KB
testcase_12 AC 114 ms
76,980 KB
testcase_13 AC 114 ms
77,056 KB
testcase_14 AC 115 ms
77,028 KB
testcase_15 AC 120 ms
76,784 KB
testcase_16 AC 137 ms
77,184 KB
testcase_17 AC 147 ms
77,380 KB
testcase_18 AC 146 ms
77,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
E=[0]*N

for _ in range(M):
    a,b=map(int,input().split())
    E[a]+=1
    E[b]+=1

count=0
for x in E:
    count+=x%2

print("YES" if count<=2 else "NO")
0