1155: 仙人掌

Memory Limit:512 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:1

Description

Sample Input Copy

2
3 2
1 2
1 3
5 4
1 2
2 3
2 4
1 5

Sample Output Copy

2
8

HINT

Source/Category