Codeforces celebrates 10 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link ×

stostap's blog

By stostap, 9 years ago, In English,
Please, help. Give me some hints ...
  • Vote: I like it
  • +1
  • Vote: I do not like it

9 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it
if A is a minimum number in it's group, this property hold:

1. the leftmost didgit of A is 0.
2. divide A in 2 parts with equal size like x,y. x have first half digit and y have another. 
then x must less than reverse (y) and reverse (not (y)).

example for reverse : reverse (100) = 001
example for not : not(100) : 011

sorry for my poor english!

hope can help you! ;)   
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it
Such funny task I haven't solved more than half year...
or my solution is not optimal but I put it into Memory/Time limit or ...