A1301.[COCI-2006_2007-contest4]#6 ZBRKA

省选/NOI-

COCI

通过率:0%

时间限制:1.00s

内存限制:128MB

题目描述

Consider a sequence of N integers where each integer between 1 and N appears exactly once.
A pair of numbers in the sequence is confused if the number that comes earlier in the sequence is larger than the later number.
The confusion of the sequence is the number of confused pairs in it. For example, the confusion of the sequence (1, 4, 3, 2) is 3 because there are 3 confused pairs: (4, 3), (4, 2) and (3, 2).
Write a program that calculates the number of sequences of length N whose confusion is exactly C.

输入格式

The first and only line of input contains two integers, N (1 ≤ N ≤ 1000) and C (0 ≤ C ≤ 10000).

输出格式

Output the number of sequences modulo 100000000
7.

输入输出样例

  • 输入#1

    10 1

    输出#1

    9
  • 输入#2

    4 3

    输出#2

    6
  • 输入#3

    9 13

    输出#3

    17957

说明/提示

首页