题面
D. Searching Rectangles
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output
Filya just learned new geometry object — rectangle. He is given a field consisting of n × n unit cells. Rows are numbered from bottom to top with integer from 1 to n. Columns are numbered from left to right with integers from 1 to n. Cell, located at the intersection of the row rand column c is denoted as (r, c). Filya has painted two rectangles, such that their sides are parallel to coordinate axes and each cell lies fully inside or fully outside each of them. Moreover, no cell lies in both rectangles.
Later, hedgehog Filya became interested in the location of his rectangles but was unable to find the sheet of paper they were painted on. They were taken by Sonya and now she wants to play a little game with Filya. He tells her a query rectangle and she replies with the number of initial rectangles that lie fully inside the given query rectangle. The query rectangle should match the same conditions as initial rectangles. Rectangle lies fully inside the query if each o its cells lies inside the query.
Filya knows Sonya really well, so is sure that if he asks more than 200 questions she will stop to reply.
Input
The first line of the input contains an integer n (2 ≤ n ≤ 216) — size of the field.
For each query an integer between 0 and 2 is returned — the number of initial rectangles that lie fully inside the query rectangle.
Output
To make a query you have to print “? x1 y1 x2 y2” (without quotes) (1 ≤ x1 ≤ x2 ≤ n, 1 ≤ y1 ≤ y2 ≤ n), where (x1, y1) stands for the position of the bottom left cell of the query and (x2, y2) stands for the up right cell of the query. You are allowed to ask no more than 200 queries. After each query you should perform “flush” operation and read the answer.
In case you suppose you’ve already determined the location of two rectangles (or run out of queries) you should print “! x11 y11 x12 y12 x21y21 x22 y22” (without quotes), where first four integers describe the bottom left and up right cells of the first rectangle, and following four describe the corresponding cells of the second rectangle. You can print the rectangles in an arbitrary order. After you have printed the answer, print the end of the line and perform “flush”. Your program should terminate immediately after it print the answer.
Interaction
To flush you can use (just after printing an integer and endofline):
 fflush(stdout) in C++;
 System.out.flush() in Java;
 stdout.flush() in Python;
 flush(output) in Pascal;
 See the documentation for other languages.
You will get the Wrong Answer verdict if you ask more than 200 queries, or if you print an incorrect coordinates.
You will get the Idleness Limit Exceeded verdict if you don’t print anything (but you should) or if you forget about flushing the output (more info below).
Hacking.
The first line should contain an integer n (2 ≤ n ≤ 216).
The second line should contain four integers x1, y1, x2, y2 (1 ≤ x1 ≤ x2 ≤ n, 1 ≤ y1 ≤ y2 ≤ n) — the description of the first rectangle.
The third line contains the description of the second rectangle in the similar way.
Sample Input
1  5 
Sample Output
1  ? 1 1 5 5 
题目大致是给你两个不相交的矩形，你可以作若干次询问，每次询问一个大矩形，返回被这个大矩形完全覆盖的原矩形个数（0，1，2），最后你需要输出这两个矩形的坐标，询问次数不超过200
（注意需要加fflush，题目要求）
思路
这是一道二分练手好题（我二分写的比较丑。。。看了一下最多询问了180次才得出结果）
先考虑只有一个矩形的情况，不要太简单对不对？分别二分这个矩形的上下左右边界即可
那么相比于一个矩形的情况，两个矩形难在哪里呢？（注意它们并不相交）
仔细想想其实区别并不是很大，只要我们能将两个矩形分开，那么分别当成一个矩形的情况求解就好了~
现在考虑不相交的两个矩形，我们有两把刀分别平行于两个坐标轴，刀每次选取不同的位置将平面切成两块。
显然，至少有一把刀存在一种切法使得平面被切成两块后每块刚好有一个矩形。
（黄色区域表示平面，红色区域表示目标矩形，紫色线条表示切法）
情况1:
情况2:
情况3:
最最最开心的是，这条被切开的线是可以二分的哦~
整道题就是二分二分再二分！！！
代码
1 
