ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1253. Necrologues

I can give you some hints if you'll help me to solve other problems or
discuss them !!!
Create a Tree !!!


And check it for cycles.


Then (start from leaves and end in root)calc count of letters.


Sorry for my English !!!