TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P4084
  • Problem
  • P4084【SDOI2017】树点涂色
    Limits : Time Limit : 10000 MS   Memory Limit : 131072 KB
    Description

    Input Format

    Output Format

    Sample Input

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

    Sample Output

    3
    4
    2
    2

    Hint


    Source  感谢1879570236获取数据并搬运