QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#77083#1479. Islands in the Data StreamGuanYunchangAC ✓2ms3320kbC++20877b2023-02-13 02:13:162023-02-13 02:13:19

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 3320kb

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