1817: 线图- CCF-GESP2025年6月七级C++

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:3 Solved:2

Description

Input

Output

Sample Input Copy

5 4
1 2
2 3
3 1
4 5

Sample Output Copy

3

HINT