ENG
RUS
Timus 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
2024
. Adventure Time
Hint
Posted by
qualdum
10 Feb 2022 21:36
Sort elements by count and use some combinatorics
© 2000–2024
Timus Online Judge Team
. All rights reserved.