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 1461. Christmas Garland

the conditions of the problem
Posted by _JackDaniel's 1 Nov 2020 21:48
Why is the correct answer in the example "uhhdud" and not "uhdudh"?

in terms of lexicographic order, this combination is closer to the original data.
Re: the conditions of the problem
Posted by Harkonnen 16 Aug 2022 07:49
It's not next in the book, it's before. d < h < u