Блог пользователя Haught_Veath

Автор Haught_Veath, история, 17 часов назад, По-английски

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

  • Проголосовать: нравится
  • +13
  • Проголосовать: не нравится

»
17 часов назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

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

»
15 часов назад, скрыть # |
Rev. 2  
Проголосовать: нравится +1 Проголосовать: не нравится

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