Time Limit | 1 秒/Second(s) | Memory Limit | 512 兆字节/Megabyte(s) |
提交总数 | 456 | 正确数量 | 542 |
裁判形式 | 标准裁判/Standard Judge | 我的状态 | 尚未尝试 |
难度 | 分类标签 | STL |
A sequence is given in the following format.
n
a0 a1,...,an−1
4
1 2 2 4
1 2 4
1≤n≤100,000
−1000,000,000≤ai≤1,000,000,000
a0≤a1≤...≤an−1