Generation of Combinatorial Objects · Object Indices (Optional)

Lesson 4

Nikolai Chukhin · Alexander S. Kulikov

Programming problem.

Write a program that takes a permutation of the numbers \(0,1,\dotsc, 19\) and outputs the index of this permutation.

1 point
Public samples
Public sample 1
Input
13 12 5 14 8 16 18 6 9 11 17 15 10 2 0 19 3 7 4 1
Expected output
1660233567681956267