Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Increasing subsequences
Description A sequence It is said that a permutation i < … < _{2}i ≤ N such that _{k}p(i < _{1})p(i < … < _{2})p(i._{k})When a permutation B+1 elements then the number B is called the degree of increase of this permutation.You need to write a program which being given a number Input The input consists of one line. The line contains two integer numbers Output The output contains one integer number which is the remainder of integer division by Sample Input 3 2 Sample Output 4 Source Northeastern Europe 2005, Western Subregion |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator