Toggle navigation
点码成金编程
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Home
=>
ProblemSet
=> 300-21:划分
Problem1418--300-21:划分
1418: 300-21:划分
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
0
Solved:
0
[
Submit
] [
Status
] [ Creator:
][ 参考程序 ]
Description
Input
第一行一个正整数 T,表示询问的数量。
接下来会有 T 组询问, 每组询问的第一行是一个正整数 n,表示数列的长度,然后下一行有 n 个整数 a1,a2,a3...an。
Output
输出共有 T 行,对每一组询问请输出好划分的数量mod 10^9 + 7。
Sample Input
Copy
2 7 0 1 3 2 3 -3 -5 7 1 9 1 9 8 1 0
Sample Output
Copy
8 1
HINT
Source/Category