Haught_Veath's blog

By Haught_Veath, history, 15 hours ago, In English

I feel quite anoyed with this problem

how can i count the number of MEX(simple path u to v) = m ( u,v is the same with v,u) on a tree rooted at 1?

and other query is swap the value of node u and node v

Related note: can i have some properties of MEX functions, i have some:

  • If the set of numbers want to accquire the MEX = x, it must atleast have x+1 elements without a single element = x

Sorry for bad english

  • Vote: I like it
  • +9
  • Vote: I do not like it

»
15 hours ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

Auto comment: topic has been updated by Haught_Veath (previous revision, new revision, compare).

»
13 hours ago, hide # |
Rev. 2  
Vote: I like it +2 Vote: I do not like it

here is the answer for your question. i used that here