jandb   1년 전

[input]
5 4 3
4 4 4 4
4 5 6

[output]
18

[input]
5 2 3
1 2
4 5 6

[output]
13

[input]
5 3 2
1 2 2
4 1

[output]
9

[input]
5 2 2
1 2
1 1

[output]
4

댓글을 작성하려면 로그인해야 합니다.