22 (5(4(11(7()())(2()()))()) (8(13()())(4()(1()()))))
20 (5(4(11(7()())(2()()))()) (8(13()())(4()(1()()))))
10 (3
(2 (4 () () )
(8 () () ) )
(1 (6 () () )
(4 () () ) ) )
5 ()
0 ()
-1 (-1()())
77 (77(1()())())
-77 (-77()())
-7 (1 (-6 (2 (1 ()()) (-4 ()(1 (1 ()())(-1 ()())
) ) )
() ) () )
0 ()
3 (3 (4 (5 ()()) (8 (-3 (-7 ()())())(-4 ()(-8 ()()))))
(6 (6 (-5 ()())(-6 ()(-9 ()())))(7 ()())))
0 (1()
(-2 () (1()())))
1 (1 () (0 ()()) )
0 (0 ()())
8(8(2(1()())())())
8(8(3(7()())())())
4(4(2(4()())())())
5(5(4()(1(7(3()())(4()()))(4(3()())())))())
21(7()(5()(5()(4(1(7()())())()))))
47(7(9()(1(4()(7()(5(9(3(4(10()())())())(5(9(5(6(3(1(9()(2(3()(9(1(3(7()())(9()()))(9(5()(2()()))()))(7()())))(5(2()(6()(2()())))())))())(7()(2()(3()()))))(9()(10(4()(3()(4(3()(5()()))())))())))(3()()))())()))(6(10()())()))))()))())
24(9()(6()(1(2(9(8(7()())(1(1(7()())())(8()())))())(6(5(9()())())()))())))
15(8()(3(7(4(4()(9(6(3(3()())(9(3(3(8()())(7()()))())()))(3()()))()))())())(3(1(8(5(4(2()(4()(3(1()(10()(9()())))())))())(2()()))())())())))
18(4(9()())(1()(4()(9(3(9()(7()(8(6()())(5()(5()())))))(8(4()(1()()))()))()))))
38
(5
(6
(4
()()
)
(3
()()
)
)
(7
(2
(1
()()
)
(10
()
(9
(5
()()
)
(2
()()
)
)
)
)
()
)
)
77 (77(1()())())
77 (77(1()())())
77 (77 (1 () ()) (0 () ()) )
77 (77 () ())
3
(1
(1 (1 ()()) ())
(2 () ())
)
3
(1
(1 (2 ()()) ())
(2 () ())
)
20 (5(4(11(7()())(2()()))()) (8(13()())(4()(1()()))))
10 (3
(2 (4 () () )
(8 () () ) )
(1 (6 () () )
(4 () () ) ) )
5 ()
0 ()
-1 (-1()())
77 (77(1()())())
-77 (-77()())
-7 (1 (-6 (2 (1 ()()) (-4 ()(1 (1 ()())(-1 ()())
) ) )
() ) () )
0 ()
3 (3 (4 (5 ()()) (8 (-3 (-7 ()())())(-4 ()(-8 ()()))))
(6 (6 (-5 ()())(-6 ()(-9 ()())))(7 ()())))
0 (1()
(-2 () (1()())))
1 (1 () (0 ()()) )
0 (0 ()())
8(8(2(1()())())())
8(8(3(7()())())())
4(4(2(4()())())())
5(5(4()(1(7(3()())(4()()))(4(3()())())))())
21(7()(5()(5()(4(1(7()())())()))))
47(7(9()(1(4()(7()(5(9(3(4(10()())())())(5(9(5(6(3(1(9()(2(3()(9(1(3(7()())(9()()))(9(5()(2()()))()))(7()())))(5(2()(6()(2()())))())))())(7()(2()(3()()))))(9()(10(4()(3()(4(3()(5()()))())))())))(3()()))())()))(6(10()())()))))()))())
24(9()(6()(1(2(9(8(7()())(1(1(7()())())(8()())))())(6(5(9()())())()))())))
15(8()(3(7(4(4()(9(6(3(3()())(9(3(3(8()())(7()()))())()))(3()()))()))())())(3(1(8(5(4(2()(4()(3(1()(10()(9()())))())))())(2()()))())())())))
18(4(9()())(1()(4()(9(3(9()(7()(8(6()())(5()(5()())))))(8(4()(1()()))()))()))))
38
(5
(6
(4
()()
)
(3
()()
)
)
(7
(2
(1
()()
)
(10
()
(9
(5
()()
)
(2
()()
)
)
)
)
()
)
)
77 (77(1()())())
77 (77(1()())())
77 (77 (1 () ()) (0 () ()) )
77 (77 () ())
3
(1
(1 (1 ()()) ())
(2 () ())
)
3
(1
(1 (2 ()()) ())
(2 () ())
)
yes
no
yes
no
no
yes
no
yes
yes
no
yes
yes
yes
yes
no
no
no
no
no
no
no
no
no
yes
no
no
yes
yes
yes
yes
no
yes
no
no
yes
no
yes
yes
no
yes
yes
yes
yes
no
no
no
no
no
no
no
no
no
yes
no
no
yes
yes
yes
yes
입력/출력 샘플입니다. -_-;
'Solving process' 카테고리의 다른 글
PKU 3685 발견사항 보고. (4) | 2008.09.19 |
---|---|
이번 문제.... (3) | 2008.09.18 |
행렬이 뭐에요???????????????????? (4) | 2008.09.17 |
안돼~~~tree summing 왼쪽노드들만 검사하다니 (5) | 2008.09.14 |
Tackle to Mr.K's Solution.(PKU 1145) (2) | 2008.09.04 |