QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#110342#5108. Prehistoric ProgramsMaMengQiWA 96ms4280kbC++201.6kb2023-06-01 16:33:422023-06-01 17:00:35

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 96ms
memory: 4280kb

input:

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

output:

26700
26740
26738
26737
26729
26727
26724
26723
26716
26715
26714
26713
26711
26709
26703
26744
26698
26696
26695
26693
26692
26689
26685
26682
26679
26677
26674
26672
26671
26670
26779
26819
26817
26815
26813
26810
26809
26806
26803
26802
26800
26792
26787
26784
26783
26668
26778
26777
26776
26773
...

result:

ok good plan

Test #2:

score: 0
Accepted
time: 0ms
memory: 3476kb

input:

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

output:

615
595
598
933
604
271
268
267
611
265
934
590
258
257
935
619
253
252
827
247
245
243
296
313
566
570
309
573
575
576
577
301
297
242
925
584
291
290
585
287
286
929
282
280
659
208
650
206
652
947
948
655
198
197
820
209
190
189
188
662
663
182
181
179
178
177
822
628
826
239
632
825
636
638
229
...

result:

ok good plan

Test #3:

score: 0
Accepted
time: 1ms
memory: 3388kb

input:

2
()
()

output:

1
2

result:

ok good plan

Test #4:

score: 0
Accepted
time: 0ms
memory: 3380kb

input:

2
((
))

output:

1
2

result:

ok good plan

Test #5:

score: 0
Accepted
time: 0ms
memory: 3324kb

input:

2
)(
()

output:

impossible 

result:

ok impossible

Test #6:

score: -100
Wrong Answer
time: 2ms
memory: 3396kb

input:

3
()
(
)

output:

impossible 

result:

wrong answer you didn't find a solution but jury did