[ Contents ] 1. 문제 (링크 참조) 14173번: Square Pasture In the example above, the first original rectangle has corners (6,6) and (8,8).
The second has corners at (1,8) and (4,9). By drawing a square fence of side length 7 with corners (1,6) and (8,13), the original areas can still be enclosed; moreover, this is www.acmicpc.net 2.
문제 풀이 두 목초지를 포함하는 '정사각형'의 목초지를 구해야 합니다. 단, 두 목초지는 서로 겹치거나 맞닿아있지 않습니다.
예제.....