Treasure Hunt
시간 제한1초메모리 제한2048 MB
5x5 격자에 숨은 2x2 보물 상자의 왼쪽 위 좌표를 셀 질의 5회 이내로 알아낸다.
문제
There is a box of treasure hidden somewhere in a grid. The rows are numbered from to , as are the columns, with cell being the top left corner of the grid. Your goal is to find the treasure within queries. You can query a grid cell and ask if there is any part of the treasure chest in that grid cell. After at most queries, you must output the upper left coordinate of the treasure box.
