Codeforces и Polygon могут быть недоступны в период с 23 мая, 7:00 (МСК) по 23 мая, 11:00 (МСК) в связи с проведением технических работ. ×

Help in UVA 1218 Perfect Service

Правка en1, от hell_hacker, 2019-02-16 15:47:32

1218 Perfect Service

I wanted some insights on how to solve this problem.

My WA Approach: I thought all the non-leaf nodes in centroid decomposed tree would be the answer (with the exception of n = 1 where answer would be 1)

Теги #uva

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский hell_hacker 2019-02-16 15:47:32 369 Initial revision (published)