QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#77085#1479. Islands in the Data StreamGuanYunchangAC ✓0ms3304kbC++20466b2023-02-13 02:23:402023-02-13 02:23:44

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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