QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#68648#5108. Prehistoric ProgramsGuanYunchangWA 2487ms438752kbJava112.8kb2022-12-18 04:10:182022-12-18 04:10:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2487ms
memory: 438752kb

input:

50000
(
(
))))()))()(()))()()()))()(((((()(((()))()(((()))((()(())))))(()(
)
(
)
(((
(
(
(
(
(
()
(
)
(
)((())()((
)))))(
(
)
))
)()
(
)
)
)()(
(
(
()
(
)
(
)()((((())()))())(
(
(
)(
(
(
(()())())
)
)
(
(
(
)((())))((())))))))))((((()()))()))))))))((()())()))
)
)()
)
)
)
)
)
())(())))))()(()((()(())...

output:

6827
17933
39338
30523
11635
8378
1194
39997
12662
15203
8282
34305
24534
41357
33154
37628
20200
45720
29189
27739
40093
38177
35948
32454
41248
28930
42456
12655
48879
12299
46182
21094
4238
21519
44459
49233
18388
35822
33371
9449
13809
27579
3502
37172
15706
39917
4704
48479
40407
30710
38245
47...

result:

ok good plan

Test #2:

score: 0
Accepted
time: 406ms
memory: 68496kb

input:

1000
(
))(()))
((((())())))((())(()))(
)(
)
)))
))((()(((((((())()(())()())))(()(())()())))))))((()((()())()())(())))()((()())
)((()()()(())(()))()(())()))(()))))())))))))))))))()))(()()(())(()))())()()))))(())()()()((())(()))(())))))))(()()())()))()())))()()))))))(
)))(((
(
)))()()())))
(
(((())(((...

output:

36
980
537
519
480
472
634
13
745
194
994
66
386
896
186
44
776
354
904
966
532
645
167
946
585
488
132
571
694
38
159
587
264
286
218
141
257
83
127
448
417
39
478
476
595
107
507
720
543
214
329
598
814
907
111
62
427
981
300
956
349
780
260
362
700
131
384
662
707
53
845
676
150
321
116
581
705
9...

result:

ok good plan

Test #3:

score: 0
Accepted
time: 134ms
memory: 55436kb

input:

2
()
()

output:

1
2

result:

ok good plan

Test #4:

score: 0
Accepted
time: 129ms
memory: 51680kb

input:

2
((
))

output:

1
2

result:

ok good plan

Test #5:

score: -100
Wrong Answer
time: 140ms
memory: 53780kb

input:

2
)(
()

output:

1
2

result:

wrong answer wrong plan (expected impossible)