这道题可以使用康托展开来解,康托展开的实质是计算当前排列在所有由小到大全排列中的顺序。 ↓ 如图

0 comments

No comments so far...

Information

ID
174
Time
1000ms
Memory
256MiB
Difficulty
4
Tags
(None)
# Submissions
25
Accepted
17
Uploaded By