Two Round Dances
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
One day people ( is even) met on a plaza and made two round dances. Find the number of ways people can make two round dances if each round dance consists of exactly people. Each person should belong to exactly one of these two round dances.
Round dance is a dance circle consisting of or more people. Two round dances are indistinguishable (equal) if one can be transformed to another by choosing the first participant. For example, round dances and are indistinguishable.
Input
One even integer .
Output
Print the number of ways to make two round dances. It is guaranteed that the answer fits in the -bit integer data type.
Examples
For example, for the number of ways is :
one round dance — , another — ;
one round dance — , another — ;
one round dance — , another — .
Input #1
Answer #1
Submissions 174
Acceptance rate 16%