taiga   1년 전

원문은 입력의 마지막을 "0 0"으로 표시하지만 번역본은 입력 첫째 줄에 테스트 케이스의 개수를 줍니다. 백준에서 입력을 후자의 형식으로 주므로, 원문도 그에 맞게 고치는 것이 좋아 보입니다.

입력칸 설명을 아래와 같이 바꿔주세요.

The number of datasets T is given in the first line of the input. Each dataset starts with two positive integers separated by a single space; n is the number of black points, and m is the number of white points. They are less than or equal to 100. Then n + m lines representing the coordinates of points follow. Each line contains two integers xi and yi separated by a space, where (xi, yi) represents the x-coordinate and the y-coordinate of the i-th point. The color of the i-th point is black for 1 ≤ i ≤ n, and is white for n + 1 ≤ i ≤ n + m.

All the points have integral x- and y-coordinate values between 0 and 10000 inclusive. You can also assume that no two points have the same position.

The end of the input is indicated by a line containing two zeros separated by a space. (지워주세요.)

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