Блог пользователя TuHoangAnh

Автор TuHoangAnh, история, 23 месяца назад, По-английски

in this problem 1682B - Сортировка с И, with the input:

1

8

0 1 2 7 4 5 3 6

it seems like the answer is not correct, if im wrong, pls point out my mistakes.

  • Проголосовать: нравится
  • -13
  • Проголосовать: не нравится

»
23 месяца назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

It's correct. Only 3,6,7 are out of place. You need to swap them to make them occupy correct location. Their AND value is 2 which is the answer. Code for reference : 158037115