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: I know the k-th integer
Description Sort the first For example,when n=11, the order is 1, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9. And the 4-th integer is 2. Input The input contains many test cases ended with EOF. Each test case contains only one line of two integers, 1 ≤ Output For each test case output the smallest Sample Input 4 2 2 1 1000 25 Sample Output 11 0 1831 Source POJ Monthly Contest – 2009.04.05, windy7926778 |

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

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

Any problem, Please Contact Administrator