QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#680585#296. 括号序列计数yellowbird100 ✓0ms3632kbC++14409b2024-10-26 21:38:022024-10-26 21:38:02

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 10
Accepted
time: 0ms
memory: 3632kb

input:

1
0 1 0 1 0 0
6
0 0 1
0 0 10
0 0 100
0 0 1000
0 0 10000
0 0 100000

output:

0
42
10
0
5
0

result:

ok 6 lines

Test #2:

score: 10
Accepted
time: 0ms
memory: 3628kb

input:

1
0 13 0 29 0 17
6
0 0 1
0 0 10
0 0 100
0 0 1000
0 0 10000
0 0 100000

output:

17
44
28
41
23
30

result:

ok 6 lines

Test #3:

score: 20
Accepted
time: 0ms
memory: 3560kb

input:

2
0 474847 1 494743 1 414339
0 151719 0 151719 1 514142
10
0 1 1000
0 1 997
1 0 997
1 0 594
1 1 587
1 1 13
0 0 123
0 0 928
0 1 919
1 0 918

output:

33
30
41
2
31
33
12
5
3
31

result:

ok 10 lines

Test #4:

score: 30
Accepted
time: 0ms
memory: 3560kb

input:

2
0 12367 1 63462 1 654709
0 12141 1 12151 0 512412
10
0 1 27000
1 1 30000
0 0 28234
0 0 29991
1 0 29929
1 1 29231
0 1 29829
1 1 29923
0 1 29999
1 0 29999

output:

12
36
20
10
5
29
45
41
44
46

result:

ok 10 lines

Test #5:

score: 20
Accepted
time: 0ms
memory: 3568kb

input:

2
0 85646 1 84989 0 234602
0 14874 1 41289 1 502452
10
0 0 97373
1 1 93542
0 1 93813
1 0 93823
0 0 99999
1 1 99998
0 1 92345
1 0 92723
0 0 92378
1 1 93482

output:

24
24
16
0
4
6
29
0
3
44

result:

ok 10 lines