harbor run -t openthoughts/tasktrove-exp-rpt-taco-v2-taco-0598harbor download openthoughts/tasktrove-exp-rpt-taco-v2-taco-0598Anna and Maria are in charge of the math club for junior students, but things have gotten out of control. The students have tied themselves together using shoelaces. Each shoelace connects exactly two students, and if two students are tied together, they are connected in both directions.
To restore order to the club, Anna and Maria follow these steps:
Your task is to determine how many groups of students are kicked out of the club.
n (the initial number of students) and m (the number of laces).m lines each contain two integers a and b, indicating that students a and b are tied together (1 ≤ a, b ≤ n, a ≠ b).3 3
1 2
2 3
3 1
0
6 3
1 2
2 3
3 4
2
6 5
1 4
2 4
3 4
5 4
6 4
1
Please implement the solution in the /app/ directory.
Important: place your implementation at /app/solution.py so the verifier can run it.