Problem E. Robot

时间限制 6000 ms   内存限制 64 MB

There is a robot on the origin point of an axis.Every second, the robot can move right one unit length or do nothing.If the robot is
on the right of origin point,it can also move left one unit length.A route is a series of movement. How many different routes there are
that after $n$ seconds the robot is still located on the origin point?
The answer may be large. Please output the answer modulo $1,000,000,007$
 

输入数据

There are multiple test cases. The first line of input contains an integer $T (1\leq T\leq 100)$ indicating the number of test cases. For each test case:

The only line contains one integer $n(1\leq n \leq 1,000,000)$.
 

输出数据

For each test case, output one integer.
 

样例输入

复制
3
1
2
4

样例输出

复制
1
2
9

提交

请先 登录

© 2025 FAQs Contact About