UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#110457#1530. 合法的括号Baiyang0728408ms1236kbC++408b2020-06-25 20:07:042020-06-25 20:07:05

answer


Details

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

Test #1:

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

input:

1

output:

()

result:

ok single line: '()'

Test #2:

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

input:

2

output:

(())
()()

result:

ok 2 lines

Test #3:

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

input:

3

output:

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

result:

ok 5 lines

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 1232kb

input:

4

output:

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

result:

wrong answer 8th lines differ - expected: '(())()()', found: '(())(())'

Test #5:

score: 0
Wrong Answer
time: 0ms
memory: 1232kb

input:

5

output:

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

result:

wrong answer 10th lines differ - expected: '((())()())', found: '((())(()))'

Test #6:

score: 0
Wrong Answer
time: 0ms
memory: 1236kb

input:

6

output:

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

result:

wrong answer 12th lines differ - expected: '(((())()()))', found: '(((())(())))'

Test #7:

score: 0
Wrong Answer
time: 1ms
memory: 1232kb

input:

7

output:

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

result:

wrong answer 14th lines differ - expected: '((((())()())))', found: '((((())(()))))'

Test #8:

score: 0
Wrong Answer
time: 7ms
memory: 1232kb

input:

8

output:

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

result:

wrong answer 16th lines differ - expected: '(((((())()()))))', found: '(((((())(())))))'

Test #9:

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

input:

0
9

output:



result:

ok 0 lines

Test #10:

score: 0
Time Limit Exceeded

input:

13

output:

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

result: