QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#41747#4436. Link with Bracket Sequence IIlarryzhongAC ✓289ms5340kbC++17991b2022-08-01 01:43:302022-08-01 01:43:32

詳細信息

Test #1:

score: 100
Accepted
time: 289ms
memory: 5340kb

input:

20
10 1
1 -1 0 -1 -1 1 -1 1 0 0
10 2
0 1 1 -2 1 -2 -1 1 -2 1
8 5
0 0 4 0 0 2 -2 0
9 5
0 0 0 -3 0 0 0 0 0
8 5
0 1 0 0 0 0 0 0
498 249013689
239722195 0 0 0 -59682797 187213467 0 0 220688278 0 0 -133178217 165866643 -165866643 216987003 55229518 -55229518 -216987003 0 82546192 0 0 0 0 -62330427 -19687...

output:

0
0
75
0
1125
469841384
200768531
102789125
188155310
573855452
1
10742885
839674900
273705999
280134765
397511344
679455456
227852148
343052576
776801212

result:

ok 20 lines