QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#163569#7106. Infinite Parenthesis SequenceQiulyWA 87ms34488kbC++172.3kb2023-09-04 11:07:582023-09-04 11:07:59

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 18092kb

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: 87ms
memory: 34488kb

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:

908396520
228567121
365269747
1028565788
529302353
84346502
148764845
667996084
149825682
1186712870
281727640
995600518
63752581
740373707
867951696
27044667
530591272
345487789
415550920
701803793
413364407
187916462
386485772
125057025
296666742
470522533
367131179
635722815
58970215
379425066
18...

result:

wrong answer 24th lines differ - expected: '125057026', found: '125057025'