测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A10179. Benches

编程题 普及/提高-

题目描述

The city park of IT City contains $n$ east to west paths and $n$ north to south paths. Each east to west path crosses each north to south path, so there are $n^{2}$ intersections.

The city funded purchase of five benches. To make it seems that there are many benches it was decided to place them on as many paths as possible. Obviously this requirement is satisfied by the following scheme: each bench is placed on a cross of paths and each path contains not more than one bench.

Help the park administration count the number of ways to place the benches.

输入格式

The only line of the input contains one integer $n$ ( $5<=n<=100$ ) — the number of east to west paths and north to south paths.

输出格式

Output one integer — the number of ways to place the benches.

输入输出样例

输入 #1
5
输出 #1
120
上一题 去做题 下一题