1882Ranklist

1882   Ranklist

题目描述

If n people take part in this contest, how many distinct ranklists there could be? Notice that some contestants may share the same rank.

输入格式:

One n on each line, the number of participants ( 1 <= n <= 200 ). A negative value for n indicates the end of input.

输出格式:

One number on each line, the number of distinct ranklists.

输入样例 复制
1
2
3
-1
输出样例 复制
1
3
13

说明

1
3
通过提交
时空限制2000ms/64mb
题目来源ZOJ Monthly, December 2002
评测方式在线评测
题目类型
难        度