重复(repeat)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
给定一个长度为 的递增数组 。定义其差分数组 是一个长度为 的数组,且 。其中 表示对 进行排序之后的序列。
求 ( 个 )。
输入格式
第一行一个正整数 表示测试点数目。
每个测试组,第一行一个正整数 。
接下来 个正整数表示 。
输出格式
对每个测试点,输出一行一个自然数表示答案。
样例
【样例输入】
5
3
1 10 100
4
4 8 9 13
5
0 0 0 8 13
6
2 4 8 16 32 64
7
0 0 0 0 0 0 0
【样例输出】
81
3
1
2
0
数据范围
对所有数据 ,。
测试点编号 | 特殊性质 | |
---|---|---|
NOIP 模拟赛(十一)
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2024-11-20 7:45
- End at
- 2024-11-20 12:15
- Duration
- 4.5 hour(s)
- Host
- Partic.
- 17