QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#77099#1479. Islands in the Data StreamMaMengQiAC ✓6ms8228kbPython3529b2023-02-13 02:42:112023-02-13 02:42:15

详细

Test #1:

score: 100
Accepted
time: 6ms
memory: 8228kb

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