QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#466409#3420. Jingle BallsGuanYunchangAC ✓32ms15496kbC++171.5kb2024-07-07 19:52:082024-07-07 19:52:08

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 15360kb

input:

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

output:

0
impossible
1

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 32ms
memory: 15496kb

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