CF425E.Sereja and Sets
普及/提高-
通过率:0%
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Let's assume that set S consists of m distinct intervals [l1,r1] , [l2,r2] , ... , [lm,rm] ( 1<=li<=ri<=n ; li,ri are integers).
Let's assume that f(S) is the maximum number of intervals that you can choose from the set S , such that every two of them do not intersect. We assume that two intervals, [l1,r1] and [l2,r2] , intersect if there is an integer x , which meets two inequalities: l1<=x<=r1 and l2<=x<=r2 .
Sereja wonders, how many sets S are there, such that f(S)=k ? Count this number modulo 1000000007 (109+7) .
输入格式
The first line contains integers n , k (1<=n<=500; 0<=k<=500) .
输出格式
In a single line, print the answer to the problem modulo 1000000007 (109+7) .
输入输出样例
输入#1
3 1
输出#1
23
输入#2
3 2
输出#2
32
输入#3
2 0
输出#3
1
输入#4
2 2
输出#4
2