Could anyone explain?

Правка en1, от Jack_sparrow_06, 2023-06-08 15:34:01

For the problem 1827A - Counting Orders, when in the question they mentioned that two reorderings are different, if the resultant array is different. When I check the submitted code with the below testcase, I got answer 4. But when I dry run for the testcase in the note, I found the resultant array are same. Hence the unique ways of reordering must be 2. Anyone plz explain and don't downvote for the question. Thanks in advance.

Теги need explanation

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Jack_sparrow_06 2023-06-08 15:38:10 637 Tiny change: 'jpg)\n\n\n\n~~~~~\' -> 'jpg)\n\n\n**CODE**\n\n~~~~~\'
en1 Английский Jack_sparrow_06 2023-06-08 15:34:01 520 Initial revision (published)