Logu "TOCO Round 1" Chinese New Year Happy Tournament Strange Order

Logu "TOCO Round 1" Chinese New Year Happy Tournament Strange Order

Idea: The t given here means that the lover is divided into equal 2^t parts (but there will be an odd number in the process of dividing, and each part will have a little error), so all the permutations must be n! Kind of, because each paragraph of merging and sorting is in order, so we have to put n! ÷The factorial of each segment, and the final result is the result.
Code
Specific code Konjac will not

Guess you like

Origin blog.csdn.net/weixin_52536621/article/details/113970067