UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#111569#1530. 合法的括号Baiyang0728100125ms13836kbC++11409b2020-07-14 10:31:482020-07-14 10:31:49

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1236kb

input:

1

output:

()

result:

ok single line: '()'

Test #2:

score: 10
Accepted
time: 0ms
memory: 1244kb

input:

2

output:

(())
()()

result:

ok 2 lines

Test #3:

score: 10
Accepted
time: 0ms
memory: 1240kb

input:

3

output:

((()))
(()())
(())()
()(())
()()()

result:

ok 5 lines

Test #4:

score: 10
Accepted
time: 0ms
memory: 1244kb

input:

4

output:

(((())))
((()()))
((())())
((()))()
(()(()))
(()()())
(()())()
(())()()
()((()))
()(()())
()(())()
(...

result:

ok 13 lines

Test #5:

score: 10
Accepted
time: 0ms
memory: 1244kb

input:

5

output:

((((()))))
(((()())))
(((())()))
(((()))())
(((())))()
((()(())))
((()()()))
((()())())
((()()))()
(...

result:

ok 34 lines

Test #6:

score: 10
Accepted
time: 0ms
memory: 1256kb

input:

6

output:

(((((())))))
((((()()))))
((((())())))
((((()))()))
((((())))())
((((()))))()
(((()(()))))
(((()()()...

result:

ok 89 lines

Test #7:

score: 10
Accepted
time: 0ms
memory: 1276kb

input:

7

output:

((((((()))))))
(((((()())))))
(((((())()))))
(((((()))())))
(((((())))()))
(((((()))))())
(((((())))...

result:

ok 233 lines

Test #8:

score: 10
Accepted
time: 0ms
memory: 1332kb

input:

8

output:

(((((((())))))))
((((((()()))))))
((((((())())))))
((((((()))()))))
((((((())))())))
((((((()))))())...

result:

ok 610 lines

Test #9:

score: 10
Accepted
time: 0ms
memory: 1156kb

input:

0
9

output:


result:

ok 0 lines

Test #10:

score: 10
Accepted
time: 125ms
memory: 13836kb

input:

13

output:

((((((((((((()))))))))))))
(((((((((((()())))))))))))
(((((((((((())()))))))))))
(((((((((((()))()))...

result:

ok 75025 lines