101852: [AtCoder]ABC185 C - Duodecim Ferra

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $300$ points

Problem Statement

There is an iron bar of length $L$ lying east-west. We will cut this bar at $11$ positions to divide it into $12$ bars. Here, each of the $12$ resulting bars must have a positive integer length.
Find the number of ways to do this division. Two ways to do the division are considered different if and only if there is a position cut in only one of those ways.
Under the constraints of this problem, it can be proved that the answer is less than $2^{63}$.

Constraints

  • $12 \le L \le 200$
  • $L$ is an integer.

Input

Input is given from Standard Input in the following format:

$L$

Output

Print the number of ways to do the division.


Sample Input 1

12

Sample Output 1

1

There is only one way: to cut the bar into $12$ bars of length $1$ each.


Sample Input 2

13

Sample Output 2

12

Just one of the resulting bars will be of length $2$. We have $12$ options: one where the westmost bar is of length $2$, one where the second bar from the west is of length $2$, and so on.


Sample Input 3

17

Sample Output 3

4368

Input

题意翻译

本题是有一根长度为 $L$ 的铁棍,分成了 $12$ 根,我们要把分割后的各棒的长度全部分割成正整数,请要求分割的方法有几种。

加入题单

算法标签: