thinkcat   8달 전

[input]

2
3 10
6 4 10
6 4 10
5 5
6 1 4 6 6
6 6 1 4 6

[answer]

4
8

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