| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 7 | 3 | 3 | 42.857% |
You probably know how microcircuits look like. First of all it is important to pay special attention to connections. Contacts on the circuit are connected by lines. If two lines do not intersect then there is no connection between respective contacts.
You are holding a circular circuit with $n$ contacts around the borderline. You have to calculate the number of possibilities to put exactly $k$ non-intersecting lines each connecting two contacts.
Single line contains two integers $n$ and $k$ (1ドル \le k \le n \le 40$).
Output the required number.
4 2
2
4 3
0