QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#162423#7106. Infinite Parenthesis Sequenceucup-team017WA 363ms8552kbC++144.2kb2023-09-03 12:04:452023-09-03 12:04:45

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 8024kb

input:

3
(())
3
0 -3 2
1 -2 3
2 0 0
))()(
3
0 -3 4
2 1 3
3 -4 -1
))()(()(
4
1234 -5678 9012
123 -456 789
12 -34 56
1 -2 3

output:

3
3
0
4
1
1
7345
623
45
3

result:

ok 10 lines

Test #2:

score: -100
Wrong Answer
time: 363ms
memory: 8552kb

input:

5564
()()(((()
16
0 -825489608 537105171
0 481386502 824237183
0 -32590250 515314371
0 -634830457 908018223
3 -494274112 299679416
125527658 81646800 208166552
632660143 -774899605 -551752339
4 -874787302 127206822
4 -102348267 122390255
2 -881139944 898929361
0 -656262874 -233671414
111787130 -5925...

output:

756997099
190472601
304391456
857138157
441085294
70288752
123970704
556663403
124854735
988927392
234773033
829667098
53127150
616978089
723293080
22537222
442159393
287906491
346292433
584836494
344470340
156597051
322071476
104214189
247222286
392102111
305942649
635722815
58970215
379425066
1899...

result:

wrong answer 1st lines differ - expected: '908396520', found: '756997099'