Generation of Combinatorial Objects · Object Indices (Optional)
Lesson 4
Programming problem.
Write a program that takes a permutation of the numbers \(0,1,\dotsc, 19\) and outputs the index of this permutation.
Public samples
Input
13 12 5 14 8 16 18 6 9 11 17 15 10 2 0 19 3 7 4 1
Expected output
1660233567681956267