P10957 [HackerEarth] xenny and girlfriend
普及
题目描述

Xenny and his girlfriend were staying in a metropolitan city. His girlfriend, being an outgoing person, wanted to visit all streets in the city. However, she used to get bored quickly and hence she wanted to visit every street exactly once.
The city had M streets and N junctions. Given information about the city's layout, help Xenny find out if it is possible to visit all streets and visit each street exactly once.

Input Format:

First line contains an integer T - number of testcases.

First line of each testcase contains 2 space-separated integers: N and M - Number of junctions and number of streets respectively.

M lines follow.

Each line contains 2 space-separated integers - u and v - meaning that Junction u is connected to Junction v by a street.

Junctions are numbered from 1 to N.

Output format:

Output T lines - each containing the answer for the corresponding testcase.

Print "Yes" if the given condition is possible, else print "No".

Constraints:

1 ≤ T ≤ 5

2 ≤ N ≤ 10000

1 ≤ M ≤ 100000

Note: There may be more than one street starting and ending at one single junction, and also between a pair of junctions.

SAMPLE INPUT
1
4 4
1 2
2 3
3 4
4 1

SAMPLE OUTPUT
Yes

输入格式

见题面

输出格式

见题面

样例输入
1 4 4 1 2 2 3 3 4 4 1 SAMPLE
样例输出
Yes