CF 251B - Playing with Permutations

Codeforces 251B: Playing with Permutations

CF 251B - Playing with Permutations

Rating: 1800
Tags: implementation, math
Solve time: 8m 15s
Verified: no

Solution