結果
| 問題 | No.583 鉄道同好会 |
| コンテスト | |
| ユーザー |
Mr.Fuku
|
| 提出日時 | 2018-07-17 22:49:14 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-10-14 19:09:30 |
| 合計ジャッジ時間 | 6,741 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 1 |
ソースコード
N,M = map(int,input().split())
station = []
for i in range(M):
s,t = map(int,input().split())
station.remove(s) if s in station else station.append(s)
station.remove(t) if t in station else station.append(t)
print("YES" if len(station)<=2 else "NO")
Mr.Fuku