QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#502977#1479. Islands in the Data Streamxiaowuc1100 ✓0ms3636kbC++171.7kb2024-08-03 15:42:192024-08-03 15:42:19

详细


Pretests


Final Tests

Test #1:

score: 100
Accepted
time: 0ms
memory: 3636kb

input:

15
1 0 0 1 1 2 2 1 1 0 1 2 2 1 1 0
2 0 1 2 3 4 3 2 1 2 3 4 3 2 1 0
3 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
4 0 1 2 3 4 5 6 7 6 5 4 3 2 1 0
5 0 1 2 3 2 3 4 3 2 1 0 1 2 1 0
6 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
7 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
8 0 0 0 0 0 0 1 2 1 0 0 0 0 0 0
9 0 0 0 0 0 1 2 3 2 1 0 0 0 0 0
10 0 1 2 ...

output:

1 4
2 7
3 7
4 7
5 7
6 1
7 1
8 2
9 3
10 7
11 1
12 2
13 0
14 7
15 6

result:

ok 15 lines