1085 Perfect Sequence
Statement
Metadata
- 作者: CAO, Peng
- 单位: 浙江大学
- 代码长度限制: 16 KB
- 时间限制: 200 ms
- 内存限制: 64 MB
Given a sequence of positive integers and another positive integer
Now given a sequence and a parameter
Input Specification
Each input file contains one test case. For each case, the first line contains two positive integers
Output Specification
For each test case, print in one line the maximum number of integers that can be chosen to form a perfect subsequence.
Sample Input
Sample Output