QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#83103#3420. Jingle Ballsxiaowuc1AC ✓16ms3784kbC++173.0kb2023-03-01 05:52:002023-03-01 05:52:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3420kb

input:

((B)())
((((B)(B))((B)()))(B))
(()(((B)(B))(B)))

output:

0
impossible
1

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 16ms
memory: 3784kb

input:

(()())
(()(B))
((B)(B))
(((B)(B))(B))
(()((B)(B)))
((()((B)(B)))(B))
((()())((B)(B)))
(((B)((B)(B)))(B))
(()(((B)((B)(B)))()))
(((B)(B))(()((B)(B))))
((B)(((B)((B)()))(B)))
((((((B)(B))(()(((B)(B))())))(((B)((B)(B)))((()())(()()))))((((()(B))((B)()))(((((B)(B))((B)(()(B))))())(B)))((((B)())())((B)(B...

output:

0
0
0
0
1
1
1
impossible
2
1
impossible
6
56
2
1
impossible
2
2
2
0
1
1
impossible
0
2
impossible
2
1
impossible
25
18
11
0
8
1
impossible
6
7
impossible
2
1
impossible
250
231
222
0
8
1
impossible
15
20
impossible
2
1
impossible
6
3
2
0
8
1
impossible
2
1
impossible
2
1
impossible
62
53
54
0
8
1
im...

result:

ok 78 lines